Bravo List
Register
Go Back   > Bravo List > Sourcecode > SZ Edition
Reply
  #1  
Old 26-06-12, 17:49
kutup95's Avatar
Senior Member
 
Join Date: Jun 2012
Turkey
Posts: 20
Activity Longevity
0/20 4/20
Today Posts
0/3 sssssss20
Default How add to image ?
i installed sz edition .

and upload torrents , but not add image ? how to add image ?


http://retracker.local/announce this tracker , auto add torrent ?

how to deletede this tracker ?

plaese help me
Reply With Quote
  #2  
Old 26-04-13, 11:17
lekszikov's Avatar
Member
 
Join Date: Feb 2012
P2P
Posts: 1
Activity Longevity
0/20 5/20
Today Posts
0/3 ssssssss1
Default
Sorry i bad englis..

details.php


Code:
$announce_urls[] = $announce;
//$announce_urls[] = 'http://retracker.local/announce';


Image add torrent

Code:
398. $sql = 'SELECT t.seeders, t.banned, t.leechers, t.info_hash, ......

ADD 
t.image,



459. $description = $row['descr'];

ADD
$imageiption = $row['image'];


490. $template->assign_vars( array( 
'MESSAGE1' => $message1,
'MESSAGE2' => $message2,
.......

ADD
'IMAGEIPTION' => $imageiption,


upload.php

Code:
67. $descr = request_var('descr', '');

ADD
$image = request_var('image', '');


70. 	if ( !$name || !$descr |.....

ADD
| !$image |



77. 	if ( $type == 'request' ) {
		$sql_ary = array('hits'    => 1,
                           'userid'  => $userdata['uid'],
                           'cat'     => $cat_id,
                           'request' => $name,
                           'descr'   => $descr,

ADD
'image'   => $image,

100. 	elseif ( $type == 'offer' ) {
		$sql_ary = array('userid'   => $userdata['uid'],
                           'category' => $cat_id,
                           'name'     => $name,
                         'descr'    => $descr,


ADD
'image'   => $image,


189.  $sql_ary = array('filename'    => $fname,
						'owner'       => $userdata['uid'],
						'info_hash'   => $infohash,
						'name'        => $name,
						'size'        => $totallen,
						'numfiles'    => sizeof($filelist),
						'descr'       => $descr,

ADD
'image'   => $image,


255. 	$descr = request_var('descr', '');

ADD
$image = request_var('image', '');


279. 	$template->assign_vars(array(
		'S_FORM_ACTION' => append_sid('upload.php'),
		'FORM_ENCTYPE' => ( $type == 'main' ?  ' enctype="multipart/form-data"' : '' ),
		'MAX_TORRENT_SIZE' => $config['max_torrent_size'],
		'NAME' => $name,
		'DESCRIPTION' => $descr,


ADD
'IMAGEIPTION' => $image,



287.	$bb_code = new bbcode($descr);
288.	$descr = $bb_code->get_html();
289.	$descr = censor_text($descr);

ADD
$bb_code = new bbcode($image);
$image = $bb_code->get_html();
$image = censor_text($image);

SQL file
image_add_torrent.sql

Code:
ALTER TABLE torrents add image text;

Themes edit

templates\bithdtv\details.html


ADD
Code:
	<tr>
    	<td class="detail" valign="top" align="right">{L_IMAGE}</td>
	    <td class="detail" valign="top" align="left"><img src="{IMAGEIPTION}"align="center" width="50%"> </td>
  	</tr>
templates\bithdtv\details_edit.html

ADD
Code:
  <tr>
    <td><label for="image">{L_IMAGE}</label></td>
    <td><textarea name="image"  cols="80">{IMAGE}</textarea>
	<br /><span class="small">{L_IMAGE_MOD}</span></td>
  </tr>
templates\bithdtv\upload_body.html

ADD
Code:
  <tr>
    <td valign="top" align="right" class="detail">{L_IMAGE}</td>
    <td valign="top" align=left class="detail"><textarea name="image" cols="100" >{IMAGE}</textarea></td>
  </tr>

languages\........\lang_main.php

ADD
Code:
		'image' => 'Image',
		'image_mod' => 'Image edit',


Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Last edited by lekszikov; 26-04-13 at 12:24.
Reply With Quote
Reply

Tags
add , image

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




All times are GMT +2. The time now is 18:38. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.