View previous topic :: View next topic |
Author |
Message |
maelody
Joined: 27 Jul 2003 Posts: 3
|
Posted: Fri Aug 08, 2003 3:18 am Post subject: Comment author name as url |
|
|
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 |
|
 |
Candle
Joined: 23 Dec 2002 Posts: 547
|
Posted: Fri Aug 08, 2003 3:53 am Post subject: ........... |
|
|
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 |
|
 |
jadeddaisy
Joined: 24 Nov 2002 Posts: 116
|
Posted: Fri Aug 08, 2003 5:34 am Post subject: |
|
|
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 |
|
 |
rmaathuis
Joined: 05 Jan 2004 Posts: 7 Location: The Netherlands
|
Posted: Tue Jul 06, 2004 11:49 am Post subject: |
|
|
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 |
|
 |
|