View Single Post
  #1  
Old 20th October 2015, 17:30
ooVoo ooVoo is offline
Banned
 
Join Date: Oct 2015
Posts: 6
Thumbs up Tsse[5.6][Seedbox flow]
http://www.bvlist.com/mods-themes/63...eedbox-ip.html

As this gives seedbox on every torrant on browse.php page

As smoky28 telling you a lack of code

so Uninstall all the Modification as it no good to you now we will start over !!!!!

Ok lets start with the languages first

@browse.lang.php Find

PHP Code:
'sticky'    =>'Recommend Torrents'
Add below

PHP Code:
'seedbox'    =>'Seedbox Torrents',// Added by ooVoo 
Find

PHP Code:
'legend_browse' =>
Add below

PHP Code:
<img src="|link|seedbox.png" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Seedbox Torrents.  Our staff and uploader with there very own Seedbox Fast downloads Always seed what you have download it help the uploader the more seeds the faster the download for everyone</font>\', 300)"onmouseout="hideddrivetip()">&nbsp;&nbsp 
@edit.lang.php Find

PHP Code:
    'sticky' =>'Sticky',
    
'sticky2' =>'Set sticky this torrent!'
Add below

PHP Code:
'box' =>'Seedbox',
     
'box2'=>'Set Seedbox torrent!'
@upload.lang.php Find

PHP Code:
'field23'=>'paste image url here'
Add below

PHP Code:
'field24' =>'Seedbox',
     
'field25' =>'Set Seedbox torrent.'
New the SQL

PHP Code:
ALTER TABLE `torrentsADD `boxenum('yes','no'NOT NULL DEFAULT 'no'
Now the DirRoot files
@browse.php Find

PHP Code:
$issticky = ($torrents['sticky'] == 'yes' '<img src="'.$BASEURL.'/'.$pic_base_url.'yellow.png"  align="left" alt="'.$lang->browse['sticky'].'" title="'.$lang->browse['sticky'].'" />' ''); 
Add below

PHP Code:
$isseedbox = ($torrents['box'] == 'yes' '<img src="'.$BASEURL.'/'.$pic_base_url.'seedbox.png"  align="left" alt="'.$lang->browse['seedbox'].'" title="'.$lang->browse['seedbox'].'" />' ''); 
Find
PHP Code:
$name_torrent '<a href="#" id="torrentmenu'.$torrents['id'].'" /><b>'.(!empty($keywords) ? highlight(htmlspecialchars_uni($keywords), $torrents['name']) : $torrents['name']).'</b></a> '.$isnew.' '.$issticky.
Add like so

PHP Code:
$name_torrent '<a href="#" id="torrentmenu'.$torrents['id'].'" /><b>'.(!empty($keywords) ? highlight(htmlspecialchars_uni($keywords), $torrents['name']) : $torrents['name']).'</b></a> '.$isnew.' '.$issticky.' '.$isseedbox.
Find if you have the Overlibs poster Modification

PHP Code:
$name_torrent '<a href="'.$seolink2.'" onmouseover="return overlib(\'<table width=100%><tr><td bgcolor=black align=center><img src='.$imagineat.' width=150 height=200></td><td bgcolor=black align=center ><b><font color=white>'.$torrentsoverlibs['name'].'</font></b><br><font color=yellow><b>Type:&nbsp;'.$cat1.'</font><br><font color=lime><b>'.$torrents['seeders'].'&nbsp;Seeder</font><br><font color=red>'.$torrents['leechers'].'&nbsp;Leecher</font><br><font color=white>Size:&nbsp;'.$size1.'</font></td></tr></table>\',  WIDTH, 150, DELAY, 100);" onmouseout="return nd();"><b>'.$torrents['name'].'</b></a>  '.$isnew.' '.$issticky.
Replace with

PHP Code:
$name_torrent '<a href="'.$seolink2.'" onmouseover="return overlib(\'<table width=100%><tr><td bgcolor=black align=center><img src='.$imagineat.' width=150 height=200></td><td bgcolor=black align=center ><b><font color=white>'.$torrentsoverlibs['name'].'</font></b><br><font color=yellow><b>Type:&nbsp;'.$cat1.'</font><br><font color=lime><b>'.$torrents['seeders'].'&nbsp;Seeder</font><br><font color=red>'.$torrents['leechers'].'&nbsp;Leecher</font><br><font color=white>Size:&nbsp;'.$size1.'</font></td></tr></table>\',  WIDTH, 150, DELAY, 100);" onmouseout="return nd();"><b>'.$torrents['name'].'</b></a>  '.$isnew.' '.$issticky.' '.$isseedbox.
If not just Add
PHP Code:
 '.$isseedbox.' 
@details.php Find

PHP Code:
$query sql_query('SELECT t.name, t.allowcomments, t.banned, t.descr, t.category, t.size, t.numfiles, t.anonymous, t.added, t.comments, t.hits, t.times_completed, t.leechers, t.seeders, t.owner, t.free, t.sticky, t.offensive, t.silver, 
Replace with

PHP Code:
$query sql_query('SELECT t.name, t.allowcomments, t.banned, t.descr, t.category, t.size, t.numfiles, t.anonymous, t.added, t.comments, t.hits, t.times_completed, t.leechers, t.seeders, t.owner, t.free, t.sticky, t.offensive, t.silver, t.box, 
Find

PHP Code:
$isdoubleupload = ($torrent['doubleupload'] == 'yes' '<img src="'.$BASEURL.'/'.$pic_base_url.'x2.gif" class="inlineimg" />' ''); 
Add below

PHP Code:
$isseedbox = ($torrent['box'] == 'yes' '<img src="'.$BASEURL.'/'.$pic_base_url.'seedbox.png" class="inlineimg" />' ''); 
Find

PHP Code:
<td colspan="3" class="thead">'.$isfree.$issilver.$isdoubleupload. 
Replace with

PHP Code:
<td colspan="3" class="thead">'.$isfree.$issilver.$isdoubleupload.$isseedbox.' 
@edit.php Find

PHP Code:
$sa $lang->edit['sticky'];
    
$sb '<input type="checkbox" name="sticky"' . ($row['sticky'] == 'yes' ' checked="checked"' '') . ' value="yes"> ' $lang->edit['sticky2']; 
Add below

PHP Code:
$sab $lang->edit['box'];
    
$sbb '<input type="checkbox" name="box"' . ($row['box'] == 'yes' ' checked="checked"' '') . ' value="yes"> ' $lang->edit['box2']; 
Find

PHP Code:
$res sql_query ('SELECT filename,owner,name,descr,category,visible,anonymous,free,silver,banned,sticky, 
Replace with

PHP Code:
$res sql_query ('SELECT filename,owner,name,descr,category,visible,anonymous,free,silver,banned,sticky,box, 
Find

PHP Code:
$postoptionstitle = array ('19' => $lang->edit['tf'], '1' => $lang->edit['torrentname'], '2' => $lang->edit['nfofile'], '3' => $lang->upload['field21'], '4' => $lang->upload['field22'], '5' => $lang->edit['type'], '6' => $lang->edit['visible'], '7' => $lang->edit['au'], '8' => $fa'9' => $ra'10' => $ba'11' => $sa'12' => 
Replace with

PHP Code:
$postoptionstitle = array ('19' => $lang->edit['tf'], '1' => $lang->edit['torrentname'], '2' => $lang->edit['nfofile'], '3' => $lang->upload['field21'], '4' => $lang->upload['field22'], '5' => $lang->edit['type'], '6' => $lang->edit['visible'], '7' => $lang->edit['au'], '8' => $fa'9' => $ra'10' => $ba'11' => $sa'12' => $sab'0' => $lang->edit 
Find

PHP Code:
<b>Allowed file typesJpgGifPng</b>', '4' => '<input type="text" name="t_link" id="specialboxg" size="70" value="' . htmlspecialchars_uni ($row['t_link']) . '"' . (!empty ($row['t_link']) ? '[<b><a href="' . $BASEURL . '/takeedit.php?id=' . $id . '&remove_link=true" />X</a></b>]' : '') . '', '5' => $s, '6' => '<input type="checkbox" name="visible"' . ($row['visible'] == 'yes' ? ' checked="checked"' : '') . ' value="1" /> ' . $lang->edit['visible2'], '7' => '<input type="checkbox" name="anonymous"' . ($row['anonymous'] == 'yes' ? ' checked="checked"' : '') . ' value="1" />  ' . $lang->edit['au2'], '8' => $fb, '9' => $rb, '10' => $bb, '11' => $sb, '12' => 
Replace with

PHP Code:
<b>Allowed file typesJpgGifPng</b>', '4' => '<input type="text" name="t_link" id="specialboxg" size="70" value="' . htmlspecialchars_uni ($row['t_link']) . '"' . (!empty ($row['t_link']) ? '[<b><a href="' . $BASEURL . '/takeedit.php?id=' . $id . '&remove_link=true" />X</a></b>]' : '') . '', '5' => $s, '6' => '<input type="checkbox" name="visible"' . ($row['visible'] == 'yes' ? ' checked="checked"' : '') . ' value="1" /> ' . $lang->edit['visible2'], '7' => '<input type="checkbox" name="anonymous"' . ($row['anonymous'] == 'yes' ? ' checked="checked"' : '') . ' value="1" />  ' . $lang->edit['au2'], '8' => $fb, '9' => $rb, '10' => $bb, '11' => $sb, '12' => $sbb, '0' => 
@takeedit.php Find

PHP Code:
if ($_POST['sticky'] == 'yes'
    {
      
$updateset[] = 'sticky = \'yes\'';
    }
    else
    {
      
$updateset[] = 'sticky = \'no\'';
    } 
Add below

PHP Code:
if ($_POST['box'] == 'yes')
    {
      
$updateset[] = 'box = \'yes\'';
    }
    else
    {
      
$updateset[] = 'box = \'no\'';
    } 
@takeupload.php Find

PHP Code:
  if (($_POST['sticky'] == 'yes' AND is_mod ($usergroups)))
  {
    
$sticky 'yes';
  }
  else
  {
    
$sticky 'no';
  } 
Add below

PHP Code:
  if (($_POST['box'] == 'yes' AND is_mod ($usergroups)))
  {
    
$box 'yes';
  }
  else
  {
    
$box 'no';
  } 
Find

PHP Code:
  $ret sql_query ('INSERT INTO torrents (t_image, t_link, filename, owner, visible, anonymous, free, silver, sticky, 
Replace with

PHP Code:
$ret sql_query ('INSERT INTO torrents (t_image, t_link, filename, owner, visible, anonymous, free, silver, sticky, box, offensive, info_hash, name, size, numfiles, descr, category, added, ' $q1 'last_action' $sql1 ') VALUES (' implode (','array_map ('sqlesc', array ((!empty ($t_image) ? $t_image : (!empty ($cover_photo_name) ? $BASEURL '/' $cover_photo_name '')), (!empty ($t_link) ? $t_link ''), $fname$CURUSER['id'], $visible$anonymous$free$silver$sticky$box$offensive$infohash$torrent$totallencount ($filelist), $descr$_POST['type']))) . ', \'' get_date_time () . '\', ' $q2 '\'' get_date_time () . '\'' $sql2 ')'); 
@upload.php Find

PHP Code:
$sa $lang->upload['field13'];
     
$sb '<input type="checkbox" name="sticky" value="yes">'.$lang->upload['field14']; 
Add below

PHP Code:
$sab $lang->upload['field24'];
     
$sbb '<input type="checkbox" name="box" value="yes">'.$lang->upload['field25']; 
Find

PHP Code:
'14'=> $lang->upload['scene'], 
Add below

PHP Code:
'15'=>$sab
Find

PHP Code:
'14' => '<input type="checkbox" name="scene" value="yes"'.($_GET['scene'] == 'yes' ' checked="checked"' '').'> '.$lang->upload['scene2'
Replace all the line with

PHP Code:
'14' => '<input type="checkbox" name="scene" value="yes"'.($_GET['scene'] == 'yes' ' checked="checked"' '').'> '.$lang->upload['scene2'],
     
'15' => $sbb
Attached Thumbnails
Untitled-1.png  
Attached Images
 

Last edited by joeroberts; 20th October 2015 at 18:42.
Reply With Quote
The Following User Says Thank You to ooVoo For This Useful Post:
Marco (25th November 2015)