php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#237807 - 02/24/03 01:58 AM [6.2] Admin Selectable Ratings 1.0
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   [6.2] Admin Selectable Ratings 1.0 to Del.icio.us Add to del.icio.us
  Digg [6.2] Admin Selectable Ratings 1.0 Digg it
I wrote this for a client this weekend, thought I'd share here, incase anyone else had a use for it.<br /><br />Mod Name: Admin Selectable Ratings 1.0<br /><br />Description: This allows the Admin to assign a custom rating image.<br />Useful for admins who want to be the one to assign ratings, or you could use to signify the level of financial support you've received from a user. I've included a series of graphics, so you can define from 1-5 gold stars for a user, then you can begin to change the stars from gold to red. Then from red to blue. Thus it's a rating system (admin or mod controlled) that allows you to go beyond just 5 stars, similar to the ebay rating system. You can add new rating images simply by uploading them to your server, they will then be instantly available to you.<br />Image Examples:<br />[]http://www.gapofrohan.com/forum/images/ratingimages/B1red4gold.gif[/]<br />[]http://www.gapofrohan.com/forum/images/ratingimages/B4red1gold.gif[/]<br />[]http://www.gapofrohan.com/forum/images/ratingimages/C2blue3red.gif[/]<br />[]http://www.gapofrohan.com/forum/images/ratingimages/D3green2blue.gif[/]<br /><br /><br />Author: JoshPet www.joshuapettit.com<br />        For discussion and bug reports go to www.threadsdev.com<br /><br />Credits: Gardener for help sorting the list of images.<br />      Commissioned by and demo at: www.gapofrohan.com<br /><br />Date: 2/24/03<br /><br />Working Under: 6.2<br /><br />Files Modified: /admin/showoneuser.php, /admin/dochangeuser.php, showflat.php, <br />showthreaded.php, showprofile.php<br /><br />New Files: included images, uploaded to /images/ratingimages<br /><br />Database Modifications: New field "U_RatingImage" added to the Users table.<br /><br />Notes: To use, edit the user from the admin menu, and edit their profile, you'll see a pull down box at the bottom to select their rating image. When you select an image, a preview of the image will appear for you next to the menu box.<br />


Attachments
70611-AdminSelectableRatings1.0.zip (93 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237808 - 02/24/03 03:19 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Will this work with custom titles? and the profile hack?

Top
#237809 - 02/24/03 09:09 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Kelly]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yup. This only replaces the ratings. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237810 - 02/24/03 09:10 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Correction.... when you say "profile hack" if you mean status bars it won't. This uses the ratings as does the profile status bar.<br /><br />This could be adapted to work with it though. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237811 - 02/24/03 07:05 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Yes I am using your restrict profile mod so my users will fill in there profiles. Along with the user profile status bar. I also added the custom titles mod.. I would like to keep these and add this to go with them. The site is user supported and this would allow the ability to sell various levels of sponsorship.

Top
#237812 - 02/24/03 09:32 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Kelly]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'll ahve to tweak this a bit then... to use this and profile status bars.<br /><br />It is doable.<br /><br />Unfortunately my list is pretty long right now... the stuff that I've been posting has been created for clients or myself. But when I get some time, I'll try to update this one to work with both.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237813 - 02/25/03 02:51 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Appreciate it... You been creating some great mods. Feel like a kid in a candy store with all these toys I got compared to the old classic. <img src="/forum/images/graemlins/smile.gif" alt="" /> I have a hard time keeping up with all the great stuff that keeps showing up!!!<br /><br />Thanks again for all the hard work.

Top
#237814 - 02/25/03 02:54 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Kelly]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he<br /><br />Classic has been around for a while, as has UBBDev. So we have alot to live up to, but we are growing fast here. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237815 - 04/12/03 12:47 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Hey Josh, I wanted to use this hack to give my PREMIUM users another rating image but after installing it I have seen that also moderators are allowed to change the ratingimage. Can this be turned off? <br /> <br />I want to use it the following way: <br /> <br />Rating should be still on but if an admin gives a 'premium' user a fixed ratingimage' then this should be always should independant of what others are voting on this user.


Edited by jluerken (04/12/03 12:51 PM)
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#237816 - 04/12/03 12:52 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: edr]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
If your Moderators are allowed to edit the users, then they'll have access to this like anything else.<br /><br />In your config file, there's an option to allow Moderators to edit users. If you turn that off, then moderators won't be allowed to edit.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237817 - 04/12/03 01:00 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
I know Josh, I know.<br /><br />My moderators should be able to edit users but should not be able to change their rating image. If they could do every moderator can make another user a premium user and thats not what I want <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#237818 - 04/12/03 01:14 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: edr]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Oh. I see.<br /><br />If you place the code inside an if statment like this, it'll only appear if they are an Admin:<br /><br />if ($user['U_Status'] == "Administrator") {<br /> // Put the code inside here<br />} // close the if statement<br /><br /><br />Then anything inside only shows to admins.<br />That might work. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237819 - 04/13/03 06:00 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Hi Josh, <br /> <br />can I have this more detailed? <br /> <br />Which files to change and how?


Edited by jluerken (04/14/03 02:11 AM)
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#237820 - 04/14/03 06:47 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: edr]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Attached I've outlined the changes I think you'd need to make. Untested.


Attachments
75708-adminsonly.txt (81 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237821 - 04/16/03 05:21 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
[]JoshPet said:<br />Attached I've outlined the changes I think you'd need to make. Untested. [/]<br /><br />Thanks, I think I will give it a try...
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#237822 - 07/02/03 12:42 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Why does this mod remove the user rating option when it doesn't have to as far as I can see. Now, I realize that the way it is meant to work is to let admins select the rating instead of users voting, but the mod would be more versatile if the rating option wasn't removed. There could still be information on how to remove the normal rating stuff for those who want to, but for those who want to use this to have some other type of image (informational or whatever) or who wants to have both types of ratings or those who use the profile status bar it would be nice to have the option to not remove the ratings.<br /><br />Now, I don't think I'll have a problem making it do what I want, but maybe others will need the help.
_________________________
/Gardener | Complete list of my mods

Top
#237823 - 07/02/03 02:31 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: c0bra]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yes - good point - that's how I'm using it here. (for the haxxor logos). Removing the regular rating is just how the instructions had to be written for my client. But I should modify and update for 6.3 allowing it as an additional image. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#237824 - 07/02/03 04:16 PM Re: [6.2] Admin Selectable Ratings 1.0 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Yeah, took me a while to find this mod since I was looking for the haxxor mod, but since this one replaced the ratings I skipped it at first. =]<br /><br />Well, I've got it working at my test site now, will be going live with it as soon as I've had my graphics guy doing some graphics.
_________________________
/Gardener | Complete list of my mods

Top
#237825 - 09/06/03 02:36 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: c0bra]
agate Offline
Newbie

Registered: 06/29/02
Posts: 19
Hi JoshPet, <br />Could you provide this mod for V6.3?<br /><br />And don't replaced the rating one?

Top
#237826 - 09/06/03 02:54 AM Re: [6.2] Admin Selectable Ratings 1.0 [Re: ]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Should work fine for 6.3. <img src="/forum/images/graemlins/smile.gif" alt="" /> We are using it here for our Team UBBDev haxxor images. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Page 1 of 2 1 2 >


Who's Online
0 Registered (), 23 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 7
tackaberry 5
FREAK1 5
Chris Bale 4
Ian_W 4
Gizmo 4

 

 

 
fusionbb message board php hacks