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 amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-29-2001 Last Update: Never Installs: 4
 
No support by the author.

Many boards have threads that must be posted on a schedule.

For example some freebies boards have a thread about what was in the mail on a given day. Site sharing boards might have a thread for each date. I have a forum for members to post reviews that they write at Epinions each day.

Originally, my moderators started the thread in our Just In forum every day. Then, our robot moderators - Justin and Justine were born.

I run this using a cron script shortly after midnight each day. It's been working for a few months now.

Here's what you need to do.
1. Create an account for your robot moderator - or moderators. My version allows you to have two of them. Which one posts on any given day is calculated randomly based on the date.

2. I gave mine fun sig lines and profile pix. Babe of the day type sites can have fun with this. My board offers one hottie for each gender. Give your robots a personality. For fun, sometimes I log in as one of them and play with the membership.

3. I have included a standalone script that you will need to modify to suit your needs. It should be pretty easy for you to do. It is attached here as robomod.txt give it any name you desire with a .php extension and upload it to your forum directory.

4. Test it to make sure it does what you think it will do by running the script.

5. Create a cron job to run the script. I use lynx to run mine. IMPORTANT cron needs the FULL PATH to lynx!

My cron looks something like this:

0 0 * * * /usr/bin/lynx -dump http://www.eaforums.com/robotmod.php

I am NOT a cron expert. I simply filled out what I needed in my cpanel. Check the cron man pages or your nearest neighborhood Unix guru for cron help

Demo: Justine

Justin

Amy

Show Your Support

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

Comments
  #12  
Old 12-03-2001, 09:32 AM
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know I think this is definitely cool. A definite thing that would be good to add is to have this robotmod used for other purposes, like messaging onto reported threads, PMing users that were reported, etc.
Reply With Quote
  #13  
Old 12-03-2001, 10:55 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Princeton,
Does it work when you run it from your browser?

Amy
Reply With Quote
  #14  
Old 12-03-2001, 01:45 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy,
I got it to work. thank you
I don't think the rss (thing) is such a good idea. Anyway, it works perfectly. I'm just thinking of a good way to use it.
Reply With Quote
  #15  
Old 01-09-2002, 10:58 AM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to get this to work on Windows 2000 server., I heard that windows doesnt have a cron job,
Reply With Quote
  #16  
Old 01-09-2002, 12:24 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before I got cron to work, I used a windows scheduler program to simply call the url from my pc each day. The downside was that I had to be connected to the Internet for that to work.

Amy
Reply With Quote
  #17  
Old 01-09-2002, 01:05 PM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey can you give me mor detail as in how you got it work
My configuration is a Windows 2000 Server with IIS
and it is connected to the net cause its running the forum,
Reply With Quote
  #18  
Old 01-09-2002, 02:49 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hypedave,
I didn't mean run it on the same server as your forum. A window would have to be manually closed each day the way I did it. Maybe somebody else would know of a way for you to do it on a Windows server. Have you looked at a windows port of cron?

Amy
Reply With Quote
  #19  
Old 01-09-2002, 03:05 PM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh okay I wouldnt mind running it on a seperate pc I have to. Just tell me how you did it, and what app you used, im very interested in adding this to my site. I havent looked at a windows port of cron. did you mean do I know what port cron uses, I didnt understand that last question

thanks.
Reply With Quote
  #20  
Old 04-12-2002, 03:41 AM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this robot mod is so cool, I just got it to work
nice job

how do I specify my own subject instead of it using a date
Reply With Quote
  #21  
Old 04-12-2002, 12:48 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the code, simply change the $subject variable to the string of your choice. If you want the subject to be dynamic, that's a bit trickier. You would need to get the dynamic information into the script.

For example, if you wanted to start a new post each day that welcomed all new users by name in the subject line, you would have to do a query to get the names of everyone who joined in the past 24 hours, and put that information into your subject string.

Comment out my line that sets the subject as the date, and right after that, put (for example) $subject = "This is an automatic post!";

Hope that splains what you needed to know.

Amy
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 08:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04586 seconds
  • Memory Usage 2,307KB
  • Queries Executed 27 (?)
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
  • (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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete