vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Snow avatar overlay for your forum (https://vborg.vbsupport.ru/showthread.php?t=292617)

MentaL 12-03-2012 11:00 PM

Snow avatar overlay for your forum
 
1 Attachment(s)
Hi

This mod creates an overlay for your avatars of selected usergroups. To install follow the steps below.

- Go to postbit_legacy
- Search

Code:

                        <vb:if condition="$show['avatar']">
                        <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                                <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        </a>

                        </vb:if>

Delete the bold and replace with

Code:

<!-- snow avatar effect code -->
<vb:if condition="is_member_of($post, x,y,z)">
<table {vb:raw avwidth} {vb:raw avheight} border="0" cellspacing="0" cellpadding="0" align="center" background="{vb:raw post.avatarurl}">
<tr><td>
<a href="{vb:link member, {vb:raw post}}"><img src="http://forum.ragezone.com/images/styles/AnimatedArena/xmas/snow.gif"  {vb:raw post.avwidth} {vb:raw post.avheight} alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" border="0" /></a>
</td></tr>
</table>
<vb:else />
<div class="usercenter"><a href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /></a></div>
</vb:if>
<!-- snow avatar effect code -->

Edit x,y,z with the usergroups you want to provide the overlay to. Enjoy.

CEZALAND 12-05-2012 02:40 PM

MentaL rocks !

MentaL 12-05-2012 03:02 PM

I would advise users to backup the snow.gif and locate it on your server but our images are cached with Cloudflare so you're more than welcome to use it from our servers.

FTG LIQUID CL 12-14-2012 01:45 PM

cool

MentaL 12-20-2012 02:42 PM

indeed.

MentaL 11-30-2013 06:24 PM

yearly bump.

cshellworld 12-02-2013 11:20 PM

4.2.1 installed , rating 5
thanks

ZUCCO 12-04-2013 10:34 PM

Nice mod, but I cant see what part is bolded. Can you change its font please,

MentaL 12-06-2013 12:54 PM

Quote:

Originally Posted by ZUCCO (Post 2465753)
Nice mod, but I cant see what part is bolded. Can you change its font please,

Code:

<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                                <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        </a>

= bold.

ZUCCO 12-06-2013 03:15 PM

Much better and its working :D


All times are GMT. The time now is 07:56 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
  • Page Generation 0.01245 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete