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
Reputation
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 19, 2015 - 11:46 am

Can someone please explain the setup for this plugin?  I activated it and then changed the permissions for the groups, though I do not see it on the forum.  Do I need to modify some other settings?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 19, 2015 - 11:57 am

As personally I am not yet fully up to speed with the new Reputation plugin then I would recommend starting here: https://simple-press.com/docum.....on-system/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 19, 2015 - 12:03 pm

Yellow Swordfish said
As personally I am not yet fully up to speed with the new Reputation plugin then I would recommend starting here: https://simple-press.com/docum.....on-system/

Yea, I started there but it really is not the easiest read.  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 19, 2015 - 3:28 pm

Really? Sorry to hear you say that. Can you be a little more precise on the questions then so I can try and help?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 19, 2015 - 3:47 pm

Yellow Swordfish said
Really? Sorry to hear you say that. Can you be a little more precise on the questions then so I can try and help?

Well, I installed it and set the permission settings.  After there i'm lost.  I'm assuming that I have to code in the actual functionality, just like the thanks??? Nothing happens by just installing it and setting the permissions.  The store is not very clear what you're actually purchasing.  It just shows the admin page, though no other functions are displayed.  It's really difficult to purchase items if they are not clearly displayed on what they do, or how they work.  I purchased this as it was the plugin I think I wanted.  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 19, 2015 - 4:07 pm

I guess what you are missing then are the template display function tags in the SP theme you are using because we have not yet released updated themes that contain these tags.

I can certainly look into whether we are in a position to release updated themes but I can also post the notes below that describe the changes (ready to be incorporated into the theme changes documentation). This should allow you to add the required display functions to your SP theme without having to wait for the official release. Of course, if you are using a SP child theme then you will need to do this in any case...

So the current nkltes seem to be:

in spTopicView.php for all themes

# for showing reputation info
if (function_exists('sp_PostIndexUserReputationLevel')) sp_PostIndexUserReputationLevel('tagClass=spPostReputationLevel spCenter');

# for adding/taking reputation from user
if (function_exists('sp_PostIndexRepUser')) sp_PostIndexRepUser('tagClass=spCenter', '', __sp('Give/Take Reputation'));

in spMembesView.php for all themes

# for showing user reputation in members list
if (function_exists('sp_MembersListReputationLevel')) sp_MembersListReputationLevel('', '');

in spMembersView.php for all themes

# for showing user reputation in members list
if (function_exists('sp_MembersListReputationLevel')) sp_MembersListReputationLevel('', '');

in spProfilePopupShow.php and spProfileShow.php for all themes

# for showing reputation in profile views
sp_UserReputationLevel('', $spProfileUser);

Looking at these then they do not give you much advice on where to locate them but I think in tandem with the codex page for the plugin you should be able to get the ones you want added OK.

Sorry - I have had nothing directly to do with the Reputation system development so I am coming to this anew as well.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 20, 2015 - 9:37 am

I read that, and the codex, several times and i'm still lost with this.  It's not specific enough for me to know where, and what, i'm supposed to do with this code.  

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2015 - 12:22 pm

I think the best way of doing this is showing you where we have the template functions in our themes. If you have a child theme any templates you don't have in your folder you will need to copy in. If you're using a stock theme you can make these additions directly to the stock themes templates.

For topic view (spTopicView.php or spTopicViewDesktop.php for Reboot) we have -

if (function_exists('sp_PostIndexUserReputationLevel')) sp_PostIndexUserReputationLevel('tagClass=spPostReputationLevel spCenter');

on line 140, the next line down from sp_PostIndexUserMemberships. Make a new space and paste it in.

Next up -

if (function_exists('sp_PostIndexRepUser')) sp_PostIndexRepUser('tagClass=spCenter', '', __sp('Give/Take Reputation'));

Is on line 154, just after the 'user-identities' section end. Again make a new space if needed and paste it in.

For members view (spMembersView.php or spMembersViewDesktop.php for Reboot) we have -

if (function_exists('sp_MembersListReputationLevel')) sp_MembersListReputationLevel('', '');

on line 83 one line down from sp_MembersListName. Make a new space and paste it in.

For profile, we have either popup or page profile so I'll list both, pick the one you use.

Starting with spProfileShow.php, we have -

if (function_exists('sp_UserReputationLevel')) sp_UserReputationLevel('', $spProfileUser);

on line 36 one line down from sp_UserMembership but before the section end. Make a new space and paste it in.

Then for spProfilePopupShow.php we have -

if (function_exists('sp_UserReputationLevel')) sp_UserReputationLevel('', $spProfileUser);

on line 30, again one line down from sp_UserMembership but before the section end. Make a new space and paste it in.

That should get you started. Apologies that the theme updates haven't come out at the same time but when they do if you follow these instructions you shouldn't have to change anything when you get the updates to themes.

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Oct 20, 2015 - 1:17 pm

Awesome!  I'll get to this soon.  So I can place this and it will be overwritten when you update the themes?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2015 - 2:33 pm

Correct, but remember -

If you're using a child theme and are using any of those templates already you will need to add the code to them manually no matter what..

If you're using a stock theme you can make your changes directly to it now, and it will be overwritten with the same code once the update rolls out..

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: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620