News Article rating system help please!

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   News Article rating system help please!
xtrax1
CZ Active Member
 Codezwiz Site Donator
xtrax1 has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Feb 18, 2005
0.01 posts per day
Posts: 107
Points: 3,824
   
I need major help, my site is getting bombarded by visitors that are rating articles as low as they can and they just keep coming the idiots!

What I’m trying to accomplish is away to hide the submit button from none registered users !

So I tried this ..

if (!is_user($user)) {
$ratecontent .= "<center><input type=\"submit\" value=\""._CASTMYVOTE."\"></center></form><br>";
}


But that didn’t work, so I searched your forums and seen you added this to the very top of the article.php page!

if (!is_user($user)) {
Header("Location: modules.php?name=Your_Account");
}


The problem with that it makes the article not viewable and users and columnist to our site want their bio to display at the bottom of the article!

So now I’m back to my original question?

Is there away to hide the CAST MY VOTE button on the articles!

All help would be appreciated as these people obviously don’t have a life and they keep rating all the articles low!

XtraX1


Back to top Reply with quote
#2   re: News Article rating system help please!
xtrax1
CZ Active Member
 Codezwiz Site Donator
xtrax1 has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Feb 18, 2005
0.01 posts per day
Posts: 107
Points: 3,824
   
Never mind I figured it out!

Thanks anyway everyone!



Back to top Reply with quote
#3   re: News Article rating system help please!
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
What'd ya do?



Back to top Reply with quote
#4   re: News Article rating system help please!
xtrax1
CZ Active Member
 Codezwiz Site Donator
xtrax1 has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Feb 18, 2005
0.01 posts per day
Posts: 107
Points: 3,824
   
Sorry Kelly_Hero, it was late, I just wanted to insure that someone didnt wast their time helping me with it!

This is what i did for anyone else who wishes to have the Cast My Vote button hidden to none members and stop visitors from abusing the rating system in articles.

Open up modules/News/article.php

Find
$ratecontent .= "<center><input type=\"submit\" value=\""._CASTMYVOTE."\"></center></form><br>";


Change this line too this
if (is_user($user)) {
$ratecontent .= "<center><input type=\"submit\" value=\""._CASTMYVOTE."\"></center></form><br>";
} else {
$ratecontent .= "<center>Only <a href=\"modules.php?name=Your_Account&op=new_user\" ><b>Registered</b></a> members can rate, or you must <a href=\"modules.php?name=Your_Account\"><b>Login</b></a> to your account!</center>";
}


This way the button is hidden to none members and a default message will show to only un-registered members!

XtraX1


Back to top Reply with quote
#5   re: News Article rating system help please!
Loverboy27
CZ Newbie
Loverboy27 has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Aug 02, 2005
0.00 posts per day
Posts: 5
Points: 162
   
ehh....

how ironic; youre having problems with bombarding by votes (had actually), but my problem is that i havent any vote on my site lol icon_smile.gif not only votes link, but most important COMMENTS link. futher more, nuke is not calculating reads.

well.. im just started on nuke and i almost figured out everything but this is hard. since platinum doesnt have bb code news as preinstaled module, i found it somewhere, downloaded it and after resolving one problem with it (Cant acces file directly..) i have that another one. no comments, no votes, no stars no nothing. just a picture and some text lol icon_biggrin.gif im running on platinum 7.6.0. anyone knows download link for "fixed" bb code news module or how i can clear out that mess? icon_wink.gif

if someone can halp im here icon_biggrin.gif
ps: thanx telli and kelly hero for this beautiful design



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum