Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 7th October 2011, 12:39
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 76
Thumbs up Seed Speed & Seed Time - TSSE 5.6
Add upload.php
search the upload.php 510 line and put it under two lines


PHP Code:
'20'    =>     $lang->upload['seed time'],
        
'21'    =>     $lang->upload['seed speed'], 
'14' => '<input type="checkbox" name="scene" value="yes"'.($_GET['scene'] == 'yes' ? ' checked="checked"' : '').'> '.$lang->upload['scene2'],
put it in the next line

PHP Code:
'21'        =>    '<input type="text" name="sebesseg" id="specialboxg" size="70"><br />'.$lang->upload['seed speed'],
        
'20'        =>    '<input type="text" name="ido" id="specialboxg" size="70"><br />'.$lang->upload['seed time'], 
If this is done open your eztekez

the takeupload.php Search this line

PHP Code:
else
  {
    
$sticky 'no';
  } 
add this code
PHP Code:
$sebesseg $_POST["sebesseg"];



$ido $_POST["ido"]; 
add this detalis.php 49 lines

and this line to change this

561 lines
PHP Code:
$fname "[Site name]".$fname;$ret sql_query ('INSERT INTO  torrents (t_image, t_link, filename, genre, sebesseg, ido, seedbox,  youtube, owner, visible, anonymous, free, silver, sticky, 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$genre$sebesseg$ido$seedbox,  $youtube$CURUSER['id'], $visible$anonymous$free$silver$sticky,  $offensive$infohash$torrent$totallencount ($filelist), $descr0  $_POST['type']))) . ', \'' get_date_time () . '\', ' $q2 '\'' .  get_date_time () . '\'' $sql2 ')'); 
t.name, After you do it

t.sebesseg, t.ido,
add detalis.php
PHP Code:
<tr>
        <
td style="padding-left: 5px;" class="subheader" valign="top" width="147">'.$lang->details['seed sped'].'</td>
        <
td valign="top" style="padding-left: 5px;">'.$torrent['sebesseg'].'</td>
    </
tr>
    <
tr>
        <
td style="padding-left: 5px;" class="subheader" valign="top" width="147">'.$lang->details['seed time'].'</td>
        <
td valign="top" style="padding-left: 5px;">'.$torrent['ido'].'</td>
    </
tr
execute this SQL code

PHP Code:
ALTER TABLE 'torrents' ADD `sebessegtext NOT NULL,
  
ALTER TABLE 'torrents' ADD `idotext NOT NULL,

ALTER TABLE torrents ADD `sebessegtext character set utf8 NOT NULL ;
ALTER TABLE torrents ADD `idotext character set utf8 NOT NULL 
add upload.lang.php and detalis.lang.php
'seed sped' =>'Seed speed',
'seed time' =>'Seed time',

and the code is ready to go

if something is good write pm or ask here but off Flee
__________________
Sky-Tech Developer Team Hungary


Last edited by smoky28; 12th October 2011 at 21:04.
Reply With Quote
The Following User Says Thank You to smoky28 For This Useful Post:
Marco (28th November 2012)
  #2  
Old 8th October 2011, 15:12
Omenke's Avatar
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default re
Hi

add these two lines are the details into lang.php
'seed speed' =>'Seed speed',
'seed time' =>'Seed time',

and there is more than a mysql problem, at least for me, but I solved it
I was so good
ALTER TABLE `torrents` ADD `ido` text CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
ALTER TABLE `torrents` ADD `sebesseg` text CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;

otherwise perfect mod thanks to the well was

Last edited by Omenke; 8th October 2011 at 16:50.
Reply With Quote
  #3  
Old 10th October 2011, 23:21
Verix's Avatar
Verix Verix is offline
Senior Member
 
Join Date: Feb 2009
Poland
Posts: 54
Default
Quote:
Originally Posted by smoky28 View Post
Add upload.php
Write it easier, please
Reply With Quote
  #4  
