Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Avatar/Image Reflection Effect Details »»
Avatar/Image Reflection Effect
Version: 1.5, by Tralala Tralala is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-03-2006 Last Update: 06-21-2006 Installs: 137
Template Edits
Additional Files  
No support by the author.


This modification dynamically adds a subtle "reflection" effect underneath avatars and/or images on your forums. The reflection will automatically fade into your forum's background color, whatever it might be. You can also offer this effect as an option for your members' uploaded images via a BB Code.


This effect uses unobtrusive javascript to keep your code clean. It doesn't require additional server work. It works in all the major browsers - Internet Explorer 5.5+, Mozilla Firefox 1.5+, Opera 9+ and Safari. On older browsers, it'll degrade and your visitors won't notice a thing. Best of all, it's under 5KB!

"Simple. Unique. Classy. Thank you!"
- Forum admininstrator, JoeSixPack

"This mod gives my forum a slick, almost 3-D look!"
- Forum administrator, Tralala


Details:
1 file upload ("reflection.js") to forum's clientscript directory

1 template edit to "header" template

Optional edit: 1 for avatars in thread view ("postbit_legacy" template)
Optional edit: 1 for avatars in thread view ("postbit" template)
Optional edit: 1 for avatars in member profile ("MEMBERINFO" template)
Optional edit: 1 for profile picture in member profile ("MEMBERINFO" template)
Optional edit: 1 for avatars in Members List ("memberlist_resultsbit" template)
Optional edit: 1 for new BBcode (AdminCP -> Custom BB Codes -> BB Code Manager)
Optional edit, not recommended: 1 for ALL images posted inline via standard IMG BBCode ("includes/class_bbcode.php" file)

(All of the above optional edits involve simply inserting class="reflect" to the image HTML code, which adds the reflections. The code to replace for each edit is included in the .zip archive.)

See screenshots to see it in action...


My very first vBulletin hack! Kudos to the fine coders at vBulletin.org whose work inspires me.

Special thanks to Cow's Blog for the reflection.js code. Shared and distributed freely under MIT-style License.

Enjoy!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #152  
Old 12-02-2007, 10:03 AM
Flygye Flygye is offline
 
Join Date: Sep 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi you guys.

I have installed this hack on my forum, and it looks realy nice
But i have a little problem, when the forum loads it freeze by 3 seconds and then after the 3 seconds it works fine.

I have commented the code for the script in header template , and the forum works normaly, but if i put the script in the header template it freeze by 3 seconds.

What it's the problem, anyone knows?
Reply With Quote
  #153  
Old 12-03-2007, 03:03 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tralala View Post
Thanks for the kind words.

I've confirmed this is a bug with Firefox 2.0.0.10. There's not much I can do to address it, I suspect it'll be fixed by them in 2.0.0.11.

