Support Forum

Where are the CubePoints displayed?

TP Theo Patsios
Theo Patsios
Member

Hi,

I have just downloaded and installed your cubepoints plugin today but I do not see where it is showing up on the forum. Can you please explain to me when and where each user will see there current points? 

Thanks,

Theo

22 Answers

New Answer

MP Mr Papa
Mr Papa
Member

our codex article on the plugin gives the details:

http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/plugin-cubepoints/

TP Theo Patsios
Theo Patsios
Member

Is there any easy way to have it displayed also top left of the page where it says “logged in as”?

MP Mr Papa
Mr Papa
Member

just add the same template function where you want it to display in your theme…

your referenced text string, you can find in the theme template file spHead.php for the sp theme you are using…

be sure to make changes to your own theme so as not to lose changes on upgrade:  http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

TP Theo Patsios
Theo Patsios
Member

Excellent, I love how easy this all this even for a non coder like me :)

1 problem, the points displaying in the header are reading 0 and not the same as the points for the same user in the topic view 

http://screencloud.net/v/BrsF

Any ideas?

 

and a second question would be how do I have this one in the header not show up when no user is logged in?

YS Yellow Swordfish
Yellow Swordfish
Member

Try using this tag instead please in the spHead template:

sp_CubePoints();

That should do it…

RG Robb G
Robb G
Member

I’m baffled beyond belief. I’m trying to get cubepoints to display at the upper left portion of the forum next to the logged in as section. I’m placing the code right under the sp_UserAvatar code in spHead.php.

Each time I place a code there, I get a fatal error message like: Fatal error: Call to undefined function sp_cubepoints() in /problem-with-post-edit-buttonome/barbaros/public_html/wp-content/sp-resources/forum-themes/mytheme/templates/spHead.php on line 90.

I’ve used:

sp_CubePoints();

sp_CubePoints (‘tagClass=spPostUserCubePoints spLeft’,’CubePoints’);
 
sp_CubePoints($args=”, $toolTip=”)
 
But those don’t seem to work. I must be missing something, but I can’t see it.
YS Yellow Swordfish
Yellow Swordfish
Member

have you actually activated the cubepoints plugin? That’s exactly what I would get if the plugin wad deactivated…

RG Robb G
Robb G
Member

Yes, both WordPress and SimplePress versions are installed and activated. I had no problem placing the cubepoints icon in the poster content area, but this is a different matter.

MP Mr Papa
Mr Papa
Member

have just verified it does work…

and you are using the exact same code sequence as in the post content area?  you error message indicates you are calling the wrong function… sp_cubepoints is not the same as sp_CubePoints…

YS Yellow Swordfish
Yellow Swordfish
Member

I just tired it too with no problem. I missed the case issue though…

RG Robb G
Robb G
Member

I used this code:

sp_PostIndexCubePoints(‘tagClass=spPostUserCubePoints spLeft’, ‘CubePoints’);

The icon now displays. Was that the correct code to use? In post 6 of this thread, the guy said that the points was always at zero in the upper display no matter what the true score is.

I tried replacing the sp_PostIndexCubePoints part with sp_CubePoints as Yellow SwordFish advised him to do, but I got a fatal error.