Katz Network

Katz Forums

Go Back   Katz Forums > Katz Downloads – Discussion & News > Webmasters

FreshWap Forums Download YouTube Universal Link Checker Make Money RapidTime

 
Old 08-10-2008, 11:02 AM   #1
Erratic
Administrator
 
Join Date: Apr 2007
Posts: 202
Erratic is offline

Default Auto submit to Katz from phpBB 3


Before you ask: No I have not made this for vBulletin and I am not going to any time soon. Switch to phpBB!

As per phpBB auto submitter for version two, this copy is basically identical the only thing that's changed is the query. It's hard coded like the other one, and the only "phpBB" function it uses is the database query structure. It only requires you to edit two files, and a total of three edits. Here are the instructions on using it:

When browsing any forum full of posts, click into your moderator control panel. Please note that I am using a custom theme on my install of phpBB3. You're link is probably somewhere else on the page.



Then, once you're in your desired forum you wish to submit threads from, select them and then hit the drop down box. From there you will see the option "Submit To Katz" select the option, and then hit submit.



From there, you will see the submissions page. It's not as fancy (and not part of your forum software) as the phpBB2 version. Though it's just as effective. The reason I didn't include template's etc, as I simply do not have time.



Then, it's as simple as hitting submit, and you're done. You should see the standard Katz submission page as follows:



Installing

This is very easy to install, easier than the phpBB2 version in fact. There's only a couple of edits, and the page being hard coded in makes it very fast to add.
/includes/mcp/

Open: /styles/___your_theme_name___/template/mcp_forum.html

Find:
			<!-- IF S_CAN_MAKE_ANNOUNCE -->
				<option value="make_announce">{L_MAKE_ANNOUNCE}</option>
				<option value="make_global">{L_MAKE_GLOBAL}</option>
			<!-- ENDIF -->
After, add:

<option value="submitkatz">Submit to Katz</option>
Open: /includes/mcp/mcp_main.php

