vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Replace Avatar with Joke picture for April Fools Day (https://vborg.vbsupport.ru/showthread.php?t=174849)

cheat-master30 04-01-2008 10:00 PM

Replace Avatar with Joke picture for April Fools Day
 
Again, this is an extremely simple edit which requires maybe one file upload and one template (or if you have style selection between normal and legacy, two) to be edited.

Find:

Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Replace with (noted bolded):
Code:

<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/avatars/  1_face.jpg" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Replace the bolded with the image address. You can also wrap the code in conditionals and such likes for different images per usergroup or something. I did this on my own site for one of about four April Fools Day jokes, and it was a minor annoyance/novelty.

Few Example Images:

[see attachments]

Attached are the two images I used personally.

John3971 04-02-2008 10:36 AM

its nice that you release it but your to late today is April 2th

cheat-master30 04-02-2008 02:09 PM

Depending on time zone, I released it either April 1st or 2nd. I know, should have probably released it earlier...

Brandon Sheley 08-11-2008 06:06 AM

ha, that's awesome you released it april 2nd :d

oh well, better prepared for next year :)

Digital Jedi 08-11-2008 06:15 AM

Quote:

Originally Posted by cheat-master30 (Post 1480931)
Depending on time zone, I released it either April 1st or 2nd. I know, should have probably released it earlier...

According the the release date, it says it was posted April 1st.

Tharos 08-13-2008 10:48 PM

lol

thanks for your effort dude ;)

SuperJETT 08-14-2008 05:01 PM

I did this in 2007 and enhanced it by pulling a random image from a directory full of blinkies. It was a big hit.

Winterworks 03-30-2009 09:15 PM

April Fools is coming around, so I'm going to give this a nice little bump so people can maybe use it. :)

Keesa 03-31-2009 11:34 PM

Oooh, if anyone has the conditionals on how to make this doable by usergroups, that would rock.

It works. I have a forum full of people ready to kill me now thanks to their Perez Hilton avatars.

heeeeeeeeeeeeeeeeee

Il Pompa 04-01-2009 12:07 PM

It doesen't work for me! I have installed vBulletin 3.8.2 :(


All times are GMT. The time now is 03:52 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.00952 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete