Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Avatars
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Feb 11, 2015 - 9:54 am

Is there a way I can make users avatars show up on the outside of the posts where you have this:

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2015 - 10:50 am

Yes - I don't see why not. And I assume you are referring to the forum view.
Whose avatar though?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Feb 11, 2015 - 11:15 am

Yellow Swordfish said
Yes - I don't see why not. And I assume you are referring to the forum view.
Whose avatar though?

Yes, sorry I meant forum view.  Each user who starts a thread.  How would I go about doing this?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2015 - 11:42 am

In Reboot you will need to edit the spForumViewDesktop.php template in the theme folders or - in other themes the spForumView,php template. Preferably add the template to your child theme and edit that.

Look for the display function named sp_TopicIndexIcon() and comment it out. It is about two-thirds of the way down the file.

Underneath the commented out function add the following call:

sp_UserAvatar('tagClass=spRowIcon spLeft&context=user', $spThisTopic->first_user_id);

and that will display the avatar of the user who started the topic.

This will, of course, remove all use of custom icons so it will no longer show when new, unread posts have been made to a forum

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Feb 11, 2015 - 4:20 pm

Yellow Swordfish said
In Reboot you will need to edit the spForumViewDesktop.php template in the theme folders or - in other themes the spForumView,php template. Preferably add the template to your child theme and edit that.

Look for the display function named sp_TopicIndexIcon() and comment it out. It is about two-thirds of the way down the file.

Underneath the commented out function add the following call:

<br />

sp_UserAvatar('tagClass=spRowIcon spLeft&context=user', $spThisTopic->first_user_id);

<br />

and that will display the avatar of the user who started the topic.

This will, of course, remove all use of custom icons so it will no longer show when new, unread posts have been made to a forum

OK, that worked.  I had to edit in the directory as it does not show up in the theme editor.  Is there a way to remove the avatar when there's a new post in the thread and use another file?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2015 - 9:08 pm

yeah, unfortunately, the editor wasn't designed to go more than one level deep in the theme...  reboot is the first to do so...

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Feb 12, 2015 - 9:28 am

Mr Papa said
yeah, unfortunately, the editor wasn't designed to go more than one level deep in the theme...  reboot is the first to do so...

Yea, threw me off at first...  Is there a way to add a "new" to the mod Yellow provided here?  Also, this works once in the forum, however on the preview when you're in the main index for the forum it still shows up with the old file I had there.  The users avatars do not show up there.  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 12, 2015 - 11:40 am

Is there a way to add a “new” to the mod Yellow provided here? 

We do not have any built in way or method available. It's a custom change not something we support with built in code.

Also, this works once in the forum, however on the preview when you’re in the main index for the forum it still shows up with the old file I had there.  The users avatars do not show up there.  

We changed the forum view template. That IS the index of topics in a forum... SO afraid I don't understand your question.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Feb 12, 2015 - 1:13 pm

I meant in the unread and recently updated topics which is in the main forum list at the bottom. 

What do you guys use when you inspect a page?  How do you know where something is, lets say a php file?  I have notepad++ to open php file locally (i'm modding an overlay), however i'm not sure where I can find it when i'm inspecting a page using firebug.  I make the color changes with firebug and then I make the change in the php file to upload it, however I do have trouble finding where it is in the actual file. 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2015 - 7:36 pm

When you say 'How do you know where something is, lets say a php file?', do you mean a php file? Or a rule within a php file?

We mostly use browser tools such as firebug, or a browser default inspector. It's not always obvious where something is, especially as everything builds into one list so the 'line' is always wrong. But if you inspect something, you can always select the #ID and class above the rule you want to change, copy it, press control+f in notepad++ and search for it in the stylesheet (in this case reboot.php) if that helps.

Additionally, if you're working on a custom overlay, the overlay variables are called by the stylesheet. It's probably best to work from reboot.php as that will match up with the CSS you're inspecting, and when you're looking at the right class, you should see the overlay variable that's being used. You can then open the overlay, find the variable and change the rule.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online: leonokx
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625