On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Calling avatar in each of the different author.php page?

UserPost

1:56 am
7 Oct 2008


Thomas

Guest

1

I know that using  sf_show_members_avatar($userID->user_id=3) will call a certain avatar.

But how do you make it so it shows each author's userID when you click on their name? Is there a way to incorporate it into:

<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>

3:03 am
7 Oct 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

2

how you get the author id is very dependant upon where you are using the template tag?  where are you trying to use this code?  if for comments or post, its easier to use sf_show_forum_avatar() and even preferred…

incidentally, if you are going to do something like you show, make sure you sanitize your post/get vars or else you put yourself at security risk…

3:10 am
7 Oct 2008


Thomas

Guest

3

I would like the avatar to show up in the author's page that displays their profile and recent posts. Right now, I can create a special page for each author that will display their avatar based on calling each userID, but I was wondering if there was an easier way so i can jsut use one author's page and have the avatar change accordingly to the author.

3:38 am
7 Oct 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

4

well, not sure where you exactly want to show it, but the following code will display the avatar for the user, assuming your code snippet..

sf_show_forum_avatar($curauth->user_email);

or, you could use

sf_show_members_avatar($curauth->ID);

just use it somewhere after your code snippet…




Reply to Topic: Calling avatar in each of the different author.php page?

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 12 + 10        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

10 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)