Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

"SJC2TK, post: 73821":
yeh , no T function in 2.05 i still use  :angry:

you can port it from 2.07 to 2.05

but you don't need it for this mod :D
your code worked good..

but i needed to remove the T_() function from it to make it work..

so the strings used in my source are with other texts but they still the same thing like my first post.

first post was updated and ow everything works good.

:angry:
if(!$imgtype['mime']){

show_error_msg(("FAILED"), 'file is not an image');

}elseif(

$imgtype['mime'] = 'image/gif' |

$imgtype['mime'] = 'image/jpeg' |

$imgtype['mime'] = 'image/png' |

$imgtype['mime'] = 'image/psd' |

$imgtype['mime'] = 'image/bmp' |

$imgtype['mime'] = 'image/tiff' |

$imgtype['mime'] = 'image/tiff' |

$imgtype['mime'] = 'image/jp2' |

$imgtype['mime'] = 'image/iff' |

$imgtype['mime'] = 'image/vnd.wap.wbmp' |

$imgtype['mime'] = 'image/xbm' |

$imgtype['mime'] = 'image/vnd.microsoft.icon'

){

$userbg = $_POST["userbg"];

}else{

show_error_msg(("FAILED"), 'file is not an image');

}
this is the right code according to my first post.



i use


$userbg = $_POST["userbg"];



because it's portuguese and more easy for me..

but it works good. :angry:
yes. it works  :angry:

but your code should be

if(!$imgtype['mime']){

show_error_msg(("FAILED"), 'file is not an image');

}elseif(

$imgtype['mime'] = 'image/gif' |

$imgtype['mime'] = 'image/jpeg' |

$imgtype['mime'] = 'image/png' |

$imgtype['mime'] = 'image/psd' |

$imgtype['mime'] = 'image/bmp' |

$imgtype['mime'] = 'image/tiff' |

$imgtype['mime'] = 'image/tiff' |

$imgtype['mime'] = 'image/jp2' |

$imgtype['mime'] = 'image/iff' |

$imgtype['mime'] = 'image/vnd.wap.wbmp' |

$imgtype['mime'] = 'image/xbm' |

$imgtype['mime'] = 'image/vnd.microsoft.icon'

){

$userbg = $_POST["fundo"];

}else{

show_error_msg(("FAILED"), 'file is not an image');

}
"djhowarth, post: 73775":
Its not really a secure mod...
You should at least check its a valid image / check the extenstion

i'll do that.

then i'll post here the result.

thanks for the tip :angry:
Hello torrenttrader community.

This is a simple mod that allow each user to choice their own background image.

Lets start the modifications.

First,

Run SQL commands in your database

" by the link of other background image you want.



Save it and open account.php



Find

ALTER TABLE `users` ADD `userbg` VARCHAR( 500 ) NOT NULL DEFAULT ''
Now, in your main theme folder open header.php

add


style="background: url(<?=$userbg2?>) 50% no-repeat fixed;"





after



<BODY





and after



</head>





add



<?



$id = $CURUSER['id'];

$get = mysql_query("SELECT * FROM users WHERE id=$id") or die(mysql_error());

$got = mysql_fetch_array($get);



$userbg = $got['userbg'];

if ($userbg == '')

$userbg2 = "http://demo.dzinerstudio.com/smf2/Themes/zone99_20/images/custom/body_bg.jpg";

else

$userbg2 = $userbg;



?>



or you can replace "

print("<TR><TD align=right class=table_col2><B>" . AVATAR_URL . ":</b> </td><TD align=left class=table_col2><input name=avatar size=50 value=\"" . htmlspecialchars($CURUSER["avatar"]) .

 "\"><br />\n<i>Link to your externally hosted avatar image: 80x80px</i></td></tr>");





and after add



print("<TR><TD align=right class=table_col2><B>Background:</b> </td><TD align=left class=table_col2><input name=userbg size=50 value=\"" . htmlspecialchars($CURUSER["userbg"]) .

 "\"><br />\n<i>Link to your externally hosted background image.</i></td></tr>");





