Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-07-2001 Last Update: Never Installs: 1
 
No support by the author.

Just for the record, this is my first hack release

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:
Code:
INSERT INTO replacement (replacementsetid, findword, replaceword) VALUES (-1, '{memberoftheday}', 'Admin');
2) Add the following anywhere in forumhome template:
Code:
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:
Code:
0 0 * * * UNIX_PATH_TO_FORUM/updatemotd.pl
Thats all folks!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-08-2001, 12:12 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

create a cron job???????????
Reply With Quote
  #3  
Old 10-08-2001, 12:15 AM
Razzie
Guest
 
Posts: n/a
Default

Yes, its like a 'Scheduled Tasks' version of Unix/Linux.

You WILL need access to crontab, otherwise the hack won't be automated.
Reply With Quote
  #4  
Old 10-08-2001, 12:16 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im running win2k server
can it be done?
any links to tutorials?
tx!
Reply With Quote
  #5  
Old 10-08-2001, 12:17 AM
Razzie
Guest
 
Posts: n/a
Default

Not too sure about Win2k. You might want to contact your host and ask if they've got anything equivalent of crontab.
Reply With Quote
  #6  
Old 10-08-2001, 12:27 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]) 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.
Reply With Quote
  #7  
Old 10-08-2001, 12:29 AM
Razzie
Guest
 
Posts: n/a
Default

Sorry, but I'm not really an expert on Win2k hosting.

The file IS a perl file. You will also need perl - as was stated in the requirements.

Don't think Win2k have an executable option on files...again you might want to contact your host.
Reply With Quote
  #8  
Old 10-08-2001, 12:58 AM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its called Task Scheduler.

You must be at the console to access it, i have no idea how to do it over telnet.
Reply With Quote
  #9  
Old 10-08-2001, 03:19 PM
Sarge
Guest
 
Posts: n/a
Default

There has to be a way of doing this without cron
Sarge
Reply With Quote
  #10  
Old 10-08-2001, 04:23 PM
Razzie
Guest
 
Posts: n/a
Default

There IS a way of doing this without cron, but I chose this option as it would put the least amount load on the server. With this option, no extra SQL statements are executed.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:31 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
  • Page Generation 0.04503 seconds
  • Memory Usage 2,272KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete