Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
I need adjustment plugin code like
Avatar
Oscar pitarch
Member
Free Members
Offline
Jan 23, 2016 - 10:39 pm
Quote

 Hi!

See if you can help me with this detail. I would appreciate.

The code now lets give positive and negative votes to the first post of the topic. If they could fix so that it can only give positive votes ..? Thanks
   
1 add_filter('sph_PostIndexRatePost', 'my_post_rate_check');
2 function my_post_rate_check($out) {
3     global $spThisPost;
4     if ($spThisPost->post_index != 1) $out = '';
5     return $out;
6 }
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jan 24, 2016 - 12:21 am
Quote

This is a pre membership query forum and not a support forum...  for detailed help you really would need to open a topic in the support forum...

but if you just want a positive vote, you could just use the stars method instead of thumbs... if want thumbs, you will need to filter out (similar to your current) the onclick action and the display elements for minus...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626