(#1)
c0rrupt Offline
Administrator
 
Posts: 201
Join Date: Mar 2010
Location: Canada
phpBB3 Autosubmitter (for your DDL site) - 04-17-2010, 08:49 AM

Open /styles/_YOUR_THEME_NAME_/template/mcp_forum.html

Find:
Code:
<option value="make_announce">{L_MAKE_ANNOUNCE}</option>
<option value="make_global">{L_MAKE_GLOBAL}</option>
Add After:
Code:
<option value="submit1">Submit to Downloads</option>
Find:
Code:
$quickmod = ($mode == 'quickmod') ? true : false;
switch ($action)
{

Add After:
Code:
case 'submit1':
$1sub_topic_ids = request_var('topic_id_list', array(0));
1submit($1sub_topic_ids);
break;
Open includes/mcp/mcp_main.php

Find:
Code:
/**
* Lock/Unlock Topic/Post
*/
function lock_unlock($action, $ids)

Add Before:


Quote:
function 1submit($topic_ids){
// Site Configuration (EDIT THIS!)
$yoursite = "http://www.example.com/viewtopic.php?t="; // Viewtopic Link.
$yoursiteurl = "http://www.example.com/";
$youremail = "[email protected]";
$yoursitename = "Site Name";


// ##### DO NOT EDIT ANYTHING BELOW THIS! #####
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);

echo '<div align="center"><div style="padding-bottom:3px;font-size:20px;">Your Site's phpBB3 Auto Submitter: ©Cyber-Skins.info</div>';
echo '<table style="width: 900px; border-style:solid; font-family:tahoma; font-size:9px; padding:5px;">';
echo '<tr><td><form name="add" action="http://www.yourdomain.com/submit.php" method="POST">';
echo '<span style="font-size:18px;">Submit Downloads To Your Site:</span>

';
echo '<table cellspacing="2" cellpadding="2"><tr><td align="center">#</td><td>Download Title</td><td>Download URL</td><td align="center">Type</td><td align="center">View</td></tr>';

$i = 1;
foreach($topic_info as $topic_info) {
$topic_title = $topic_info['topic_title'];
$topic_url = $topic_info['topic_id'];
echo '<tr><td align="center">'.$i.'</td>';
echo '<td><input type="text" name="title[]" maxlength="70" size="40" value="'.$topic_title.'"></td>';
echo '<td><input type="text" name="url[]" maxlength="70" size="40" value="'.$yoursite.$topic_url.'"></td>';
echo '<td align="center"><select name="type[]"><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="ebook">eBook</option><option value="other">Other</option></select></td>';
echo '<td align="center">[ X ]</td>';
echo '</tr>';
$i++;
}

echo '</table>';
echo '

<span style="font-size:18px;">Settings:</span>

';
echo '<table cellspacing="2" cellpadding="2">';
echo '<tr><td>Site Name:</td><td><input type="text" name="sname" class="form" size="30" value="'.$yoursitename.'"></td></tr><tr><td>Site URL:</td><td><input type="text" name="surl" class="form" size="30" value="'.$yoursiteurl.'"></td></tr><tr><td>Email:</td><td><input type="text" name="email" class="form" size="30" value="'.$youremail.'"></td></tr>';
echo '</table>';
echo '
<input type="submit" value="Submit Download(s)"></form></tr></td></table>';

exit;
}
Edit the colour's witch you are going to use for each website.

DDL SITE EDIT
PHPBB FORUM EDIT



Before doing any edits to your DDL Site always make a BACKUP first.

Bookmarks

Tags
autosubmitter, ddl, phpbb3, site

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin


Content Relevant URLs by vBSEO