Support Forum

Postbit custom awards display

SS shawn soden
shawn soden
Member

I used a modification like this in VB, in the admin side you include a place to upload award images, issue those awards to individual users or user groups.

In the forums side these awards are displayed in the users post pit (Just below the user name, but above the user’s location). 

You can also create a page that displays all awards and create a tab on the forums home page “Awards”. 

We used this mod to issue awards for various activities in our online leagues, such as a trophy for winning one of the leagues. 

36 Answers

New Answer

MP Mr Papa
Mr Papa
Member

what are these awards?  how are they earned?  actions or just given?

we have multiple similar…  in core, you have special ranks… they are really just a special title and badge (image, icon, etc) that you can give to users…  the rank info plugin for sp is a way to show the list of ranks (normal and/or special) and who has that rank (award level)…

we also support cubepoints (and very shortly mycred) for giving points and awards for various activities around the site…

and finally there is the post thanks plugin which allows users to earn points and titles when their fellow users thank them for a post…

SS shawn soden
shawn soden
Member

I have tried the Special Ranks, and they do not work the way I would need for them to display a icon in the postbit. Also only 1 rank displays, so you would have to make the displaying rank, the rank with the award.

Awards are a simple image, something like this: Award but would display in the postbit with a title of Awards: Image here.

Admins would upload the award image, title the award and issue the award/awards to users.

MP Mr Papa
Mr Papa
Member

not sure what you mean by postbit…

and a user can have multiple ranks and display all…

so still not sure if its just admin awarded why it wouldnt work for you…  but have made a note about awards…

SS shawn soden
shawn soden
Member

Then I am not understanding the custom Forum ranks, because they only display 1 image in the Postbit.

The Postbit is the field that you find the Avatar, User Name, Location, Rank, on a users post. Currently I just get 1 image displayed.

MP Mr Papa
Mr Papa
Member

oh, that postbit area… 😉  the post user area…

If you give a user multiple special ranks, all badges will show…  its optional if you want titles or not…  just tested and its working as expected…

more info: http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/topic-view/sp_postindexuserspecialrank/

SS shawn soden
shawn soden
Member

How do you assign the admin a special rank?

YS Yellow Swordfish
Yellow Swordfish
Member

The same way as anyone else. Create your special rank and then ‘add member’ to it – in this case your Admin user.

SS shawn soden
shawn soden
Member

Where do or how do I “Add Member” to the Special Rank?

MP Mr Papa
Mr Papa
Member

forum – components – forum ranks… in the middle is the special rank section…

SS shawn soden
shawn soden
Member

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.

MP Mr Papa
Mr Papa
Member

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…

SS shawn soden
shawn soden
Member

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

MP Mr Papa
Mr Papa
Member

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…

SS shawn soden
shawn soden
Member

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