![]() |
I added the modify avatarbit taken template and changes to version 2.03...I just upgraded to 2.20 and need to make some modifications to have the avatars taken option work with the new registration pick avatar option ( was glad to see that in the update!). Could someone give me a hand? I still have the modify avatarbit taken template and I made the old change in the member.php already...hope it was okay to do it in the new ver.2.20 member.php.
:surprised |
hey hey, where is this hack, i saw it now i can find it..
|
This was thanks to Firefly and it was for version 2.03
Quote:
:) |
Littlebit, can you maybe post the URL to your forum so I can see the new system and learn it?
As we don't offer our own avatars here, and I don't have any other forum, I have no idea how it looks like / works. :) You can PM me if you wish. |
Try this. :)
In register.php, replace this: Code:
if (!$avatar['title']) { Code:
if (!$istaken=$DB_site->query_first("SELECT userid FROM user WHERE avatarid='$avatar[avatarid]'")) { |
so umm... which code should i use?
|
Firefly,
I just uploaded changes to the register.php. Opps..I got this: Parse error: parse error in register.php on line 659 |
Littlebit, I'm getting a parse error when trying to go to register.php.
Are you sure you did everything correctly? neo, the last code is for us in register.php, to hide taken avatars. What Littlebit posted above is for member.php. |
If you want you can send me your register.php attached in an e-mail (firefly@poolie.net) and I'll get it taken care of.
|
Did I miss a { or something maybe? I copied a few extra lines for you to see also..here's my code:
if (!$istaken=$DB_site->query_first("SELECT userid FROM user WHERE avatarid='$avatar[avatarid]'")) { if (!$avatar['title']) { $avatar['title'] = $avatar['avatarpath']; if (strstr($avatar['title'], '/')) { $avatar['title'] = substr( strrchr($avatar['title'], '/') , 1); } $avatar['title'] = str_replace('_', ' ', $avatar[title]); $dotpos = strrpos($avatar[title], '.'); $avatar[title] = substr($avatar[title], 0, $dotpos); } eval("\$avatarbits .= \"".gettemplate("register_avatarbit")."\";"); } eval("\$avatarbit = \"".gettemplate("register_avatar")."\";"); } } if ($who=="adult") { |
All times are GMT. The time now is 01:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|