Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
i'd use one of the custom fields, which then allows the user to turn that on/off by him/herself. then turn on this field in user settings via your admin cpanel and name it 'AllowRated' (or like that).

then just change the if to NOT be by user number, but by the custom field value. ie: 0,1 or null/whatever (prolly)

this would then allow any number of users to essentially allow the in place ratings to be applied as they permit.

the test would be then if (($config['USER_RATINGS'] == "1") && (!$user['custom_fieldx'])) { no rates } else { do rate }; <-- totally pseudo code there, so don't kill me laugh

ps: i'm doing this at WORK (shhhh don't tell anyone), so it's from memory, but if i get home and you don't have a solution, i will at least copy/paste the exact code and/or steps (that i might use) here to accomplish this .

pps: you could even go further as to allow a tri-state condition where users are of 3 minds:

0 - No rates never! (head in the sand)
1 - No one else sees my rating, but me (curious)
2 - Rate me hard baby (let 'er rip)

then to make it idiot proof in the profiles, replace the text field with a 3 state radio button (defaulted to most common) where users choose 0, 1 or 2 (with languages descriptors, of course)

wink

[humor mode on]

ppps: hehe, i just had a thought. the options could be expanded to:

0 - Nobody can see my rating and I don't wanna look (scared)
1 - Peeps can see my rating! But i wanna put a fake 5 in there (vain)
2 - Peeps can see my rating! But i wanna put a fake 0 in there (anti establishment)
3 - Peeps can see my rating! But i wanna put a fake 3 in there (lurker)
4 - Peeps can rate me, but not see! But i wanna peek (curious)
5 - Rate me hard baby! (muhaha)

[/humor] laugh

Sponsored Links
Entire Thread
Subject Posted By Posted
Allowing members to turn off their ratings willing 05/06/2007 4:34 AM
Re: Allowing members to turn off their ratings Rick 05/08/2007 5:06 AM
Re: Allowing members to turn off their ratings willing 05/08/2007 7:01 AM
Re: Allowing members to turn off their ratings willing 05/08/2007 1:50 PM
Re: Allowing members to turn off their ratings sirdude 05/08/2007 3:07 PM
Re: Allowing members to turn off their ratings Gizmo 05/09/2007 1:00 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)