Recent Topics

1 Mar 10, 2005 17:07    

I am in need of some help for adding pictures to my site.

My site, www.sniderz.com is where I need the help.

As you can see I have used a few small .gifs to add some small flare to the site.

Under the admin panel is where I would like to add my new images.
Here is the code, how do I add the images.

<div class="bSideItem">
<h3><?php echo T_('Admin Panel') ?></h3>
<ul>
<?php
user_login_link( '<li>', '</li>' );
user_register_link( '<li>', '</li>' );
user_admin_link( '<li>', '</li>' );
user_profile_link( '<li>', '</li>' );
user_logout_link( '<li>', '</li>' );
?>
</ul>
</div>

here is the code.

3 Mar 10, 2005 21:59

Start with http://doc.b2evolution.net/0.9.1/elementindex.html then click the letter then scroll until you find the function you're looking to tweak. Seems to me that maybe the third parameter will allow an image, but no promises that it'll work.

http://doc.b2evolution.net/0.9.1/evocore/_blogs_b2evocore__functions_users_php.html#functionuser_login_link covers one particular func. Sort of seems like (maybe)

 user_login_link( '<li>', '</li>', '<img src="blahblahblah"' />' ); 

MIGHT do the deed for you.

If not consider faking it.

if( is_logged_in() ) { ?>
<li><a href="whatever the link to your admin is"><img src="blahblahblah" /></a></li>
<?php } else { ?>
<li><a href="whatever the link to your register is assuming you allow registration"><img src="blah2blah2blah2" /></a></li>
<?php }

Or something like that! The reason for the maybes is because sometimes functions strip tags from what you shove in via parameters. It is possible that including an image tag in the function parameters will result in displaying tag-like text and not actually implementing the image. Dunno, but it sounds like you might find out!

4 Mar 11, 2005 14:05

Awesome thank you very much for your help Ed

I will try this in a few minutes once I get my ftp stuff setup.


Form is loading...