Old 13th October 2011, 13:56
Omenke's Avatar
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default Re
upload.php file to open it, and then locate the following line
PHP Code:
postoptionstitle = array ( 
including the two lines into this mess.
The number may vary.
PHP Code:
'20'    =>     $lang->upload['seed time'],
        
'21'    =>     $lang->upload['seed speed'], 
same here and then browse to this line

PHP Code:
'1'        =>'<input type="text" name="trackerurl" id="specialboxg" size="70" value="'.($_GET['trackerurl'] ? htmlspecialchars_uni(base64_decode($_GET['trackerurl'])) : $alink).'"'.$enabledisable.'>'.$info.''
the beginning and then put it into

Code:
'21'        =>    '<input type="text" name="sebesseg" id="specialboxg" size="70"><br />'.$lang->upload['seed speed'],
        '20'        =>    '<input type="text" name="ido" id="specialboxg" size="70"><br />'.$lang->upload['seed time'],
Then opens the TAKEUPLOAD.PHP FILES
This finds else
Code:
  {
    $sticky = 'no';
  }
This is a driver under this

Code:
$sebesseg = $_POST["sebesseg"];



$ido = $_POST["ido"];  
then look for this


Code:
sql_query ('INSERT INTO torrents (t_image, t_link,
After you insert this in the t.name
Code:
t.sebesseg, t.ido,
Then open the details.php
and find it
Code:
<td colspan="3" class="thead">'.$isfree.$issilver.$isdoubleupload.' '.htmlspecialchars_uni($torrent['name']).'</td>
and paste it anywhere here

Code:
<tr>
        <td style="padding-left: 5px;" class="subheader" valign="top" width="147">'.$lang->details['seed sped'].'</td>
        <td valign="top" style="padding-left: 5px;">'.$torrent['sebesseg'].'</td>
    </tr>
    <tr>
        <td style="padding-left: 5px;" class="subheader" valign="top" width="147">'.$lang->details['seed time'].'</td>
        <td valign="top" style="padding-left: 5px;">'.$torrent['ido'].'</td>
    </tr>  
then you add it to mysql

Code:
ALTER TABLE `torrents` ADD `ido` text CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
ALTER TABLE `torrents` ADD `sebesseg` text CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL;
Then in the language file you add this line to upload and 2 into the details should be given

Code:
'seed speed'   =>'Seed speed',
'seed time'   =>'Seed time',

Last edited by Omenke; 13th October 2011 at 19:30.
Reply With Quote
The Following 2 Users Say Thank You to Omenke For This Useful Post:
Marco (13th October 2011), mmisu120000 (13th October 2011)
  #5  
Old 4th November 2011, 20:26
eckeO5's Avatar
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default
i think i have added as you both explain.

fields are there.

f.e. i have added fpr speed 200 and for time 12-18.

then i get an error when i try to upload:

Mysql puked: Column count doesn't match value count at row 1

may be some1 has an idea whats wrong.

gr. eckeO5
Reply With Quote
  #6  
Old 28th December 2011, 09:53
trance4life's Avatar
trance4life trance4life is offline
Member
 
Join Date: Jul 2010
Hungary
Posts: 2
Default
Hi all!
Thx for sharing!
How can i insert this code to edit and takeedit.php in v 5.6?
Thx for the help!
Attached Files
File Type: php edit.php (11.3 KB, 9 views)
File Type: php takeedit.php (16.2 KB, 6 views)
Reply With Quote
  #7  
Old 28th December 2011, 16:58
Omenke's Avatar
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default
Quote:
Originally Posted by trance4life View Post
Hi all!
Thx for sharing!
How can i insert this code to edit and takeedit.php in v 5.6?
Thx for the help!

Hi!

Above it is described in detail, what to be and what to do.
Se in the edit and not edit the take is not to be edited.

Szia!

Fentebb le van írva részletesen, hogy mit hova kell és mit kell csinálni.
Se az edit és se a takeedit et nem kell szerkeszteni.
Reply With Quote
The Following User Says Thank You to Omenke For This Useful Post:
Marco (28th June 2012)
  #8  
Old 28th December 2011, 23:04
trance4life's Avatar
trance4life trance4life is offline
Member
 
Join Date: Jul 2010
Hungary
Posts: 2
Default
Quote:
Originally Posted by Omenke View Post
Hi!

Above it is described in detail, what to be and what to do.
Se in the edit and not edit the take is not to be edited.

Szia!

Fentebb le van írva részletesen, hogy mit hova kell és mit kell csinálni.
Se az edit és se a takeedit et nem kell szerkeszteni.
How to edit in torrent details with edit.php and takeedit.php?

Mindegy,már megoldottam,a seedidő és a seedsebesség torrentadatlapi szerkesztési lehetősége volt a cél!;)

Last edited by trance4life; 29th December 2011 at 08:39.
Reply With Quote
  #9  
Old 30th December 2011, 11:39
Omenke's Avatar
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default
Quote:
Originally Posted by trance4life View Post
How to edit in torrent details with edit.php and takeedit.php?

Mindegy,már megoldottam,a seedidő és a seedsebesség torrentadatlapi szerkesztési lehetősége volt a cél!;)
Ok ok, just was not good or I misunderstood the question: D

Otherwise, you can share if you think, I think many people would be happy for him.
Reply With Quote
  #10  
Old 13th January 2012, 15:22
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default
:( I also get mysql error

any help ?


Mysql puked: Column count doesn't match value count at row 1
Reply With Quote
Reply

Tags
56 , mod , seed , speed , time , tsse

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



All times are GMT +2. The time now is 00:05. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.