(It's working fine in a newer Mozilla nightly build: http://ftp.mozilla.org/pub/mozilla.o...14-mozilla1.8/)

So... hang tight.
As predicted, this is now working again, with the new release of Firefox 2.0.0.11.
Reply With Quote
  #154  
Old 12-03-2007, 03:06 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flygye View Post
Hi you guys.

I have installed this hack on my forum, and it looks realy nice
But i have a little problem, when the forum loads it freeze by 3 seconds and then after the 3 seconds it works fine.

I have commented the code for the script in header template , and the forum works normaly, but if i put the script in the header template it freeze by 3 seconds.

What it's the problem, anyone knows?
I've heard this issue come up before and I believe it's older-browser-specific. That is, whatever browser you are in is struggling to run the javascript that renders the reflection.

What browser/version/platform are you using? Does the same 3 second delay happen when you try a different browser?
Reply With Quote
  #155  
Old 12-29-2007, 06:17 PM
DigitALL2 DigitALL2 is offline
 
Join Date: Dec 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have read all posts here and results are various, for some it worked this hack for some not.
I have installed it under two skins (one bright and one dark) and for one moment I could see the reflections. Then it was just not there and nothing was changed.

I noticed that once I log out (as admin) and go see some threads the reflexion is back and every time with no problem! As soon as log back in, the reflexion disappears.
I asked one moderator to check and it was the same, when logged did not see it and when logged out the reflexion was there.
I followed the installation to the letter for avatars in thread view (postbit template and header).

Any idea why this problem?
Reply With Quote
  #156  
Old 01-04-2008, 06:58 PM
Termi Termi is offline
 
Join Date: Nov 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, all

is it possible to make a refleciton on header image ?

i have vb 3.6.8

and this header template

PHP Code:
<META http-equiv=Page-Exit content=BlendTrans(Duration=0)>
<
META http-equiv=Page-Enter content=BlendTrans(Duration=0)>
<!-- 
Start vBGuides Season -->
<if 
condition="$vboptions[guidesvbs_onoff] == 1">
<if 
condition="$vboptions[guidesvbs_area] == 0">
<
script type="text/javascript" src="season/$vboptions[guidesvbs_type].js"></script>
</if></if>
<!-- 
End vBGuides Season -->
<
script type="text/javascript">
<!--
function 
openRadioAndTV(){
radioAndTVWindow window.open('radioandtv.php''radioandtv''directories=no,height=500,width=700,location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no');
}
//-->
</script>

<!-- 
logo -->
<
a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
 <
tr>
  <
td><img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="" /></td>
 </
tr>
</
table>
<!-- /
logo -->
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
 <
tr>
  <
td><a href="index.php"><img src="$stylevar[imgdir_misc]/homepage_nav.gif" border="0" alt="" /></a></td>
<if 
condition="$show['member']">
  <
td><a href="usercp.php"><img src="$stylevar[imgdir_misc]/youraccount_nav.gif" border="0" alt="" /></a></td>
</if>
  <
td><a href="memberlist.php"><img src="$stylevar[imgdir_misc]/memberlist_nav.gif" border="0" alt="" /></a></td>
  <
td><a href="calendar.php"><img src="$stylevar[imgdir_misc]/calendar_nav.gif" border="0" alt="" /></a></td>
  <
td><a href="search.php"><img src="$stylevar[imgdir_misc]/search_nav.gif" border="0" alt="" /></a></td>
  <
td id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/quicklinks_nav.gif" border="0" alt="" /></a><script type="text/javascript"vbmenu_register("usercptools",true); </script></td>
  <
td><a href="faq.php"><img src="$stylevar[imgdir_misc]/faq_nav.gif" border="0" alt="" /></a></td>
  <
td width="100%"></td>
 </
tr>
</
table>

<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
 <
tr>
  <
td><img src="$stylevar[imgdir_misc]/extralinks.gif" border="0" alt="" /></td>
  <
td width="100%" style="padding-left:10px;">
<
a href="/forum.php" class="sublink">Forum</a>
<
a href="/halloffame.php" class="sublink">Halle der Champions</a>
<
a href="/gamemenue.php" class="sublink">Spielhalle</a>
<
a href="/guthaben.php" class="sublink">Bank</a>
<
a href="/credits.php" class="sublink">Kredit</a>
<
a href="javascript:openRadioAndTV()" class="sublink">TV und Radio</a>
  </
td>
 </
tr>
</
table>

<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
 <
tr>
  <
td><img src="$stylevar[imgdir_misc]/top-left.gif" border="0" alt="" /></td>
  <
td width="100%" style="background-image:url('blueevolution/misc/top-bg.gif'); background-repeat:repeat-x;"></td>
  <
td><img src="$stylevar[imgdir_misc]/top-right.gif" border="0" alt="" /></td>
 </
tr>
</
table>

<!-- 
content table -->
<
script type="text/javascript" src="clientscript/reflection.js"></script>
$spacer_open

$_phpinclude_output 
can you help me pls thanks

regards Termi
Reply With Quote
  #157  
Old 02-26-2008, 02:04 AM
crakker56 crakker56 is offline
 
Join Date: Feb 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doc31 View Post
Is there a way to make a check box in say the vb options page in the usercp to enable/disable this feature?
Has anyone been able to make this??
Reply With Quote
  #158  
Old 03-22-2008, 08:57 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we get the installation instructions revised for the latest versions of vbulletin? Some of the coding has changed.

I managed to figure out postbit legacy for those of you interested...
Code:
Step 3 (optional, for forums using postbit_legacy:) To add the reflection effect underneath avatars in thread view, FIND in "postbit_legacy" template:



				<div class="smallfont">
					&nbsp;<br /><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>
				</div>


REPLACE THAT WITH:



				<div class="smallfont">

					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight]  class="reflect" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>

				</div>
Reply With Quote
  #159  
Old 06-19-2008, 08:58 AM
ka81's Avatar
ka81 ka81 is offline
 
Join Date: Mar 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whould you please port it for vB 3.7.x (3.7.0) ??
or it's already created somewhere here??
Reply With Quote
  #160  
Old 07-26-2008, 03:10 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Made my day mate Thanks.

Reply With Quote
  #161  
Old 08-12-2008, 02:38 AM
columbusgeek's Avatar
columbusgeek columbusgeek is offline
 
Join Date: Sep 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Easy to add, works great. thanks.
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 04:46 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.05613 seconds
  • Memory Usage 2,362KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete