Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Last post avatar
Avatar
Raven
Member
Offline
Jan 12, 2015 - 4:16 pm

hi everyone!

just wanted to say awesome forum architecture software. I am really digging the infrastructure of simplepress and how it integrates with wordpress! I was wondering if there was a last poster avatar plugin or template modification to show a member's avatar next to the last post info on the forum view index?

Thanks in advance for any help. Keep up the outstanding work!

logo.png

|DEVELOPER|GAME DESIGNER|GRAPHIC ARTIST|HOMEBREW|MUGEN|XMUGEN|UNITY 3D|

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 12, 2015 - 5:23 pm

Thank you - glad you are liking it...

Can you perhaps put a bit more flesh on what you are asking for as I am not totally following the where and what you want...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Raven
Member
Offline
Jan 12, 2015 - 7:54 pm

Avatar on forum index

Something like this when a member make a post and it shows up on the forum index.

logo.png

|DEVELOPER|GAME DESIGNER|GRAPHIC ARTIST|HOMEBREW|MUGEN|XMUGEN|UNITY 3D|

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jan 12, 2015 - 9:41 pm

you can already do this...  your sp theme displays the elements... you just need to add a template tag to display the avatar...

something like:

sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user&size=50', $spThisTopic->last_user_id);

In the default theme, you would add it to this stuff

                                sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=50px');
                                    sp_TopicIndexPostCount('tagClass=spInRowCount', __sp('Posts'), __sp('Post'));
                                    sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'), __sp('View'));
                                    sp_TopicIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'), __sp('No permission to create posts'));
                                    if (function_exists('sp_TopicIndexRating')) sp_TopicIndexRating('tagClass=spTopicRating spCenter');
                                sp_ColumnEnd();

style as desired... change size if you want...

as always, we strongly urge you to create a child theme or make your own theme before editing to keep from losing changes on updates...

Avatar
Raven
Member
Offline
Jan 12, 2015 - 10:12 pm

@mr-papa 

Thank you very much! I will give it a whirl!

logo.png

|DEVELOPER|GAME DESIGNER|GRAPHIC ARTIST|HOMEBREW|MUGEN|XMUGEN|UNITY 3D|

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jan 12, 2015 - 10:59 pm

let us know how it goes...

Avatar
Raven
Member
Offline
Jan 13, 2015 - 7:13 am

Okay i took some screenshots and did an image edit to place the user's avatar on where i am trying to style it into the template.

forumindex.pngImage Enlarger

 

Mr Papa said
you can already do this...  your sp theme displays the elements... you just need to add a template tag to display the avatar...

something like:

<br />

sp_UserAvatar('tagClass=spPostUserAvatar spCenter&context=user&size=50', $spThisTopic->last_user_id);

<br />

In the default theme, you would add it to this stuff

<br />

                                sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=50px');
                                    sp_TopicIndexPostCount('tagClass=spInRowCount', __sp('Posts'), __sp('Post'));
                                    sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'), __sp('View'));
                                    sp_TopicIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'), __sp('No permission to create posts'));
                                    if (function_exists('sp_TopicIndexRating')) sp_TopicIndexRating('tagClass=spTopicRating spCenter');
                                sp_ColumnEnd();

<br />

style as desired... change size if you want...

as always, we strongly urge you to create a child theme or make your own theme before editing to keep from losing changes on updates...

By using the code you gave me above this is what i got in picture below.

spforumview.pngImage Enlarger

This is where the avatar shows on the forum in picture below....

 

forumpost.pngImage Enlarger

So anyways I am still trying to place the user's avatar on the first example picture i did by using picture editing software. I will try placing the code again in other templates to see what happens. thanks for your help @mr-papa 

logo.png

|DEVELOPER|GAME DESIGNER|GRAPHIC ARTIST|HOMEBREW|MUGEN|XMUGEN|UNITY 3D|

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 13, 2015 - 7:19 am

For your first mock-up you will need to add the code to the spGroupView.php template. Get it in there roughly as you want and then we can hone it with a bit of ptoper styling when we see it. Does that make sense?

Look for the call to sp_ForumIndexLastPost() which is the column you will want it in. 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jan 13, 2015 - 7:21 am

Also - i would change that spCenter in the avatar call to spLeft.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Raven
Member
Offline
Jan 13, 2015 - 7:22 am

Yellow Swordfish said
For your first mock-up you will need to add the code to the spGroupView.php template. Get it in there roughly as you want and then we can hone it with a bit of ptoper styling when we see it. Does that make sense?

Look for the call to sp_ForumIndexLastPost() which is the column you will want it in. 

Yes sir thank you! I will start now and then take another screenshot.

logo.png

|DEVELOPER|GAME DESIGNER|GRAPHIC ARTIST|HOMEBREW|MUGEN|XMUGEN|UNITY 3D|

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625