Recent Topics

1 Feb 16, 2007 17:51    

My b2evolution Version: 1.9.2

Hi,

I would like to replace the text fragments from the following code with small images or icons, so I could arrange them in one line only... The current text should then be in the img src tag alt and the current title tag should remain...

Is this possible? Which file I have to edit at which location?

Thanks in advance...
Daniel

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

2 Feb 16, 2007 18:33

Man oh man I dig on the tech docs! http://doc.b2evolution.net/v-1-9/elementindex.html eventually leads to http://doc.b2evolution.net/v-1-9/evocore/_blogs---inc---MODEL---users---_user.funcs.php.html#functionuser_login_link which tells me:

user_login_link( [ $before = ''], [ $after = ''], [ $link_text = ''], [ $link_title = '#']  )


and leads to the actual code for the function. Clickety click a few more times and it looks like you can do something like this:

user_login_link( '', '<br />', '<img src="whatever />"', '#'  )

You would do that in your skins/yourskin/_main.php file, and by the way it might not work. It might strip out the img tag is what I mean. Not sure - untested - but it looks like it will work for you.

3 Feb 16, 2007 22:48

Thanks EdB, exaclty what I was looking for... works - for user_admin_link there is one attribut more...


Form is loading...