Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Snow avatar overlay for your forum Details »»
Snow avatar overlay for your forum
Version: 1.00, by MentaL MentaL is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.12 Rating:
Released: 12-03-2012 Last Update: Never Installs: 12
 
No support by the author.

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.

Screenshots

File Type: png snows.png (17.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Razta

Comments
  #12  
Old 12-06-2013, 06:30 PM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #13  
Old 12-07-2013, 03:48 AM
Razta's Avatar
Razta Razta is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much
Reply With Quote
  #14  
Old 12-07-2013, 04:45 AM
ZUCCO ZUCCO is offline
 
Join Date: Feb 2009
Posts: 241
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #15  
Old 12-07-2013, 07:23 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Krusty1231
  #16  
Old 12-07-2013, 10:12 AM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: gif snow.gif (1.6 KB, 0 views)
Reply With Quote
  #17  
Old 12-07-2013, 10:21 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Krusty1231 View Post
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.
Reply With Quote
  #18  
Old 12-07-2013, 01:08 PM
ZUCCO ZUCCO is offline
 
Join Date: Feb 2009
Posts: 241
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 12-07-2013, 04:42 PM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 12-07-2013, 06:19 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 01-03-2014, 01:26 AM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:08 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.05865 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete