So, I decided to modify Erratic's Submitter in order for it to work in any DDL...
I hope you guys like it...
There are several things you need to change :
1st Step : Replace -DDLNAME- with the DDL you want to submit name. REMEMBER THIS VALUE! ** NO CAPITAL LETTERS
2nd Step : Use the value you used in step 1 and replace it again. IT MUST BE EXACTLY THE SAME!!
3rd Step : Replace -DDLNAME- (1st line) with the same value you used in 1st and 2nd steps.
4th Step : Find "//Here's some basic settings." and replace with your details.
5th Step : Find "action=\"http://-DDLDOMAIN-/submit.php\" " and replace with your DDL's submission page.
Here is what you have to do :
Open : /styles/**/template/mcp_forum.html
Find :
After Add :
Open : /includes/mcp/mcp_main.php
Find :
After Add :
Find :
Before Add :
I hope you guys like it...
There are several things you need to change :
1st Step : Replace -DDLNAME- with the DDL you want to submit name. REMEMBER THIS VALUE! ** NO CAPITAL LETTERS
2nd Step : Use the value you used in step 1 and replace it again. IT MUST BE EXACTLY THE SAME!!
3rd Step : Replace -DDLNAME- (1st line) with the same value you used in 1st and 2nd steps.
4th Step : Find "//Here's some basic settings." and replace with your details.
5th Step : Find "action=\"http://-DDLDOMAIN-/submit.php\" " and replace with your DDL's submission page.
Here is what you have to do :
Open : /styles/**/template/mcp_forum.html
Find :
Code:
<!-- IF S_CAN_MAKE_ANNOUNCE -->
<option value="make_announce">{L_MAKE_ANNOUNCE}</option>
<option value="make_global">{L_MAKE_GLOBAL}</option>
<!-- ENDIF -->
Code:
<option value="submit-DDLNAME-">Submit to -DDLNAME-</option>
Find :
Code:
$quickmod = ($mode == 'quickmod') ? true : false;
switch ($action)
{
Code:
//Gempis/Erratic DDL Submitter
case 'submit-DDLNAME-': //Must be the EXACT SAME as the one stated in 1st step.
$topic_ids = request_var('topic_id_list', array(0));
submit-DDLNAME-($topic_ids); //Remember what you write here!!
break;
//Gempis/Erratic DDL Submitter
Code:
/**
* Lock/Unlock Topic/Post
*/
function lock_unlock($action, $ids)
Code:
//
//Gempis/Erratic DDL Submitter
//
function submit-DDLNAME-($topic_ids) // It must be the EXACT value I said you must remember!
{
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 = "[URL]http://-YOURDOMAIN-/viewtopic.php?t=[/URL]"; //include link to the viewtopic, so everything is there except for the unique ID.
$yoursiteurl = "[URL]http://-YOURDOMAIN-/[/URL]";
$youremail = "-YOURMAIL-";
$yoursitename = "-YOURFORUMNAME-";
//Spit out the page.
print "<div align=\"center\"><table style=\"width: 900px; border-style:dashed; font-family:tahoma; font-size:11px; padding:5px;\"><tr><td>You are using: <b>Erratic's phpBB3 Auto Sumitter - Moded by Gempis</b>. <br /><br />";
print "<br /><form name=\"add\" action=\"[URL="http://-DDLDOMAIN-/submit.php%5C"]http://-DDLDOMAIN-/submit.php\[/URL]" 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;
}
//Gempis/Erratic DDL Submmitter