![]() |
Reputation For New Threads and Posts
Hi.
First of all I'm not a coder. So this hack for a professionals might looks like total disaster but it works and that what is important for me... :) Like I said before I'm not a code therefore I don't give any support cause I barely know how this hack works :D :D :D :D This is simple version of this hack: https://vborg.vbsupport.ru/showthread.php?t=78853 It should (?) be compatible with 3.6.x as well. In specified below forums system will give X reputation points for any new thread and it will send PM to the poster with informatin about it. Code is clearly described. Take a closer look at places marked by CHANGE IT !. Have fun in includes/functions_newpost.php find: Code:
if ($type == 'thread') Code:
if ($foruminfo[forumid]>37 AND $foruminfo[forumid]<41)//works only in forums with id between 37 and 41 (so 38,39 and 40 only) CHANGE IT ! Code:
if ($foruminfo[forumid]>37 AND $foruminfo[forumid]<41 AND $postinfo['postid'] == 0)//works only in forums with id between 37 and 41 (so 38,39 and 40 only) CHANGE IT ! Code:
$foruminfo[forumid]==37 OR $foruminfo[forumid]==41 OR $foruminfo[forumid]==11 |
thanks. nice hack
|
hey, I'm not code god either but I did clean this up a little. I'm on 3.64 but I assume it'll work for you too.
create a new plugin at hook "newpost_complete" Code:
$pointsperreply=1; // repuation points per reply. 0 to disable this uses only 1 query instead of 2, lets you set different values for threads & replies, and lets you disable either. still not sure I want to hand out rep points for every post but since I'm using rep points for vBookie, they might need em. |
was just thinking about it and you probably should throw something in there in case it's a guest posting.
Code:
$pointsperreply=1; // repuation points per reply. 0 to disable |
anyone no of this mod for 4.0 or 4.2?
|
All times are GMT. The time now is 07:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|