10-07-2001, 10:00 PM
Just for the record, this is my first hack release :D
OK, this hack displays a 'Member of the Day' as seen on (wlukes) SitePoint forum. It basically randomly chooses a member from your member list and displays them as a 'member of the day' for 24 hours. Example: http://forums.killermovies.com/
Requirements: Perl, Crontab, VBulletin v2.0.3 (should work on other versions - untested!)
Steps:
1) Run the following query in either a Telnet session of Phpmyadmin:INSERT INTO replacement (replacementsetid, findword, replaceword) VALUES (-1, '{memberoftheday}', 'Admin');
2) Add the following anywhere in forumhome template:The YOUR_FORUM_NAME Member of the Day is <b>{memberoftheday}</b>
3) Modify the attached file and change the <DATABASE NAME> <SERVER> <USERNAME> <PASSWORD> to their appropriate values for your setup. Rename to updatemotd.pl.
4) Upload the attached file updatemotd.pl to your forums directory and make it executable. I suggest you run 'chmod 700 updatemotd.pl' to stop people running the script from the web.
5) Create a Cron job that will run at midnight and execute that script. You can use the following in your crontab:0 0 * * * UNIX_PATH_TO_FORUM/updatemotd.plThats all folks! :D
OK, this hack displays a 'Member of the Day' as seen on (wlukes) SitePoint forum. It basically randomly chooses a member from your member list and displays them as a 'member of the day' for 24 hours. Example: http://forums.killermovies.com/
Requirements: Perl, Crontab, VBulletin v2.0.3 (should work on other versions - untested!)
Steps:
1) Run the following query in either a Telnet session of Phpmyadmin:INSERT INTO replacement (replacementsetid, findword, replaceword) VALUES (-1, '{memberoftheday}', 'Admin');
2) Add the following anywhere in forumhome template:The YOUR_FORUM_NAME Member of the Day is <b>{memberoftheday}</b>
3) Modify the attached file and change the <DATABASE NAME> <SERVER> <USERNAME> <PASSWORD> to their appropriate values for your setup. Rename to updatemotd.pl.
4) Upload the attached file updatemotd.pl to your forums directory and make it executable. I suggest you run 'chmod 700 updatemotd.pl' to stop people running the script from the web.
5) Create a Cron job that will run at midnight and execute that script. You can use the following in your crontab:0 0 * * * UNIX_PATH_TO_FORUM/updatemotd.plThats all folks! :D