Username:
Password:
Search for Plugins: Advanced
Please Sign in, Register or Resend Activation Email

Forums

  e107 Coders.org :: Forums :: E107 Plugins :: Q & A
 
<< Previous thread | Next thread >>  
Increase Rate Number          
Author Post
worshiploud
Thu Mar 26 2009, 02:34AM
Registered Member #69922
Joined: Sun Dec 24 2006, 05:39AM
Location:
Posts: 29
Is there a way to increase the rate number?
Instead of 1-10 I need it to be 1-40.
worshiploud
Thu Mar 26 2009, 11:46PM
Registered Member #69922
Joined: Sun Dec 24 2006, 05:39AM
Location:
Posts: 29
Okay just in case anyone else needs to do this.
I figured this one out too.
rate.php
change 10 to 40
Find
if (!$qs[0] || USER == FALSE || $qs[3] > 10 || $qs[3] < 1 || strpos($qs[2], '://') !== false)

replace with
if (!$qs[0] || USER == FALSE || $qs[3] > 40 || $qs[3] < 1 || strpos($qs[2], '://') !== false)


e107_handlers/rate_class.php
find
            <option selected='selected'  value='0'>".RATELAN_5."</option>
            <option value='".$url."{$table}^{$id}^{$self}^1'>1</option>
            <option value='".$url."{$table}^{$id}^{$self}^2'>2</option>
            <option value='".$url."{$table}^{$id}^{$self}^3'>3</option>
            <option value='".$url."{$table}^{$id}^{$self}^4'>4</option>
            <option value='".$url."{$table}^{$id}^{$self}^5'>5</option>
            <option value='".$url."{$table}^{$id}^{$self}^6'>6</option>
            <option value='".$url."{$table}^{$id}^{$self}^7'>7</option>
            <option value='".$url."{$table}^{$id}^{$self}^8'>8</option>
            <option value='".$url."{$table}^{$id}^{$self}^9'>9</option>
            <option value='".$url."{$table}^{$id}^{$self}^10'>10</option>

and just add more up to 40 by copying the last line and renumbering them.
Adn Poof. it works. :)
Back to top
Salihsalloum
Sun Sep 18 2011, 03:36PM
Registered Member #113600
Joined: Sat Sep 10 2011, 09:02AM
Location:
Posts: 1
Anyone knows how to change Rate picture?? To Box for example?
Back to top
fhtw
Mon Oct 24 2011, 09:07AM
Registered Member #113873
Joined: Mon Oct 24 2011, 09:03AM
Location:
Posts: 1
thanks
Back to top
Website
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System
Render time: 0.1836 sec, 0.1069 of that for queries. DB queries: 34.