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

Krusty1231 12-06-2013 06:30 PM

I did not want a full blown snow effect on my entire forum. Some members become annoyed when I do that. This is perfect.

Thanks for sharing!

Razta 12-07-2013 03:48 AM

Thank you very much

ZUCCO 12-07-2013 04:45 AM

Hey, I replace the code as you said and I put the usergroups ID (replacing x,y,z ) but nothing happens :(

Does it apply to already registered member or just new ones?

tbworld 12-07-2013 07:23 AM

It is just a transparent overlay image. So if you are selecting the right user-groups it will work past and present. :)

I have never used this modification.

Krusty1231 12-07-2013 10:12 AM

1 Attachment(s)
As I do not like relying upon other websites for internal tweaks like this one I'd suggest you take out this part of the code...

Code:

http://forum.ragezone.com/images/styles/AnimatedArena/xmas/snow.gif
Upload the image to your own forum, and enter the URL location of that image.
Code:

http://yourforum/images/snow.gif
Or whatever.

Here is the image used.

tbworld 12-07-2013 10:21 AM

Quote:

Originally Posted by Krusty1231 (Post 2466544)
As I do not like relying upon other websites for internal tweaks like this one I'd suggest you take out this part of the code...

I did not want to say anything because it was a 'hack modification", and the author made it pretty obvious.

ZUCCO 12-07-2013 01:08 PM

Still cant make it work.

I uploaded the snow.gif file into my images directory:


Code:

"http://myweb.com/images/snow.gif"

I replaced the x,y,z with my usergroup IDs and still nothin happens :(


The whole text was like this:


Code:

<!-- snow avatar effect code -->
<vb:if condition="is_member_of($post, 5,6,7,8)">
<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://myweb.com/images/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 -->

Still doesnt work.

Krusty1231 12-07-2013 04:42 PM

Perhaps because your layout is not postbit legacy? I'm no expert but your site's postbit is not what mine looks like. That could be the problem?

tbworld 12-07-2013 06:19 PM

You might try temporarily setting the conditional always on:

Change:
Code:

<vb:if condition="is_member_of($post, 5,6,7,8)">
To:
Code:

<vb:if condition="TRUE  ||  is_member_of($post, 5,6,7,8)">
Just set the TRUE to FALSE to toggle the conditional on and off.

ChiNa 01-03-2014 01:26 AM

I dare you to PROVE ME and vBulletin.org WHAT IS YOURS that you replied on my Topic >> https://vborg.vbsupport.ru/showthrea...06#post2471906

One thing I hate most is Accussations that MENTAL People like does accuse others!
You better come with some prove because I will be comming after you if not..

ozzy47 01-03-2014 01:37 AM

Quote:

Originally Posted by ChiNa-Man (Post 2471908)
I dare you to PROVE ME and vBulletin.org WHAT IS YOURS that you replied on my Topic >> https://vborg.vbsupport.ru/showthrea...06#post2471906

One thing I hate most is Accussations that MENTAL People like does accuse others!
You better come with some prove because I will be comming after you if not..

IF you have a issue with a post in another thread, best way to handle it is to report it, not come into other threads and take the thread off topic. :)

MentaL 01-03-2014 05:34 PM

Quote:

Originally Posted by ozzy47 (Post 2471911)
IF you have a issue with a post in another thread, best way to handle it is to report it, not come into other threads and take the thread off topic. :)

Ban him, he is clearly has emotional issues , maybe some minor neglect in his life , who knows?

ozzy47 01-03-2014 06:27 PM

Quote:

Originally Posted by MentaL (Post 2472060)
Ban him, he is clearly has emotional issues , maybe some minor neglect in his life , who knows?

Let's stay on topic of the mod, not bickering. :)


All times are GMT. The time now is 02:20 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.01298 seconds
  • Memory Usage 1,768KB
  • 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
  • (9)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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