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
Postbit custom awards display
Avatar
shawn soden
Member
Free Members
Offline
Mar 9, 2014 - 8:01 pm

Added myself to a Special Rank with a badge, how ever the Special Rank and Badge do not show on the Postbit side. All that shows is "Admin" (My original rank).

And to clarify, Post Bit being the same location below my Avatar in these forums where the Silver Membership badge is.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 9, 2014 - 10:14 pm

so did you see my post #6?  please make sure your sp theme has that function call in it... typically right after the normal forum rank display template tag...   you can look in our default theme too in the spTopicView.php template file...

Avatar
shawn soden
Member
Free Members
Offline
Mar 9, 2014 - 10:40 pm

I did see your post, I just did not understand where to place that code, or what code to place.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 10, 2014 - 12:17 am

Sp themes are just like wp themes... There are templates for different page types... And a template is a collection of display template tags that position and display the page elements...

By default the sp themes are located in wp-content/sp-resources/forum-themes

In each theme there is a templates directory that holds the various template files... In this case, you want the spTopicView.php template file...

I was asking you to check and see if that template file has the special rank display template function...

Avatar
shawn soden
Member
Free Members
Offline
Mar 10, 2014 - 1:02 am

I will take a look tomorrow, I am using the .CSS theme currently.

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Mar 10, 2014 - 4:22 am

As supplied the spTopicView.php template within the css-only theme does have the display function sp_PostIndexUserSpecialRank() inlcuded within the spUser section.

While we do not use that theme here it is the same display function we use to display our special ranks badges.

andy-signature.png
YELLOW
SWORDFISH
Avatar
shawn soden
Member
Free Members
Offline
Mar 10, 2014 - 6:25 am

So in easy to understand terms, locate:

1) spTopicView.php

2) Find this: sp_PostIndexUserSpecialRank()

I am confused as to what I edit to show multiple badges in the profile from this page http://codex.simple-press.com/.....ecialrank/

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Mar 10, 2014 - 9:14 am

In the profile? You wouldn't be able to use this function in the user profile popup. It needs the scope of the topic post. We do not, by default, show the special rank badges on the profile as far as I am aware.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Mar 10, 2014 - 9:54 am

yes, the special ranks are shown in both the popup profile and the full profile page (look here)...  however, based on the definition of postbit earlier, assumed we were talking about the user info area for each post...

if actually talking about profile thought need to know if popup or full page or both... two different template files...  spProfilePopupShow.php and spProfileShow.php...  and the template function would be:

                        sp_UserSpecialRank($args='', $spProfileUser->special_rank);

Avatar
shawn soden
Member
Free Members
Offline
Mar 10, 2014 - 2:51 pm

And now you lost me...

Let me create what I am looking for with Fireworks and shoot you a image link.

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