Support Forum

Where are the CubePoints displayed?

22 Answers

New Answer

MP Mr Papa
Mr Papa
Member

No, I dont think you can use that function… the postindex part of indicates it must be used within the topic loop… the header is outside that loop…

the fatal error you got was sp_cubepoints… the actual function is sp_CubePoints… did you try with the proper case?? its does work, both Andy and I have tested it…

RG Robb G
Robb G
Member

I tried with proper case and got:

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 93
RG Robb G
Robb G
Member

Or do you mean proper case like this:sp_CUBEPOINTS?

I’m going by what the codex states to a tee.

Just to reiterate to show the cubepoints icon in the upper left corner of the forum, do i use:

sp_CubePoints(‘tagClass=spPostUserCubePoints spLeft’,’CubePoints’);
 
I used that exactly and I get a fatal error.
 
YS Yellow Swordfish
Yellow Swordfish
Member

The correct function name is, indeed, sp_CubePoints() with a capital C and P only.
The reason we are still asking about that is that the error text you posted above:

Call to undefined function sp_cubepoints()

still shows the function in the theme in all lower case.

RG Robb G
Robb G
Member

sp_CubePoints(‘tagClass=spPostUserCubePoints spLeft’,’CubePoints’); definitely doesn’t work. I tried it over and over almost to the point of insanity. C and P in CubePoints is capitalized.

Could the WordPress theme I’m using effect the code adversely? I can’t think of any logical reason why it wouldn’t work unless I’m missing something.

Edit: Looks like I had the SimplePress Cubepoints 1.0 installed. I deleted that and installed the latest one off of this website which is currently 1.2.

Now when I put the code sp_CubePoints(‘tagClass=spPostUserCubePoints spLeft’,’CubePoints’); nothing shows up. But when I put in

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

It will show up. I think I’m still missing something here.

Edit Again: I had to upgrade the plug-in to version 1.2 and use the basic code that Yellow Swordfish stated in post 7 of this thread to have the cubepoints icon in the upper left portion of the forum area . For anyone in the future looking at this thread for help, make sure you have the latest version!

MP Mr Papa
Mr Papa
Member

you put this in the spHead.php template file of the sp theme you are using? and so what error are you getting now?

no caching plugins, right?

RG Robb G
Robb G
Member

Fixed. I had the 1.0 version of the plug-in installed. I deleted that one and installed version 1.2 off of this site. I inserted the basic code and it works now.

Thanks.

MP Mr Papa
Mr Papa
Member

okay, thanks for the update… always best to make sure you have the latest version…