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
Where are the CubePoints displayed?
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 3, 2013 - 8:30 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Robb G
Member
sp_UserOfflineSmall Offline
Feb 3, 2013 - 9:03 am

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2013 - 11:09 am

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 3, 2013 - 11:14 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Robb G
Member
sp_UserOfflineSmall Offline
Feb 3, 2013 - 12:41 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2013 - 1:37 pm

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...

Avatar
Robb G
Member
sp_UserOfflineSmall Offline
Feb 3, 2013 - 1:51 pm

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
Avatar
Robb G
Member
sp_UserOfflineSmall Offline
Feb 3, 2013 - 1:54 pm

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.
 
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 3, 2013 - 2:43 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Robb G
Member
sp_UserOfflineSmall Offline
Feb 3, 2013 - 4:12 pm

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!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625