Find:
		$quickmod = ($mode == 'quickmod') ? true : false;

		switch ($action)
		{
After, add:
			//Erratic phpBB3 Katz Submitter
			case 'submitkatz':
				$topic_ids = request_var('topic_id_list', array(0));
				submit($topic_ids);
			break;
			//Erratic phpBB3 Katz Submitter
Find:

/**
* Lock/Unlock Topic/Post
*/
function lock_unlock($action, $ids)
Before, add:

//
//Erratic phpBB3 Katz Submitter
//
function submit($topic_ids)
{
global $db;
$sql = 'SELECT topic_id, topic_title
	FROM ' . TOPICS_TABLE . '
	WHERE ' . $db->sql_in_set('topic_id', $topic_ids);
	$result = $db->sql_query($sql);
	$topic_info = $db->sql_fetchrowset($result);
	$db->sql_freeresult($result);

//Here's some basic settings.
$yoursite = "http://forums.eroticbb.com/viewtopic.php?t="; //include link to the viewtopic, so everything is there except for the unique ID.
$yoursiteurl = "http://forums.eroticbb.com/";
$youremail = "youremail@email.com";
$yoursitename = "EroticBB";

//Spit out the page.
print "<div align=\"center\"><table style=\"width: 900px; border-style:solid; font-family:tahoma; font-size:11px; padding:5px;\"><tr><td>You are using: <b>Erratic's phpBB3 Auto Sumitter</b>. For news, updates and fixes refer to <a href=\"http://www.katzforums.com/\" target=\"_blank\">Katz Forums</a>.<br /><br />Important! Please be sure to check <a href=\"http://katz.cd/submit.php\" target=\"_blank\">all rules</a> before submitting to Katz Downloads. Failure to do so may result in your site getting banned. We strongly recommend that you read over our <a href=\"http://www.katzforums.com/showthread.php?t=9905\" target=\"_blank\">best practises</a> in order to assure your submissions are up to our standards.<br /><br />";
print "<br /><form name=\"add\" action=\"http://katz.cd/submit.php\" method=\"POST\">";
print "<span style=\"font-size:18px;\">Downloads to Submit:</span><br /><br />";
foreach($topic_info as $topic_info)
{
$topic_title = $topic_info['topic_title'];
$topic_url = $topic_info['topic_id'];
print "Download Title: <input type=\"text\" name=\"title[]\" class=\"form\" maxlength=\"70\" size=\"40\" value=\"$topic_title\"> ";
print "Download Url: <input type=\"text\" name=\"url[]\" class=\"form\" maxlength=\"70\" size=\"40\" value=\"$yoursite$topic_url\"> <select name=\"type[]\" class=form><option value=\"App\">App</option><option value=\"Game\">Game</option><option value=\"Movie\">Movie</option><option value=\"TV\">TV</option><option value=\"Music\">Music</option><option value=\"XXX\">XXX</option><option value=\"eBook\">eBook</option><option value=\"Template\">Template</option><option value=\"Other\">Other</option></select> <a href=\"$yoursite$topic_url\" target=\"_blank\" class=\"mainmenu\">Check Download</a><br />";
}
print "<br /><span style=\"font-size:18px;\">Settings:</span><br /><br />Site Name: <input type=\"text\" name=\"sname\" class=\"form\" size=\"30\" value=\"$yoursitename\"> Site URL: <input type=\"text\" name=\"surl\" class=\"form\" size=\"30\" value=\"$yoursiteurl\"> Email: <input type=\"text\" name=\"email\" class=\"form\" size=\"30\" value=\"$youremail\"><br />";
print "<br /><input type=\"Submit\" value=\"Submit Download(s)\"></form>";
print "</tr></td></table>";

//That's all folks.
exit;
}
//
//Erratic phpBB3 Katz Submitter
//
All done, you can now submit threads from your phpBB 3 installation.
 
Last edited by Erratic; 08-11-2008 at 04:32 AM.
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 06:21 PM   #2
el_jentel1
Administrator
~nut ryte~
 
el_jentel1's Avatar
 
Join Date: Nov 2006
Posts: 733
el_jentel1 is offline
Default

All hail the great almighty Erratic, I'm sure a lot of webmasters will be grateful for this.
 
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 07:10 PM   #3
assam_siddibapa
Katz Active Member
 
Join Date: Apr 2008
Posts: 160
assam_siddibapa is offline
Default

Can there be any thing like this for SMF . It would be great ful .

Y only phpbb
 
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 07:38 PM   #4
el_jentel1
Administrator
~nut ryte~
 
el_jentel1's Avatar
 
Join Date: Nov 2006
Posts: 733
el_jentel1 is offline
Default

Erratic only made it for phpBB because he uses phpBB for his forums, so asking why this or that is really pointless, he spent time and effort making both the mods for phpBB2 and phpBB3 expecting nothing in return.

A simple thank you wouldn't hurt.
 
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 09:01 PM   #5
demo89
Katz Active Member
 
demo89's Avatar
 
Join Date: Feb 2008
Posts: 363
demo89 is offline
Default

Thanks Erratic, wonderful mod
 
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 09:07 PM   #6
JmZ
Katz Active Member
 
Join Date: Mar 2007
Posts: 155
JmZ is offline
Default

Quote:
Originally Posted by assam_siddibapa View Post
Can there be any thing like this for SMF . It would be great ful .

Y only phpbb
Well since I happen to have SMF installed and was bored for 10 minutes:

Open Index.php
Find:
'.xml' => array('News.php', 'ShowXmlFeed'),
Add After:
'autosubmit' => array('AutoSubmit.php','AutoSubmit'),
Open Themes/default/index.template.php
Find:
	if ($context['user']['is_logged'])
		echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
				<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
					<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
				</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Add After:
	// Or they want to submit
	if ($context['user']['is_mod'] || $context['user']['is_admin'])
		echo ($current_action == 'autosubmit' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first .'">&nbsp;</td>' : '' , '
				<td valign="top" class="maintab_' , $current_action == 'autosubmit' ? 'active_back' : 'back' , '">
					<a href="', $scripturl, '?action=autosubmit">AutoSubmit</a>
				</td>', $current_action == 'autosubmit' ? '<td class="maintab_active_' . $last .'">&nbsp;</td>' : '';
Change the config inside AutoSubmit.php
Upload AutoSubmit.php to Sources/
Upload AutoSubmit.template.php to Themes/default/

URL for the two files above: http://warezcoders.com/code/smfauto.zip

Seems to work for me, threw it together quickly so someone may find a bug.

Edit:
hmm that was actually interesting to code, i think ill make a similar script
 
Last edited by JmZ; 08-10-2008 at 09:14 PM.
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 09:29 PM   #7
xstatic
Member
Katz Member
 
Join Date: Dec 2007
Posts: 2
xstatic is offline
Default

hahaha, jmz ftw once again.
 
Re: Auto submit to Katz from phpBB 3
Old 08-10-2008, 10:11 PM   #8
infamousdice
Katz Active Member
 
infamousdice's Avatar
 
Join Date: Sep 2007
Posts: 191
infamousdice is offline
Default

Thanks for your hard work i have an extra domain let me test this one out
 
Re: Auto submit to Katz from phpBB 3
Old 08-11-2008, 03:21 AM   #9
Th3obr0
n00b Buster!
 
Th3obr0's Avatar
 
Join Date: May 2007
Location: Donut Shop.
Posts: 1,415
Th3obr0 is offline
Default

Thanks Erratic for phpBB and JmZ for the SMF submitter.

I wish someone codes one for vB and IPB now .
 
Re: Auto submit to Katz from phpBB 3
Old 08-11-2008, 06:34 AM   #10
MRDJ
Respected Member
 
MRDJ's Avatar
 
Join Date: Jun 2008
Location: delhi,india
Posts: 483
MRDJ is offline
Smile

hey Jmz Thanks for your Excellent effort but i cant get the code given by u to work on my Smf forum i did evrything what u said but i am stil unable to get that option of submitting to katz ...pleasee help.... i have made a test forum for this it would be nice if u can do this modifications there so that others can also see that it works ..and i may aso get to know how to make it work
 
 

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto submit to Katz from phpBB 2 Erratic Webmasters 78 10-23-2009 10:15 PM
submit to katz BetaDude1401 Help Desk 3 03-16-2009 10:10 AM
Auto submit to Katz from Vbulletin infamousdice Webmasters 11 08-25-2008 01:20 AM
Submit to Katz Using Katz Forums shanalk Webmasters 7 06-29-2008 03:18 AM
Can i use MEchoddl to submit to katz? UltimateWarez Webmasters 3 06-27-2008 03:54 PM



Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Top