vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Robot Moderator (https://vborg.vbsupport.ru/showthread.php?t=32823)

amykhar 11-29-2001 10:00 PM

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. :D 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

TheComputerGuy 11-30-2001 10:24 PM

I will install it later tonight..but it looks so fun to play with nice work, thanks

Psychdrone 12-01-2001 10:25 PM

sounds intresting, but i am a little confused to ezactly what it dose.......

amykhar 12-01-2001 10:30 PM

It can be used to automatically post a thread using a cron script. It's great for lazy webmasters like me. ;)

Amy

Princeton 12-03-2001 12:14 AM

Would it be possible to post an rss file using this code? For example, posting an rss file that would consist of 'Breaking News' around the world or 'Doc JavaScript's Tip of the Day Archive'. In other words, something that will change everyday (not the same text).

amykhar 12-03-2001 12:41 AM

Sure. Instead of hardcoding the message and the subject, just make it read from a file.

Amy

Psychdrone 12-03-2001 01:11 AM

and that would be done by............. :p

amykhar 12-03-2001 01:23 AM

somebody other than me :D Sorry. I generally only work on hacks that I can use myself because my time is limited right now :(

Amy

Princeton 12-03-2001 02:31 AM

I can't get this to work? My host tells me my cron script is correct.

certify 12-03-2001 07:43 AM

Cool hack. I'll probably install this on my test board and see how it works.


All times are GMT. The time now is 10:04 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.01139 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete