 |
 |
 |
 |
#237807 - 02/24/03 01:58 AM
[6.2] Admin Selectable Ratings 1.0
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
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 (92 downloads)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#237838 - 01/21/04 01:37 PM
Re: [6.2] Admin Selectable Ratings 1.0
[Re: irnet]
|
Newbie
Registered: 10/02/03
Posts: 12
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#237840 - 02/11/04 05:03 PM
Re: [6.2] Admin Selectable Ratings 1.0
[Re: Daine]
|
Code Monkey
Registered: 11/15/02
Posts: 576
Loc: Great Northwest
|
Josh it says to relace this line<br /> SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName<br /><br /> <br /><br />when mine actually looks like this<br /> // SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName, [:"red"]t1.B_ParentUser[/]<br /> <br /><br /><br />and I am also getting this now<br /><br />SQL ERROR: Unable to do_query: // SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName,t1.B_ParentUser SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_RatingImage,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName,t1.B_ParentUser FROM w3t_Posts AS t1, w3t_Users AS t2 WHERE t1.B_Main = 62335 AND t1.B_PosterId = t2.U_Number ORDER BY B_Number LIMIT 30 <br />You have an error in your SQL syntax near '// SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Bo' at line 2
_________________________
ChAoS Emerald Forest Gaming Servers Official STFU Thread
|
|
Top
|
|
|
|
 |
 |
 |
 |
| |