Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Display Cube Points information in the forum
Avatar
nomis78
Member
Free Members
sp_UserOfflineSmall Offline
Apr 4, 2012 - 11:49 pm

not just yet no, I didnt want to try and impliment anything that hadnt been tested until i have my server press installation up and running so i can tiner with things like this without causing issue on the active site (which is proving troublesome but I'm working through it with their support) I was just posting on the off shot that the idea had maybe come up before and there was a known way to do it allready.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2012 - 7:22 pm

took a quick look at the plugin...  looks like it just updates all the cubepoint stuff in the database... then you just use the standard cubepoints method of displaying... so however you display that now, would be the same...  just add the command into the sp template file where you want it to appear (would be in spTopicView.php based on your previous)...

one caveat, the cubepoints plugin for wp lacks documentation, but appears only to support shortcodes...  so if you want to do a shortcode in an sp template file, do it like:

do_shortcode('[cubepoints_sc]')

obviously replace the stuff inside the [ ] with the shortcode and any attributes...

Avatar
nomis78
Member
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2012 - 2:28 am

Hey guys just wanted to report back that I found A way to do it, it isnt quite as elegant as I would like as the text displays a little larger then I would want but im going to look into that later, what I did was edit the spTopicView with a little trial and error, to save people time in the future:

Your Looking for the section that begins

# Column 1 of the post row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spUserSection spLeft&width=15%&height=50px');

With In that section choose the element you want the Points to display above and or below of, and enter the following on a new line:

echo '<br /><p align="center"><strong>Rank:<br /></strong>'.cp_module_ranks_getRank($spThisPostUser->ID).'</p><br />';

That snippet will display the posters Cube Points Rank along with the adequete space added above and below the read out to improve readability (though if you dont want that space remove the first and last

<br />

from that line

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 8, 2012 - 9:28 am

ah good work... wasnt much docs on cubepoints and I did not troll through the code, but you can do the same with any other plugin or theme function that is callable...  power of themes!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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