boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Comment author name as url

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
maelody



Joined: 27 Jul 2003
Posts: 3

PostPosted: Fri Aug 08, 2003 3:18 am    Post subject: Comment author name as url Reply with quote

I was wondering if this was possible.. I'm not that great with php but I've been trying to figure out how to do this and nothing's working.
Back to top
View user's profile Send private message
Candle



Joined: 23 Dec 2002
Posts: 547

PostPosted: Fri Aug 08, 2003 3:53 am    Post subject: ........... Reply with quote

More about the author of the post ? Here goes:

<?php the_author_email() ?> - the author's email.
<?php the_author_url() ?> - the author's url.
<?php the_author_email() ?> - the author's number of posts.
<?php the_author_icq() ?> - the author's ICQ number.
<?php the_author_aim() ?> - the author's AIM handle.
<?php the_author_yim() ?> - the author's Yahoo Messenger handle.
<?php the_author_msn() ?> - the author's MSN Messenger handle.
<?php the_author_posts() ?> - the author's post count.
<?php the_author_login() ?> - the author's login name in b2. If you want some static data about the author, this is what you're searching for. You can, for example, associate a picture with an author, like this: <img src="pictures/<?php the_author_login() ?>.jpg" border="0">
<?php the_author_ID() ?> - the author's ID number in b2. This number is automatically set when the user registers: to see the ID of an user, go to the Team page. This is static data too, so you can use it like the_author_login() in associating stuff with authors.
Back to top
View user's profile Send private message
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Fri Aug 08, 2003 5:34 am    Post subject: Reply with quote

To elaborate, go into b2comments.php and replace this line of code

Code:
<?php comment_author() ?> <?php comment_author_email_link("email", " - ", "") ?><?php comment_author_url_link("url", " - ", "") ?>


with this:

Code:
<a href="<?php comment_author_url() ?> " target="_blank"><?php comment_author() ?></a>


You can use any of the things candle posted from the readme to show things beside the URL as well.
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
rmaathuis



Joined: 05 Jan 2004
Posts: 7
Location: The Netherlands

PostPosted: Tue Jul 06, 2004 11:49 am    Post subject: Reply with quote

Hi Rickie,

I did exactly that, but when a commenter doesn't fill in a url, the name always has a link to my site. Do you know why? I checked your site and saw that you don't have that problem. My site: www.xoox.nl.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group