View Full Version : Simple Promotion / Demotion System
luroca
05-17-2006, 10:00 PM
Please, excuse my poor English.
This hack adds a simple system to promote and demote users to certain primary usergroups according to joindate and number of post in a number of days. The posts in the most recent days can be ignored. This is, the posts of today will not be count until have past a number of days.
Installation:
1) Backup your database. If something goes wrong is your problem.
2) Install the product xml.
3) Configure the settings in ACP.
4) Upload the two php files to the folder "cron" of your board.
5) Add a scheduled task for each php.
Note: If you like, change the vbphrases in the product for a better English.
I can´t support this hack, if you can improve it, great.
Versions:
1.00: Initial release.
1.01: Added some options more: Last visit, last post and minimal posts.
Mr Chad
05-18-2006, 05:51 PM
Tight, does this allow you to add multiple promotions.
luroca
05-18-2006, 07:07 PM
Tight, does this allow you to add multiple promotions.No, it only changes between two usergroups. As I said, it?s a very simple system.
Regards
Ntfu2
05-18-2006, 07:22 PM
so simple its included in vBulletin already
How is this one different?
Snake
05-18-2006, 08:27 PM
Good work! ;)
luroca
05-18-2006, 09:20 PM
Good work! ;)Thanks, sir
so simple its included in vBulletin alreadyThere are many things included in vBulletin but I think that not this one; perhaps I am mistaked ...
Billspaintball
05-19-2006, 05:32 AM
so simple its included in vBulletin already
How is this one different?
Look at the options in the screenshot.
Looks like it does more than vB can.
luroca
05-19-2006, 06:59 AM
Looks like it does more than vB can.Yes, it?s for vBulletin :)
The promotion system in vBulletin (there is not demotion system) computers the total number of posts. This hack works with number of posts in a certain number of days.
Excuse me if I can?t explain it in a better way.
Regards
Ntfu2
05-19-2006, 09:40 PM
i see ;) thanks for explaining
MissKalunji
05-22-2006, 01:25 AM
i like it but is it possible to only use the demotion one? and i dont really understand how this works..
luroca
05-23-2006, 06:45 PM
i like it but is it possible to only use the demotion one? and i dont really understand how this works..You can use only demotionpost.php not adding a scheduled task for promotionpost.php.
This extension is really easy. In the ACP you set some variables and the cron files send some sql instructions to the database changing some users from one usegroup to another. If you see into the php files you?ll understand it sure :)
Regards
MissKalunji
05-23-2006, 08:49 PM
how does the demotion works :( im lost
MissKalunji
05-23-2006, 09:14 PM
Ok i got it :) thanks
MissKalunji
05-23-2006, 09:22 PM
I have a request
Would it be possible to set demotion on last activity time?
me it isnt about post really but the last time YOU LOGGED ON...
luroca
05-24-2006, 08:59 AM
Umm, it´s possible. I´ll see how to integrate it.
Regards
MissKalunji
05-24-2006, 11:33 AM
Thanks!
luroca
05-26-2006, 03:16 PM
Added some options more: Last visit, last post and minimal posts.
If you like, click install :)
Regards
MissKalunji
05-26-2006, 03:55 PM
Perfect! thank you so much!
MissKalunji
05-26-2006, 04:14 PM
Im kind of lost
I put Time from last post : 30
and time from lat visit 30
For 30 days
Latency time 10 as i dont want to be counting the 10 last post?
demotion time 60 for 60 days (dont get that one)
and when i run demotion
it takes even people who are active like NOW
what am i doing wrong?
luroca
05-26-2006, 04:45 PM
latency = 10 exclude posts in the last 10 days, not last 10 posts.
MissKalunji
05-26-2006, 05:06 PM
man ig ive up this whole thing is loosing me
moonclamp
05-30-2006, 10:29 AM
I'm trying to understand this a bit better.
On the standard system I have a promotion where all users with more than 15 posts ger promoted to a special group.
What I want is to be able to demote members who later on stop posting. IE move them back to the 'registered users' group when they become inactive.
Surely this will put them into a continuous loop ... being demoted for non-activity and then promoted again for having the correct postcount?
Or am I missing something?
MissKalunji
05-30-2006, 01:24 PM
thats exacly what im trying to do :-/
moonclamp
05-30-2006, 03:53 PM
Well I'm not going to install it until I'm clearer on what this does.
I'm wondering if I could demote members to a new group for lazy users ... but would they get moved back if they decide to start posting again?
luroca
05-30-2006, 05:18 PM
I'm trying to understand this a bit better.
On the standard system I have a promotion where all users with more than 15 posts ger promoted to a special group.
What I want is to be able to demote members who later on stop posting. IE move them back to the 'registered users' group when they become inactive.
Surely this will put them into a continuous loop ... being demoted for non-activity and then promoted again for having the correct postcount?
Or am I missing something?If you use the same usergroups in normal promotion and simple promotion, the continuous loop can occurr. My lazy usergroup cannot upgrade to active usergroup with normal promotion, only with simple promotion.
Regards
moonclamp
05-30-2006, 05:29 PM
So a member gets out of the lazy usergroup as soon as they start posting again?
luroca
05-30-2006, 06:06 PM
So a member gets out of the lazy usergroup as soon as they start posting again?If you set latency time > 0, nope. Example, if you set to 3, three days must pass before the user upgrade if he has enought posts. Perhaps in three days he has not enought posts ...
According to your settings, this one can be a very dinamical product :banana:
Btw, I don?t suport this product and you dont click install, what am i doing here? :D
Regards
moonclamp
05-30-2006, 09:25 PM
thank you. I think it;s our language differences that are confusing me.
Installed now :)
moonclamp
05-30-2006, 09:38 PM
On running the cronjob
MySQL Error : Unknown table 'user' in field list
is it taking table prefixes into account?
luroca
05-31-2006, 06:53 AM
On running the cronjob
MySQL Error : Unknown table 'user' in field list
is it taking table prefixes into account?Yes, it use prefixes.
moonclamp
05-31-2006, 09:47 AM
must be something else then.
Never mind.
Alfa1
08-05-2006, 08:35 PM
This could be a usefull mod for my board as well. I want to be able to promote members that:
Have more than a certain amount of reputation
+ are giving both positive and negative ratings
+ have a join date of more than 2 months ago
+ last visited of less than a month ago
Any chance on adding these functions?
RFViet
10-10-2006, 07:57 PM
can you add another promotion based on birthday ?? Because my forum has adult section !!
Alfa1
10-10-2006, 08:41 PM
Will this be ported to 3.6.2?
Is this hack still supported?
PixelFx
10-16-2006, 02:24 PM
any plans for a hack like this or update to this hack for 362? based on promotion / demotions based on post or login in last so many days?
Stifler
02-04-2007, 03:18 PM
i get this when i run promotionpost from cron..
Database error in vBulletin 3.5.7:
Invalid SQL:
SELECT user.userid, user.usergroupid as usergroupid, user.joindate as joindate, user.lastvisit as lastvisit, user.lastpost as lastpost, user.posts as posts, post.userid as huserid, count(postid) as totalpost
FROM vb_user LEFT JOIN vb_post ON user.userid = post.userid
WHERE dateline >= 1168016694 AND dateline < 1170435894 AND lastpost > 1170003894 AND lastvisit > 1170003894 AND joindate <= 1170003894 AND posts >= 45 AND usergroupid = 2 GROUP BY huserid HAVING totalpost >= 40;
MySQL Error : Unknown table 'user' in field list
Error Number : 1109
lazydesis
02-09-2007, 08:13 PM
Bumppp !!!
djjeffa
04-30-2007, 10:42 AM
will this work for 3.6.5? did anyone try it?
luroca
05-02-2007, 01:59 PM
Hello, a lot of time without reading this thread but I never supported this hack. It is working very well in vb 3.6.5.
|Jordan|
06-26-2007, 11:13 PM
Will this hack work in VB 3.6 ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.