vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   threadBOT: The Thread Provider (https://vborg.vbsupport.ru/showthread.php?t=80770)

sabret00the 05-15-2005 09:44 PM

ok my bad, set the threadBOT hour limit to 24.

and make sure that the cron job is set to run in hours rather than minutes.

TTG 05-15-2005 10:44 PM

Clicked install :)
One small confusing element .. in admincp "threadBOT Feeding Permissions" . "Please enter the forumid of a forum where only people you want to be able to feed the threadBOT have permission to view and post."

When using feed_threadBOT.php, the drop down list provides a list of category's into which post will be added by the cron. Do we need to add all the category ID's for all the forums we want posts to be allowed in the admincp?

sabret00the 05-16-2005 07:46 AM

nope you just gotta put in a forum with the permissions of the posters you want to be able to feed the threadBOT.

i think i explained it a bit better here https://vborg.vbsupport.ru/showpost....1&postcount=27

jilly 05-16-2005 01:27 PM

Okay, I put about 7 sample questions in through feed_threadBOT.php for the same forum, and when the cron time came, it posted all of the questions I had entered, instead of selecting just one randomly.

sabret00the 05-17-2005 02:12 PM

ok finally had time to play with this, it was me being a dummy.

regarding the cron set the hour you want it to run and set the minute to 0 or it will run continuously, sorry i should've checked that before hand.

jilly 05-17-2005 05:51 PM

Okay I did that, then I tried clicking the 'run now' button in scheduled tasks, and got this error:

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT *
FROM post_bank
WHERE threadid =
LIMIT 1

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4

mysql error number: 1064

Date: Tuesday 17th of May 2005 02:48:55 PM
Script: http://www.bmww.org/forums/admincp/c...cron&cronid=15
Referer: http://www.bmww.org/forums/admincp/index.php?

kevinrstruck 05-17-2005 06:21 PM

feed_threadBOT.php??? I installed, but I can not find this file anywhere. Where is it?

TTG 05-17-2005 08:05 PM

Quote:

Originally Posted by jilly
Okay I did that, then I tried clicking the 'run now' button in scheduled tasks, and got this error:

I'm getting the same error !?

jilly 05-17-2005 08:11 PM

kevin, feedthreadBOT.php should be in www.yoururl.com/forum/feedthreadBOT.php

sabret00the 05-17-2005 08:12 PM

Quote:

Originally Posted by jilly
Okay I did that, then I tried clicking the 'run now' button in scheduled tasks, and got this error:

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT *
FROM post_bank
WHERE threadid =
LIMIT 1

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 4

mysql error number: 1064

Date: Tuesday 17th of May 2005 02:48:55 PM
Script: http://www.bmww.org/forums/admincp/c...cron&cronid=15
Referer: http://www.bmww.org/forums/admincp/index.php?

are you sure you have any threads left in your thread_bank?

kevinrstruck 05-17-2005 08:15 PM

Quote:

Originally Posted by jilly
kevin, feedthreadBOT.php should be in www.yoururl.com/forum/feedthreadBOT.php


Not there. I assume this did not install correctly then?

jilly 05-18-2005 12:58 AM

sabre, I dont have any threads in, because it posted them all - but what I was hoping it could do is have a 'database' of threads, and could just randomly pick one for the day, but not necessarily delete it out of the queue - say I put like 150 questions in through feedthreadBOT - then I want to be able to let it run, so basically for the next year it will pick a random question each day, and post it, and hopefully not post the same question too often...

sabret00the 05-18-2005 09:58 AM

ok that being the case, open up forums/includes/cron/threadBOT.php and find
PHP Code:

    $DB_site->query("
        DELETE
        FROM thread_bank
        WHERE threadid = 
$spewthread[threadid]
    "
);

    
$DB_site->query("
        DELETE
        FROM post_bank
        WHERE threadid = 
$spewthread[threadid]
    "
); 

and replace with
PHP Code:

/*
    $DB_site->query("
        DELETE
        FROM thread_bank
        WHERE threadid = $spewthread[threadid]
    ");

    $DB_site->query("
        DELETE
        FROM post_bank
        WHERE threadid = $spewthread[threadid]
    ");
  */ 


sabret00the 05-18-2005 09:59 AM

Quote:

Originally Posted by kevinrstruck
Not there. I assume this did not install correctly then?

did you upload the files?

TTG 05-18-2005 10:15 PM

Had my first post made by the cron .. only the post header appeared in the category selected, no post content !?

jilly 05-19-2005 02:20 PM

I think that did it! Are you going to fix that in the zip? I think that should be default that threads dont get deleted from the thread bank :)

Now how about if you need to edit or delete a thread in the thread bank?

jilly 05-20-2005 01:32 PM

Okay, this seems to be working good for me now! I will post up my 'instructions' later tonight or tomorrow, for you to add to the first post :)

Woohoo!!!

TTG 05-20-2005 03:23 PM

Quote:

Originally Posted by TTG
Had my first post made by the cron .. only the post header appeared in the category selected, no post content !?

Support finished already for this hack !?

sabret00the 05-20-2005 03:29 PM

Quote:

Originally Posted by TTG
Had my first post made by the cron .. only the post header appeared in the category selected, no post content !?

please elaborate upon your problem as i don't quite understand your dilemma

TTG 05-20-2005 03:51 PM

Quote:

Originally Posted by sabret00the
please elaborate upon your problem as i don't quite understand your dilemma

Thanks for the quick response .. :)

Post made via threadBOT with normal posting header and a couple of dozen lines of text in the message box. Submitted post, await cron to add the post at specified time and post is made with the header only, post content not shown !?

Tried 3 different posts in different category's and same result. Checked template has been added to style and it's there ok ..

jilly 05-20-2005 07:42 PM

Okay, I have another issue - seems like threadBOT is postiong the same post three times in a row from the group of threads in threadbank - it's just taking the first thread (or maybe the last one, and only posting that - not picking a random one, and therefore not changing either..

sabret00the 05-20-2005 07:47 PM

Quote:

Originally Posted by TTG
Thanks for the quick response .. :)

Post made via threadBOT with normal posting header and a couple of dozen lines of text in the message box. Submitted post, await cron to add the post at specified time and post is made with the header only, post content not shown !?

Tried 3 different posts in different category's and same result. Checked template has been added to style and it's there ok ..

so confused but then it's friday night. screenshot?

sabret00the 05-20-2005 07:48 PM

Quote:

Originally Posted by jilly
Okay, I have another issue - seems like threadBOT is postiong the same post three times in a row from the group of threads in threadbank - it's just taking the first thread (or maybe the last one, and only posting that - not picking a random one, and therefore not changing either..

strange one, how many threads in the thread bank and what are the settings of the cron?

month *
week *
day *
hour XX
minute 0

???

TTG 05-20-2005 08:25 PM

Quote:

Originally Posted by sabret00the
so confused but then it's friday night. screenshot?


:ermm: .. screenshot of what .. an empty post with just a header !?

sabret00the 05-20-2005 08:28 PM

Quote:

Originally Posted by TTG
:ermm: .. screenshot of what .. an empty post with just a header !?

yup as right now i've no idea what you mean so i'm hoping a picture speaks 1000 words :)

TTG 05-20-2005 09:27 PM

Picture of empty post attached :ermm:

sabret00the 05-20-2005 09:39 PM

damn, how did that happen, download the latest zip and replace the file in the cron folder, i'm hoping that you have have an old one.

TTG 05-20-2005 09:55 PM

That solved the problem .. thanks sabretOOthe :)

jilly 05-23-2005 07:34 PM

Re - the same thread posted each day -

I have about 5 questions in the thread bank

cron settings are:

Day of the week *
Day of the month *
Hour 15
Minute 0
log entries = yes
./includes/cron/threadBOT.php

sabret00the 05-24-2005 12:10 PM

Quote:

Originally Posted by jilly
Re - the same thread posted each day -

I have about 5 questions in the thread bank

cron settings are:

Day of the week *
Day of the month *
Hour 15
Minute 0
log entries = yes
./includes/cron/threadBOT.php

is it posting all of the question or just the same one over and over?

PKassab 05-24-2005 04:00 PM

How come everytime the postbot makes a post his count goes down one?

PKassab 05-24-2005 04:03 PM

also is there any kind of auto feed for it? or do i have to plug in a bunch of things for it and how com eits running every minute?

sabret00the 05-24-2005 07:09 PM

i have no idea how either of them have happened and what kind of auto feed are you referring to?

PKassab 05-24-2005 08:53 PM

Like where it can be smart and just make its own threads or pull feed from somewhere else already posted?

sabret00the 05-24-2005 09:00 PM

unfortunately not.

PKassab 05-24-2005 09:10 PM

Damm that sucks it would be good if we had one like that. Does anyone know where i can download a postbot for VBulletin, I used to have one and lost it

sabret00the 05-24-2005 09:20 PM

i believe velocd made a article bot.

dsboyce8624 06-04-2005 03:16 PM

Quote:

Originally Posted by PKassab
Damm that sucks it would be good if we had one like that. Does anyone know where i can download a postbot for VBulletin, I used to have one and lost it

Kindly leave my web site out of this!

:cool:

yahoooh 09-15-2005 12:43 AM

does this work perfectly on any life forum?

jilly 09-19-2005 02:08 AM

sabretooth, Here are some updated instructions I prepared a while ago, to try and make install and set up easy. Please check them and make sure they dont conflict with anything you've changed since then, and if they are okay you can add them to the zip if you like..

I was working on this for a while but then let it go because of other issues - but now am trying to get back on it again..


Instructions:
1. Download the threadBOT.zip file, and unzip it.

2. In your admin cp, add a new scheduled task Admincp > Scheduled tasks > new scheduled task
Title: threadBOT
Day of the Week: * (unless you have a specific day you want it to run on)
Day of the month: * (unless you're setting it to run once a month)
Hour: 17 (which will run it as five o'clock pm everyday)
Minute: *
Log Entries: Yes
Filename: ./includes/cron/threadBOT.php

3. Upload files to their proper directories, then run the HIS (Hack Installer System) by going to this url: run the installer @ http://www.yoururl.com/forums/install/hack_install.php - make sure to replace the www.yoururl.com with your doman address.

4. Make sure the checkbox that says 'threadBOT' has a check in it, then click 'continue' and follow the step by step instructions.

5. Modify the options. Go to adminc cp > vBulletin options > threadBOT
* threadBOT Active - turns your threadBOT on or off
* threadBOT name - the already existing username of who the threadBOT will be posting as - can be your name, or you may want to create a custom user and call it "Thread Bot" or whatever. The username must be already created.
* threadBOT Feeding Permissions - enter a forum ID number that has permissions of who you want to allow to feed it, or add info. For example if your moderators will be allowed to enter data into threadBOT's database, use the ID of your moderator forum. If you want only yourself to add data, then put in the forum ID that only you have permission to see/access. To find out what your forum ID number is, go to admin cp > Forums & Moderators > Forum Manager, then find your forum in the list. Hold your mouse over the link to the forum, and the forum ID is the number at the end of the url.
*

6. Create the threads to be auto-posted. Go to http://www.yoururl.com/forums/feed_threadBOT.php (again, replace www.yoururl.com with your domain name)
This will load up a box letting you create the title and subject of the message to be autoposted. You will see a drop down box to the right, that allows you to specify which forum it will be posted in. Choose your forum, and create your message.


All times are GMT. The time now is 04:03 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.01261 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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