[ABD] Post Bot Mod - New Version 1.0.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [Beta] Post Bot Mod

Post by RedTrinity »

I have upgraded to Gold and the Post Bot MOD is working fine ;)
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [Beta] Post Bot Mod

Post by iyeru42 »

RedTrinity wrote:I have upgraded to Gold and the Post Bot MOD is working fine ;)
Did you have the post bot mod installed before you upgraded? MODs seem to work better if they were installed before, and then you upgraded. But if you'd install that mod freshly on Gold, it wouldn't work. So please don't say that unless you installed it freshly, RedTrinity.
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [Beta] Post Bot Mod

Post by RedTrinity »

iyeru42 wrote:So please don't say that unless you installed it freshly, RedTrinity.
Well my post was sort of aimed at PopperTom who is aware that I already had it installed - as per my previous posts in this thread ;) Hence why I said I had upgraded, not just installed it.
kiran_n444
Registered User
Posts: 115
Joined: Mon May 21, 2007 9:42 pm

Re: [Beta] Post Bot Mod

Post by kiran_n444 »

This mod Doesn't Work for PHPBB3 GOLD if its a fresh Install. It gives a MySQL error.
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [Beta] Post Bot Mod

Post by iyeru42 »

kiran_n444 wrote:This mod Doesn't Work for PHPBB3 GOLD if its a fresh Install. It gives a MySQL error.
@RedTrinity: See what happened?
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [Beta] Post Bot Mod

Post by RedTrinity »

iyeru42 wrote:
kiran_n444 wrote:This mod Doesn't Work for PHPBB3 GOLD if its a fresh Install. It gives a MySQL error.
@RedTrinity: See what happened?
Your point being?? Read my post above ;)
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [Beta] Post Bot Mod

Post by iyeru42 »

RedTrinity wrote:Your point being?? Read my post above ;)
poppertom will most likely want it to work as a fresh install onto Gold, rather than via an upgrade.
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [Beta] Post Bot Mod

Post by RedTrinity »

iyeru42 wrote:
RedTrinity wrote:Your point being?? Read my post above ;)
poppertom will most likely want it to work as a fresh install onto Gold, rather than via an upgrade.
Yes, but I thought I would courteously confirm that things are fine on the upgrade side of things. Anyway... this is going nowhere so can we move on now please :P
annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: [Beta] Post Bot Mod

Post by annepenullar »

Hello, I think I got everything working except that I'm getting a Javascript error on:

Code: Select all

function fillCategory(){ 
 // this function is used to fill the category list on load
addOption(document.postform.Category, "create", "{L_CREATE_NEW}", "");
addOption(document.postform.Category, "old", "{L_OLD_TOPIC}", "");
}
The error says:

Code: Select all

addOption is not defined
fillCategory()community (line 65)
onload(load )community (line 1)
[Break on this error] addOption(document.postform.Category, "create", "{ CREATE_NEW }", "");
Is there a way to load the bot without getting any browser errors? Thank you.
poppertom69
Registered User
Posts: 383
Joined: Wed Jun 06, 2007 7:44 am
Location: Bucks, UK
Name: Tom Martin

Re: [Beta] Post Bot Mod

Post by poppertom69 »

I am so sorry this is taking a while, i have had a lot of problems come up! annepenullar I will try to come up with a new way of doing it, but at the time that is all i could think of but i will try to find a different way to help you!
Do one thing everyday, that scares you!
annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: [Beta] Post Bot Mod

Post by annepenullar »

Oh okay, so it's not my editing that's at fault. Thank you for confirming immediately. I'll await for your fix. :oops:
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [Beta] Post Bot Mod

Post by iyeru42 »

When that happens, it means it can't find the function or there is no function named addOption. (You need to have it as a function OR a superclass in order to do what you want it to do.)
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
annepenullar
Registered User
Posts: 137
Joined: Sun Oct 21, 2007 7:01 am

Re: [Beta] Post Bot Mod

Post by annepenullar »

iyeru42 wrote:When that happens, it means it can't find the function or there is no function named addOption. (You need to have it as a function OR a superclass in order to do what you want it to do.)
I'm sorry, I'm not sure if I'm understanding you. Please clarify your phrase: "you need to have it as a function OR a superclass."

I have declared the function:

Code: Select all

function fillCategory(){ 
 // this function is used to fill the category list on load
addOption(document.postform.Category, "create", "{L_CREATE_NEW}", "");
addOption(document.postform.Category, "old", "{L_OLD_TOPIC}", "");
}

