vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Article Bot (https://vborg.vbsupport.ru/showthread.php?t=67078)

Byron 10-22-2005 04:58 AM

Is it possible to insert a quote at the end of each post?

The quote will be randomly selected within the code in the template.

How to add this to the template?

T3MEDIA 10-28-2005 05:10 AM

Why the hell (?>\([^\)]*\))|\b[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b
would erase everything???? That is a legal egex command to block anything within ( ) and any email... but if I put this into this hack it wipes everything...

any idea why that is?

Code Monkey 10-30-2005 06:16 PM

Quote:

Originally Posted by apshanon
I have installed articlebot hack in my 3.0.8 version. But I have upgaded vbulletin to 3.5.0. Please help me how I can setup articlebot again now

You can get articlebot working with vb 3.50 easily.

Make sure you still have the template. "articlebot_post" If not then create it.
PHP Code:

$article[description]

$article[link

Next open articlebot.php with your favorite editor. Change every instance of:

  • $DB_site-> with $db->
  • $vboptions[ with $vbulletin->options[
Do the same in admincp/articlebot_admin.php but also replace globalize( with $vbulletin->input->clean_array_gpc(


At this point, your article bot should function again.

Now just copy this and save it as cpnav_articlebot.xml and upload it into includes/xml directory. Then you will have your admin options again.

PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<navgroups product="vbulletin">
    <navgroup text="Article Bots" hr="true">
        <navoption>
            <text>Manage Article Bots</text>
            <link>articlebot_admin.php</link>
        </navoption>
        <navoption>
            <text>Add Article Bot</text>
            <link>articlebot_admin.php?do=add</link>
        </navoption>
        <navoption>
            <text>Add RSS to Article Bot</text>
            <link>articlebot_admin.php?do=addrss</link>
        </navoption>
    </navgroup>
</navgroups>

My articles are being written correctly and the admin seems to function. Milage may vary. Enjoy

Code Monkey 10-30-2005 07:36 PM

Also in articlebot_admin.php arround line 192. Replace
PHP Code:

    print_forum_chooser(
        
'forumid'00,
        
'<b>Forum</b><br />The forum this RSS will be posted in.<br />
        <span class="smallfont"><i><u>Note</u>: the article bot will post in any forum, even if it lacks permission<br />
        to do so, if the forum is closed, or if the forum acts as a category.<br />
        Therefore, choose the forum accordingly.</i></span>'
000
    
); 

With this

PHP Code:

    print_forum_chooser(
        
'<b>Forum</b><br />The forum this RSS will be posted in.<br /><span class="smallfont"><i><u>Note</u>: the article bot will post in any forum, even if it lacks permission<br />to do so, if the forum is closed, or if the forum acts as a category.<br />Therefore, choose the forum accordingly.</i></span>',
        
'forumid'0000
    
); 


Code Monkey 10-30-2005 11:04 PM

Well, the above updates will make your existing feeds work. In order to add new ones articlebot_admin.php will need to be reworked.

DS MrSinister 10-31-2005 02:49 PM

Quote:

Originally Posted by JumpD
Well, the above updates will make your existing feeds work. In order to add new ones articlebot_admin.php will need to be reworked.

great job.


I cant reable my feeds geting errors :(. all my feeds are disable

You going to plan rework the articlebot_admin.php :D

T3MEDIA 11-01-2005 10:21 PM

Quote:

Originally Posted by JumpD
Well, the above updates will make your existing feeds work. In order to add new ones articlebot_admin.php will need to be reworked.

Maybe you can help... my feeds keep turning "&" into "&amp;" and of course ruins the feed. is there a way to stop that? as well the egex commands do not seem to be working.

T3MEDIA 11-01-2005 10:27 PM

Quote:

Originally Posted by aciurczak
Here's what I need: What I want is help creating a script that will automatically do this every hour or so. Has anyone created an auto-move script before, or I should I start parsing through how the admincp component works? Thanks for any assistance one can provide...

- Alex

EDIT: Got it working. It moves threads with replies over to a discussion forum, and it also strips out threads with ADV: in the title as trash and puts them into a Trash forum, hidden from the public, for later review and deletion.

will you be releasing this or its private? Thanks.

aciurczak 11-01-2005 11:04 PM

Quote:

Originally Posted by T3MEDIA
will you be releasing this or its private? Thanks.

Here's a link to the code:

https://vborg.vbsupport.ru/showthread.php?t=92542

Since that post I added another clause to take care of the ADV posts:

Code:

$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET forumid = 22 WHERE forumid = 17 AND title LIKE '%ADV:%'");

chader144 11-03-2005 06:21 AM

Any chance this will be ported to 3.5? I like the plug-in system.


All times are GMT. The time now is 09:09 PM.

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.01710 seconds
  • Memory Usage 1,754KB
  • 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)bbcode_code_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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