#1 (permalink)  
Old 10-01-2008, 07:32 AM
Registered User
 
Join Date: Dec 2004
Posts: 54
rookers is on a distinguished road
Default Rating - Registered Users Only!

Hey,

Is there a way to only allow registered users to rate a link ? I know there is an option to only allow registered users to write reviews, however I also want to only allow registered users to rate a link.

How is this possible ?
Reply With Quote
  #2 (permalink)  
Old 10-01-2008, 12:14 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

You can use the following

<%if $login_status_logged_in%>
rating code here
<%else%>
Registered users can rate links, signup today for free!
<%/if%>
Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 12:25 PM
Registered User
 
Join Date: Dec 2004
Posts: 54
rookers is on a distinguished road
Default

Hey Bruce, THanks for helping!

Where should I put these bits of code ?
Reply With Quote
  #4 (permalink)  
Old 10-01-2008, 12:48 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

What version of IndexU are you using?
Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 12:55 PM
Registered User
 
Join Date: Dec 2004
Posts: 54
rookers is on a distinguished road
Default

Hey,

I'm using version 5.4.0
Reply With Quote
  #6 (permalink)  
Old 10-01-2008, 01:30 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

On detail_link.html

<%if $login_status_logged_in%>
<form action="rating.php" method="post">
<input type="hidden" name="id" value="<%$link_id%>" />
<table bgcolor="#D3D3D3" cellpadding="5">
<tr>
<td colspan="2">
<b>Average Visitor Rating: </b> <%$rating_img%>
<b><%$rating%></b> (out of 5)<br />
Number of ratings: <%$votes%> Votes
</td>
</tr>
<tr>
<td width="100">
<b>Visitor Rating</b>
</td>
<td>
<select name="rating">
<option value="">Select Your Rating</option>
<option value="5">Excellent!</option>
<option value="4">Very Good</option>
<option value="3">Good</option>
<option value="2">Fair</option>
<option value="1">Poor</option>
</select>
<input type="submit" value="Rate It!" />
</td>
</tr>
</table>
</form>
<%else%>
Registered users can rate links, signup today for free!
<%/if%>
Reply With Quote
  #7 (permalink)  
Old 10-02-2008, 05:36 AM
Registered User
 
Join Date: Dec 2004
Posts: 54
rookers is on a distinguished road
Default

Hey,

Thank you Bruce! It works like a charm! U'r a GURU
Reply With Quote
  #8 (permalink)  
Old 10-30-2008, 12:42 PM
Registered User
 
Join Date: Mar 2008
Location: Rome, Italy
Posts: 59
Dr. Jekyll is on a distinguished road
Default

Where I have to insert that PHP codes for IndexU Deluxe v1.0 ?
Reply With Quote
  #9 (permalink)  
Old 10-30-2008, 02:25 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

On the same page, detail_link.html

The code will be pretty much the same.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email to registered users vittle v5.x 2 11-03-2005 12:59 AM
Only registered users should add links ?! Frank71 v5.x 3 08-06-2005 06:55 PM
manage Reviews in 'My Account' for registered users ideavirus v3.2 0 05-04-2005 05:29 AM
Only registered users allowed to submit url craven2 v5.x 5 08-03-2002 06:10 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 05:46 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate