Support Forum
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/
YELLOW
SWORDFISH
|
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.
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.
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.
YELLOW
SWORDFISH
|
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.
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..
1 Guest(s)