vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Avatar/Image Reflection Effect (https://vborg.vbsupport.ru/showthread.php?t=114726)

Tralala 06-22-2006 04:18 PM

Quote:

Originally Posted by futuredood
VERY nice hack. simple and easy to install, and hardly any server load.

Thanks!

Quote:

Originally Posted by futuredood
one thing you can do is clean up the readme.txt file, for some reason it's really messy (bunch of square symbols).

Fixed. I've replaced the attachment... please download and let me know if it looks better?

Quote:

Originally Posted by futuredood
also, how do you go about changing the opacity and height settings?

From the ReadMe:

Quote:

Customizing height and opacity of reflections
------------------------------------------------
The reflection effect, by default, will be half the height of the original image. Thus, the height of the image, plus reflection, will be 1.5x the image's original height.
You can vary the height of a reflection by adding rheight followed by the desired height (in percent) to the CSS class list.
To use a reflection 33% the height of the original image: class="reflect rheight33"

The default opacity of reflections is 50%.
You can vary the opacity of a reflection by adding ropacity followed by the desired opacity (in percent) to the CSS class list.
To use a reflection with 30% opacity: class="reflect ropacity30"

You can combine these two options. To create a 80% height 40% opacity reflection use:
class="reflect rheight80 ropacity40"
Hope this helps.

futuredood 06-22-2006 07:59 PM

looks better, nice job!

oberheimhaven 06-23-2006 01:16 AM

Man I love this thanks, anyway to get my banner to reflect if so let me know how!!

Thxs again
Ober:banana:

Danny Diamond 06-23-2006 01:59 AM

Does this work for 3.5.3?

I can't get it to work for some reason.

*goes and criees in corner*

EDIT - Nevermind. I installed the clientscript file to the wrong spot.

YOU ROCK !!!

Tralala 06-23-2006 03:31 AM

Quote:

Originally Posted by oberheimhaven
Man I love this thanks, anyway to get my banner to reflect if so let me know how!!


Simply add

Code:

class="reflect"
to the HTML code for that specific image, to add a reflection.

oberheimhaven 06-23-2006 10:15 AM

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center"> class="reflect"

Im new is this correct

Ths again for the hack and the help!!!

Tralala 06-23-2006 01:15 PM

Quote:

Originally Posted by oberheimhaven
Im new is this correct

Ths again for the hack and the help!!!

In your "header" template, find this:

PHP Code:

    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a></td

and replace it with this:

PHP Code:

    <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]class="reflect" border="0" alt="$vboptions[bbtitle]/></a></td


Although, let me add this... this reflection script is good for avatars since they are varied and always changing. Since your logo is a static image though, it probably would make more sense to generate a similar reflection (say, in an art application like Photoshop) and upload that complete image instead. Yes, it's only one javascript call, but it'll be on every page of your forum, and it may effect page-loading performance on the user side.

R.Solutions 06-23-2006 01:58 PM

Thanks for the hack, installed.

Tralala 06-24-2006 05:29 PM

You're quite welcome!

edeline 06-25-2006 12:58 PM

thanx... work fine :)


All times are GMT. The time now is 09:34 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.01211 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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