inside

Code: Select all

<script></script>
tag. And replaced

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
with

Code: Select all

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}" onLoad="fillCategory();">
all of which are from the installation procedures. Am I inputting the wrong code?

Should you need more of the code, maybe to sort incompatibilities, below is my overall_header.html. Thank you.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
{SEO_BASE_HREF}
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF --></title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}

<!--
	phpBB style name: prosilver
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by:      
	
	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{LA_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var onload_functions = new Array();
	var onunload_functions = new Array();
	// www.phpBB-SEO.com SEO TOOLKIT BEGIN
	var seo_delim_start = '{SEO_START_DELIM}';
	var seo_static_pagination = '{SEO_SATIC_PAGE}';
	var seo_ext_pagination = '{SEO_EXT_PAGE}';
	// www.phpBB-SEO.com SEO TOOLKIT END
	<!-- IF S_USER_PM_POPUP -->
		if ({S_NEW_PM})
		{
			var url = '{UA_POPUP_PM}';
			window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
		}
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username(url)
	{
		popup(url, 760, 570, '_usersearch');
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (i = 0; i <= onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

function fillCategory(){ 
 // this function is used to fill the category list on load
addOption(document.postform.Category, "create", "{L_CREATE_NEW}", "");
addOption(document.postform.Category, "old", "{L_OLD_TOPIC}", "");
}


	window.onunload = function()
	{
		for (i = 0; i <= onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}" onLoad="fillCategory();">


    <div class="outside">
       <div class="top-left"></div><div class="top-center"></div><div class="top-right"></div>
          <div class="inside">
             <div class="notopgap">

<div id="wrap">
	<a id="top" name="top" accesskey="t"></a>
	<div id="page-header">
		<div class="headerbar">
			<div class="inner"><span class="corners-top"><span></span></span>

			<div id="site-description">
				<a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p>
				<p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
			</div>

		<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
			<div id="search-box">
				<form action="{U_SEARCH}" method="post" id="search">
				<fieldset>
					<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" /> 
					<input class="button2" value="{L_SEARCH}" type="submit" /><br />
					<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
				</fieldset>
				</form>
			</div>
		<!-- ENDIF -->

			<span class="corners-bottom"><span></span></span></div>
		</div>

		<div class="navbar">
			<div class="inner"><span class="corners-top"><span></span></span>

			<ul class="linklist navlinks">
				<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

				<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>

				<!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
			</ul>

			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
			<ul class="linklist leftside">
				<li class="icon-ucp">
					<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u">{L_PROFILE}</a>
						<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull; 
					<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
					<!-- IF U_RESTORE_PERMISSIONS --> &bull;
					<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
					<!-- ENDIF -->
				</li>
			</ul>
			<!-- ENDIF -->

			<ul class="linklist rightside">
									<!-- IF S_CONTACT_ENABLED --><a href="{U_CONTACT}" title="{L_CONTACT_BOARD_ADMIN}" class="icon-contact">{L_CONTACT_BOARD_ADMIN_SHORT}</a>&nbsp; <!-- ENDIF --><li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
				<!-- IF not S_IS_BOT -->
                <!-- IF S_DISPLAY_ANONYMOUS --><li class="icon-members"><a href="{U_ANONYMOUS}" title="{L_ANONYMOUS}">{L_ANONYMOUS}</a></li><!-- ENDIF -->

					<!-- IF S_DISPLAY_MEMBERLIST --><li class="icon-members"><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
					<!-- IF not S_USER_LOGGED_IN --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
					<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l">{L_LOGIN_LOGOUT}</a></li>
				<!-- ENDIF -->
			</ul>

			<span class="corners-bottom"><span></span></span></div>
		</div>

	</div>

	<a name="start_here"></a>
	<div id="page-body">
		
		 <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
		<div id="message" class="rules">
			<div class="inner"><span class="corners-top"><span></span></span>
				<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<!-- ENDIF -->
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: [Beta] Post Bot Mod

Post by iyeru42 »

Code: Select all

addOption(document.postform.Category, "create", "{L_CREATE_NEW}", "");
is a reference not a declaration.
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
User avatar
IHMUN
Registered User
Posts: 138
Joined: Tue Jun 26, 2007 11:10 pm

Re: [Beta] Post Bot Mod

Post by IHMUN »

Great idea! I'll definitely be using it.
Locked

Return to “[3.0.x] Abandoned MODs”