PDA

View Full Version : Remove choose avatar button in options


Kuipo
11-11-2002, 12:26 AM
I am curently using an offsite avatar hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=39296

it works wonders... but if someone goes to edit their profile, it shows a box to put in a URL for their picture. But when a person going to edit options, they can go to the bottom and select change avatar, and it says "thanks for updating your profile" and goes to an error page:
Fatal error: Cannot redeclare stripslashesarray() (previously declared in /home/virtual/site1/fst/var/www/html/vBulletin/global.php:31) in /home/virtual/site1/fst/var/www/html/vBulletin/global.php on line 31

is there a way that i can either make the url be editable there (harder) or just remove that part... make it not show up at all (should be easy i would think)

Sebastian
11-11-2002, 12:41 AM
go in admin cp. template > modify > User Option Templates > Edit modifyoption template.

Find:


<input type="submit" class="bginput" name="modifyavatar" value="Change Avatar">


Delete it.

that willl remove the "Change Avatar" that appears in the profile.

Kuipo
11-11-2002, 08:05 PM
Thanks, I actually had to edit out this whole bit to make it look right:


<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Avatar</b></normalfont><br>
<smallfont><a href="misc.php?s=$session[sessionhash]&action=showavatars" target="_blank">More info...</a></smallfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><img src="$bbuserinfo[avatarurl]" border="0" alt="Your current avatar" align="middle"> <input type="image" src="{imagesfolder}/clear.gif" alt="" border=""><input type="submit" class="bginput" name="modifyavatar" value="Change Avatar"></normalfont></td>
</tr>


but you pointed me in the right direction ^^

One last thing. is there a way to comment things out in the templates?

:bunny:

NTLDR
11-11-2002, 08:44 PM
<!-- COMMENTED OUT TEXT -->

As above, the text there is commented out, you will see it if you view the source for the page, but you won't see it in your browser ;)

Kuipo
11-12-2002, 05:42 AM
Thank you very much ^^ I thouhgt that was it, but wasnt sure.