The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show "No Avatar" Image If No Avatar is Selected Details »» | |||||||||||||||||||||||||||
Show "No Avatar" Image If No Avatar is Selected
Developer Last Online: Jan 2003
]What is it?
If the user has selected to not use avatar, then in the threads where the avatar will normally appear, instead of being blank because there is no avatar chosen, it will display a "No Avatar" image instead. Credits I would like to thank trilOByte, the creator of the Welcome Panel hack, for the "No Avatar" image, because there's where I stole...err...taken it from Future Plans Add an option to turn it on/off in the Admin CP. Screenshot of the hack.... And the installation is in the next post Show Your Support
|
Comments |
#42
|
|||
|
|||
thanks for this i'll install it now.
|
#43
|
||||
|
||||
simple but effective *installs*
|
#44
|
|||
|
|||
Err, well it works on my 2.2.8 version.
|
#45
|
|||
|
|||
Worked perfectly at www.neomega.net/forum, I actually altered the image to encourage the user to change the avatar perhaps a bit more. Thanks a lot for putting the time into coding it.
|
#46
|
|||
|
|||
work great w/ 2.3.0
|
#47
|
|||
|
|||
I remember this old hack :P just tested it, works great with vb2.30 :P
|
#48
|
||||
|
||||
Ok, I have version 2.3.2 and after I did this it said:
Parse error: parse error in /home/mikelevy/public_html/forums/admin/functions.php on line 945 Fatal error: Call to undefined function: vbdate() in /home/mikelevy/public_html/forums/admin/sessions.php on line 400 -- And I followed all the directions as followed and I even edited the parts that were mentioned in this thread. And I found everything perfectly, so WHAT DO I DO??? |
#49
|
|||
|
|||
I was working on my site, I thought I'd post an updated version of this hack for vb2.3.2
Intro: Think of this as a remix of MW[MWGN] no avatar script, only I had to change things to make it work with vb2.3.2 and I made new art. Credits: Vincent "MW" Chan - Show "No Avatar" Image If No Avatar is Selected trilOByte - welcome panel final, please note I didn't use his code in this hack, but it can be used with the welcome panel hack. WORKS WITH: vBulletin v2.3.2 As always before you install anything BACK UP YOUR DATABASE!, aka use this hack at your own risk. This is tested on my site and works well Files to Edit: 1 forum/admin/functions.php 1) FIND: Code:
$avatarurl=""; REPLACE WITH: Code:
$avatarurl="{imagesfolder}/avatars/noavatar.gif"; Code:
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) { $post[avatar]=""; } else { eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";"); } Code:
if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) { $post[avatar]="{imagesfolder}/avatars/noavatar.gif"; } else { eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";"); } Code:
return ''; CHANGE IT TO: Code:
return "{imagesfolder}/avatars/noavatar.gif"; NEXT: Goto your admin CP: Replacements, Modify, [expand list], then find: {imagesfolder} Click Edit and change contents of replacement to your sites FULL URL + /images example: http://www.domain.com/forum/images Note: no end slash. save... NEXT GOTO: Admin Cp: Options, [Avatars] FIND: Maximum Dimensions Maximum width and height (in pixels) that the custom avatar image can be. Change the number from 50 to 64 goto the button and click save changes. FTP to your Website: make dirdctory called "avatars" in the following location example: forum/images/avatars/ Then upload the new art images I made for hack. PS: I've created a GuestAvatar Image, that matches my noavatar image, for those that use the welcome panel final hack by trilOByte | below If you used this hack, please click install here, and on Vincent "MW" Chan No avatar hack Comments and or suggestions about this hack in this thread for this hack here only please. DEMO: http://www.pixelfx.ca/forum/index.php PS: please let me know if I missed anyone for credits... enjoy the new avatars below |
#50
|
|||
|
|||
screenshot to follow...
|
#51
|
||||
|
||||
Please post such modifications and tweakings in the original hack thread.. Merged..
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|