
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;}else{$donated = ($CURUSER["donated"]);$userdownloaded = mksize($CURUSER["downloaded"]);"Skayver, post: 34689":###################################################################
##
## MOD Title: Upload Avatar
##
## MOD Author: Sk@yver
##
## MOD Description: This ADDON will add the ability to users,
## to upload avatar in account settings.
## If Avatar is big auto resizing to 80x80px.
## if your users tries to upload shell files or
## tries to hacking, mod write to site log.
## Site admin can disabled/enabled upload avatar
## at any moment in site config.
##
## MOD Required Settings:
## This addon required GD library support
## in your PHP. GD Specifications:
## JPG Support
## PNG Support
## GIF Create Support
##
## MOD Compatibility: v.2.xx
## Support multilanguage: Yes
## Installation Level: Easy
## Installation Time: 3 minutes
## SQL changes: NO
##
## Files To Edit: 3
## languages/english.lang # Or your language
## account.php
## backend/config.php
##
## Files To Upload: 2
## upavatar.php
## avatars/index.php
##
#####################################################################
Warning:
This addon required GD library support in your PHP.
Screen shot PHP Info:
Instructions and necessary files for this addon is in the Attachment.
Screen shots:
"walker1977, post: 38698":open shoutbox.php and find:
add after:if (isset($_GET['history'])) {
if (isset($_GET['page'])) {
if($_GET['page'] > '1') {
$lowerlimit = $_GET['page'] * 100 - 100;
$upperlimit = $_GET['page'] * 100;
}else{
$lowerlimit = 0;
$upperlimit = 100;
}
}else{
$lowerlimit = 0;
$upperlimit = 100;
}
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;
}else{
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';
}
//check for new pm's
$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')") or print(mysql_error());
$arr = mysql_fetch_row($res);
$unreadmail = $arr[0];
if ($unreadmail){
print("<font color=#FF0000 size=3><B><center><blink>You Got A New PM </font>[<a href=mailbox.php?inbox class=link2 target=_blank><font color=#FF0000> $unreadmail </font></a>]</blink></center></b></a></font> ");
}
"walker1977, post: 38582":icons can be found in this post [url="http://www.torrenttrader.org/index.php?showtopic=7775"]http://www.torrenttrader.org/index.php?showtopic=7775[/url]
"PsykoAcidBurn, post: 38552":Hello, everybody!
I just bbcodes create the most commonly used and that are in: Comments, Upload, MP, Shoutbox !
Here is my changes:
My shoutbox.php, My bbcode.php And my functions.php:
Screens and my 3 .php:
function navmenu(){?>"teamfsx, post: 37503":Sorry for your code but don't work for me
use this , if it's the same for you
In torrents-upload.php find:
Add afterwrite_log("Torrent $id ($name) was Uploaded by $CURUSER[username]");
$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New Torrent: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url] has been uploaded by [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]', now(), '0')";
mysql_query($query);
"iMagin3 SweeTDeviL, post: 34418":The Phoenix_UK v1.x hack, working on v2:
In account-signup.php find:
add after://make first member admin
if ($numsitemembers == '0')
$signupclass = '7';
else
$signupclass = '1';
$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New User: $wantusername', now(), '0')";
mysql_query($query);
Have fun!
iMagin3