![]() |
|
|
Mod Options |
Robot Moderator Details »»
|
|||||||||
|
This modification is in the archives.
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 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||
| Comments |
|
#2
|
||||
|
||||
|
I will install it later tonight..but it looks so fun to play with nice work, thanks
No members have liked this post.
|
|
#3
|
|||
|
|||
|
sounds intresting, but i am a little confused to ezactly what it dose.......
No members have liked this post.
|
|
#4
|
||||
|
||||
|
It can be used to automatically post a thread using a cron script. It's great for lazy webmasters like me.
![]() Amy No members have liked this post.
|
|
#5
|
||||
|
||||
|
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).
No members have liked this post.
|
|
#6
|
||||
|
||||
|
Sure. Instead of hardcoding the message and the subject, just make it read from a file.
Amy No members have liked this post.
|
|
#7
|
|||
|
|||
|
and that would be done by.............
![]() No members have liked this post.
|
|
#8
|
||||
|
||||
|
somebody other than me
Sorry. I generally only work on hacks that I can use myself because my time is limited right now ![]() Amy No members have liked this post.
|
|
#9
|
||||
|
||||
|
amy
I can't get this to work? My host tells me my cron script is correct.
No members have liked this post.
Last edited by Princeton : 03 Dec 2001 at 04:29. |
|
#10
|
||||
|
||||
|
Cool hack. I'll probably install this on my test board and see how it works.
No members have liked this post.
|
|
#11
|
||||
|
||||
|
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.
No members have liked this post.
|
|
#12
|
||||
|
||||
|
Princeton,
Does it work when you run it from your browser? Amy No members have liked this post.
|
|
#13
|
||||
|
||||
|
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. No members have liked this post.
|
|
#14
|
||||
|
||||
|
is there a way to get this to work on Windows 2000 server., I heard that windows doesnt have a cron job,
No members have liked this post.
|
|
#15
|
||||
|
||||
|
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 No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 23:52.



Give your robots a personality. For fun, sometimes I log in as one of them and play with the membership.




