TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net - Mods & hacks Mods Complete & working Avatar selection in profile for BitBucket

Avatar selection in profile for BitBucket


Insert this:

And after this line:
$added = sqlesc(get_date_time());

Insert this:
if ($_POST['public'] != 'yes' ) {$public='"0"';} else {$public='"1"';}

And replace this line:
mysql_query("INSERT INTO bitbucket (owner, name, added) VALUES ($CURUSER[id], $name, $added)") or sqlerr(__FILE__, __LINE__);

With this:
mysql_query("INSERT INTO bitbucket (owner, name, added, public) VALUES ($CURUSER[id], $name, $added, $public)") or sqlerr(__FILE__, __LINE__);

The bitbucket-upload.php finished.
Next is the my.php.
Before the Avatar line( tr("Avatar",...) )
Insert this:
function getimagewidth ($imagewidth, $imageheight)
2006-12-05 00:18:00
Group: Member
Posts: 7
Topics participated: 3
Topics started: 2
First post: 2006-12-05 00:18:00
Last post: 2006-12-25 08:04:00
First, sorry for my english :)
With this mod every user can use other users uploaded avatars easily, if the uploader want this!
When a user changing the avatar in the select, the choosed avatar is appear!
First add a new column in mysql to bitbucket table, the column name is: public
ALTER TABLE `bitbucket` ADD `public` ENUM( '0', '1' ) NOT NULL DEFAULT '0';

Then in the bitbucket-upload.php, after this line:
File:
Other users can use my avatar(It's choosable in the profile)
 

Similar threads

Topic Posts Last post
selection in pm 7 2007-04-01 02:34:00
BT Client Selection Option 5 2006-03-27 23:20:00
Get Rid OF THeme Selection 13 2006-03-30 15:48:00
Language selection when entering site 1 2007-04-25 05:19:00
need same new mods ir req selection! Important! 1 2008-01-29 19:29:00