Now find



$avatar = $_POST["avatar"];





and after add



if(!$imgtype['mime']){

show_error_msg(("FAILED"), 'file is not an image');

}elseif(

$imgtype['mime'] = 'image/gif' |

$imgtype['mime'] = 'image/jpeg' |

$imgtype['mime'] = 'image/png' |

$imgtype['mime'] = 'image/psd' |

$imgtype['mime'] = 'image/bmp' |

$imgtype['mime'] = 'image/tiff' |

$imgtype['mime'] = 'image/tiff' |

$imgtype['mime'] = 'image/jp2' |

$imgtype['mime'] = 'image/iff' |

$imgtype['mime'] = 'image/vnd.wap.wbmp' |

$imgtype['mime'] = 'image/xbm' |

$imgtype['mime'] = 'image/vnd.microsoft.icon'

){

$userbg = $_POST["userbg"];

}else{

show_error_msg(("FAILED"), 'file is not an image');

}





Then find



$updateset[] = "avatar = " . sqlesc($avatar);





and add after



$updateset[] = "userbg = " . sqlesc($userbg);



Save it and you're done!

Hope you like it   :angry:  :D
this already exists...

do a search before re-posting mods..

but, good job :D
thanks man  :D   it worked for me ^^
"buzz_me, post: 72609":
how to add only donated member not counting download?




if ($user["donated"] > 0)

 $downthis = 0;


this should work.. but you need to add ammount donated in user details.
"blastro, post: 62843":
thx m8 but its show the same mine stats by all mine user
i have this code in mine account-details.php

<? print("<B>".SIGNATURE.""); ?>:</b><?=$usersignature?>

The problem is that you are putting the code in account-details.php, and you need to put it in account.php because this is the page to you edit your profile

:D
this mod works great on 2.06  :D

thanks
you can create your userbar, but you need to know the coordinates of the text.

<_<  ;) :(
it doesnt work for me
language — 2009-12-31 13:43:00 in v2 Only Mods Complete
only go to the config.php and find

$site_config['default_language'] = "1";

when you find this change the 1 to the id of your language.

;)  ;)
If you want to add the userbar to the profile page, simply do this:

Find in account.php

<? print("<B>IP:</b> " . $CURUSER["ip"] . "\n"); ?><br>

</td></tr>

</table>

<BR><BR>
After add:




<?$SITEURL = $site_config["SITEURL"];

$SITENAME = $site_config["SITENAME"];





echo "<table align=center>";

echo "<div align=center><img border=0 src=$SITEURL/torrentbar/bar.php/" . $CURUSER["id"] . ".png></div><hr>";

echo "<tr>

<td><div align='center'><br>

Copy BB Code:<br>

<textarea cols='90' rows='2'>[url=$SITEURL][img]$SITEURL/torrentbar/bar.php/" . $CURUSER["id"] . ".png[/img][/url]</textarea>

</div></td></tr><tr>

<td><div align='center'><br>

Copy HTML:<br>

<textarea cols='90' rows='2'><a href='$SITEURL'><img border=0 src='$SITEURL/torrentbar/bar.php/" . $CURUSER["id"] . ".png' title='$SITENAME' border=0></a></textarea>

</div></td>

</tr></table>";?>



Enjoy the mod.

;)
tnx it worked great.

;)  ;)
Hi, this is a mod that i have ported from xbtit source.

You need only to add the files to your root folder and visit

www.yourlink/userstats.php

it wasn't dificult to port this mod. was only change one line on the bar.php

Download it, install and enjoy.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3952"]torrentbar.zip[/url]

tnx. works great for me.

;)
To do this only go to your DataBase.

Go to table 'users' and click 'Structure'.

Select 'uploaded' and click 'edit' (is a pencil).

There you have a 'Default' table, you can put there the Amount upload you want on new users.

Sorry for my bad english.

:(  :(  :)  :(
I dont see any files to Download   ;)  :unsure:  :unsure:   :unsure:
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728