Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   Seed Speed & Seed Time - TSSE 5.6 (http://www.bvlist.com/showthread.php?t=7074)

smoky28 7th October 2011 12:39

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' => ' '.$lang->upload['scene2'],
put it in the next line

PHP Code:

'21'        =>    '<input type="text" name="sebesseg" id="specialboxg" size="70">'.$lang->upload['seed speed'],
        
'20'        =>    '<input type="text" name="ido" id="specialboxg" size="70">'.$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:drink:

Omenke 8th October 2011 15:12

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

Verix 10th October 2011 23:21

Quote:

Originally Posted by smoky28 (Post 30493)
Add upload.php

Write it easier, please


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',

Omenke 13th October 2011 13:56

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'        =>    ''.$lang->upload['seed speed'],
        '20'        =>    ''.$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:

'.$isfree.$issilver.$isdoubleupload.' '.htmlspecialchars_uni($torrent['name']).'

eckeO5 4th November 2011 20:26

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

trance4life 28th December 2011 09:53

2 Attachment(s)
Hi all!
Thx for sharing!
How can i insert this code to edit and takeedit.php in v 5.6?
Thx for the help!

Omenke 28th December 2011 16:58

Quote:

Originally Posted by trance4life (Post 31847)
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.

trance4life 28th December 2011 23:04

Quote:

Originally Posted by Omenke (Post 31867)
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!;)

Omenke 30th December 2011 11:39

Quote:

Originally Posted by trance4life (Post 31885)
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. :ok:

nikosuk 13th January 2012 15:22

:( I also get mysql error

any help ?


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


All times are GMT +2. The time now is 21:22.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.