Support Forum
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...
Visit Cruise Talk Central and Mr Papa's World
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.
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...
Visit Cruise Talk Central and Mr Papa's World
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:
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.
YELLOW
SWORDFISH
|
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!
1 Guest(s)