vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Show "No Avatar" Image If No Avatar is Selected (https://vborg.vbsupport.ru/showthread.php?t=36363)

Mathieu 10-24-2002 11:53 AM

thanks for this i'll install it now.

Glenn379 10-26-2002 05:31 AM

simple but effective *installs*

deFunx 11-08-2002 07:37 PM

Err, well it works on my 2.2.8 version.

andyrose 02-16-2003 05:19 AM

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. :)

kevinnguyen 03-22-2003 09:47 PM

work great w/ 2.3.0

PixelFx 06-06-2003 08:28 AM

I remember this old hack :P just tested it, works great with vb2.30 :P

Michael 08-25-2003 01:59 AM

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???

PixelFx 10-06-2003 10:13 AM

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";

NEXT FIND:

Code:


if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
                        $post[avatar]="";
                } else {
                        eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
                }

REPLACE IT WITH:

Code:


if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
                        $post[avatar]="{imagesfolder}/avatars/noavatar.gif";
                } else {
                        eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
                }

NEXT FIND:

Code:


return '';

Note: '' is ' ' not "

CHANGE IT TO:

Code:


return "{imagesfolder}/avatars/noavatar.gif";

Save, and Upload:

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 :)

PixelFx 10-06-2003 10:23 AM

screenshot to follow...

Logician 10-06-2003 01:48 PM

Please post such modifications and tweakings in the original hack thread.. Merged..

PixelFx 10-06-2003 10:07 PM

doh, sorry, thought enough had changed as it was a complete rewrite.. not wanting to step on toes... enjoy anyway :)

Red Blaze 10-07-2003 03:25 PM

Very Nice, I plan to make my own guest/noav. selected Avatar images though. ^^;

integra99 10-19-2003 02:50 PM

Can someone compile the hack for 2.3.2 into a text file? I'm not really good at this stuff, and just want to make sure I get it right and don't leave something out. THanks

350Chevy 03-22-2004 07:48 AM

I've been using the old hack for over a year and have upgraded to 2.3.4 now and it still works. Dunno why the rewrite.. :D

Ryan McBain 04-16-2004 08:23 AM

Can you do this for vb3?

CFF Staff 09-16-2004 01:59 AM

Helo


All times are GMT. The time now is 04:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01117 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete