Support Forum

Display Cube Points information in the forum

NO nomis78
nomis78
Member

hey guys so i know that there is a cubepoints plugin for the forum and I have that installed but i was wondering, does anyone know how to make a persons cube points, or better yet their cube points rank, appear in the forum under the avatars?

I’m hoping to use them instead of forum ranks (my install utilizes buddypress so want use those to indicate cube point rank instead of number of posts as points award for positive interactions site wide)

13 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I am not aware of a Cube Points plugin? I know someone was writing one but we never did hear if that was ever finished. Where does this come from please?

NO nomis78
nomis78
Member

http://cubehouse.org/blog/plugins/simplepress-cubepoints-integration/

there you go, its pretty simple and just allows you to set the point values manually throught he admin panel

YS Yellow Swordfish
Yellow Swordfish
Member

Gosh – I didn’t know about that!

I am afraid I don’t know anything (personally) about CubePoints either but I DO know we have it on the list to investigate…

NO nomis78
nomis78
Member

okidoke, thanks :0)

I actually stumbled upon it by accident while looking around for something else related to cube points.

I figured that you may not know about it since it isnt your plugin but I figured that maybe someone here might have an idea so figured I would ask just in case

YS Yellow Swordfish
Yellow Swordfish
Member

Steve ,might who will be along later. If he can advise at all I am sure he will chime in.

NO nomis78
nomis78
Member

just wanted to bump this up since steve hadnt popped by and see if anyone might know who will have missed the thread first time around.

MP Mr Papa
Mr Papa
Member

Sorry, not sure I understand the question… Yes, a user developed that during the SP 5.0 beta program… as far as I know its still works, but have not tried it lately…

Is there a specific question you have on it?

NO nomis78
nomis78
Member

does anyone know how to make a persons cube points, or better yet their cube points rank, appear in the forum under the avatars?

Was the question

Ie: the Display would become:

[Avatar]
Username
Role
*Cube Points Rank*
Forum Posts:
Member Since:
Online status

hope that clears things up

MP Mr Papa
Mr Papa
Member

afraid I don’t know how the plugin works…  there is probably a template tag you would need to call in order for it to display the cube points rank…  its possible that it could just force the output but that would be against how we designed the theme display to allow users to use template tags to display where they wanted…

if I get a change this weekend, maybe I can take a quick look…

have you even tried it?

NO nomis78
nomis78
Member

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.

MP Mr Papa
Mr Papa
Member

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…

NO nomis78
nomis78
Member

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

MP Mr Papa
Mr Papa
Member

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!