![]() |
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") { |
wasnt there a taken avatar hack that under the avatar put a taken?
|
Sending you e-mail :)
Thank you! |
Quote:
The hack for that is what I posted at the top to change in member.php the other stuff is what I'm needing to hide the used avatars for registering members. :) |
Seems to be working fine Littlebit.
I can only see 3 out of 4 avatars when I try to register. :) |
Firefly,
All better! What did I do wrong? Incidently, where do I go to change the neongreen color highlighting the avatar pick section? Is it in one of the register templates? You'll see what I mean when you check it... Thank you for your speedy save! |
*referse to sig ;)*
thanks man |
No problem Littlebit! :)
That green background in the register page is actually a bug, see this thread for more info: http://www.vbulletin.com/forum/showt...threadid=32474 |
Thanks again! Checking out the bug thread now
:kiss: |
Firefly. Any chance of adding onto this hack so that Admins and mods can have some special ones that members can't see? Or at least can't access?
|
I've installed this hack and everything works fine except I'm getting an error in register.php. Could this be because I've got so many avatars or is it caused by something else?
More info here - http://www.vbulletin.com/forum/showt...t=register.php |
Surely someone must know? This is really starting to bug me now (did you like the pun guys? Sorry I couldn't resist). :stupid:
Does anyone know how I'd go about removing the avatar selection dropdown menu from register.php? I've got a feeling that will solve the problem. |
What's this do...?
|
Firefly,
I just realized that something else needs modified. In the get info for Avatars, it has the taken avatars listed as available. Will you help with this part too? |
What's the "get info for avatars"? :confused:
|
Oops, I meant more info. Its usercp--------->edit options-------->more info at the bottom Avatar section.
|
My problem has been solved now thanks to Firefly, but I was just thinking, wouldn't it be better if these hacks were put in a read only forum or on a separate non-dynamic page so they could be easily updated and people would know when they've been modified? As it is it's a bit confusing going through old posts and reading through all the problems, updates and modifications. It's also not very clear which hacks will work with which board version.
Don't mean to whinge, just constructive criticism :) |
In misc.php, replace this:
Code:
$minposts=0; Code:
$minposts=0; |
Worked like a charm. Thank you Firefly!
|
Stryker, I agree ...also, it might make it easier to re-do all the hacks after updating the board by always having your list of installed hacks and referring to them in a read only forum with last updated and version info clear...so novice people like me don't try to piece together bits of old and new hacks and mess everything up!
|
Quote:
|
It makes it so if you are offering avatars for people to choose and a person picks one, it will say "taken" under the avatars already being used.
|
If you are getting a parse error, you've probably left off a trailing bracket } on the end. :)
|
All times are GMT. The time now is 03:51 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:
|