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)
-   -   Show Thread Enhancements - [CM] Posbit Avatar Hover (Zoom + 360 Degrees Turn Effect) (https://vborg.vbsupport.ru/showthread.php?t=286317)

ChiNa 08-03-2012 10:00 PM

[CM] Posbit Avatar Hover (Zoom + 360 Degrees Turn Effect)
 
1 Attachment(s)

I made this modification for vBulletin 3.8, but today I decided to try on vB4.x! I must admit it was not easy, because i never had worked on a vB 4.x befor! It was not easy, but I made it! I had not much time, so for now this modification is for "Postbit_Legacy" Templates! I will later make another mod for the Postbit!!


Modification is only visible for users in
Firefox, Safari, Chrome & Opera! Does sadly not work for users using Internet Explorer!


2 Template Edits
2 Different Effects: 360 Degrees Turn & Zoom Out Effect

For vBulletin 3.8 by Clicking HERE!



:::::::::::::::::::::::::::: TUTORIALS START :::::::::::::::::::::::::::::::::

Lets begin:


Step 1: First Go to your ADMINCP, find Styles & Templates, and then click on Style Manager!

Now on your right side you should see the Dropdown, now in the dropdown choose Edit Template!

Step 2: Scroll down and look for CSS Templates, and click to enter the template! Now look for "additional.css", Click and enter inside the "additional.css" template, and past the code below, at the bottom! (If there are any other codes, Usually Additional CSS is empty)!

Add the Code below in the additional.css:

360 Degrees Turn Code:

PHP Code:

.myavatar:hover 
 
transitionall 3s ease
-
webkit-transitionall 3s ease
-
moz-transitionall 3s easetransform:rotate(360deg); 
-
moz-transform:rotate(360deg); 
-
webkit-transform:rotate(360deg); position:relative;




Step 3
: Now go to your Styles & Templates, and again click on Style Manager!
And on again on your right side choose "Edit Template" in the dropdown!

Now in your templates, look for Postbit Legacy, and click and enter the template! Now this mod is only for Postbit Legacy, But later I will make another one for the Postbit template as well!

Step 4: In your Postbit template find the code below.

Code to find:
PHP Code:

<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /> 



Now replace it with the code below.


Replace With:
PHP Code:

<div class="myavatar"><img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /></div



Notice, we only add added 2 things
: <div class="myavatar"> in the front, And </div> at the end of the code! We did not remove the original!
Dont worry, it does not make any conflicts with template, Not even in the future!

Click Save, and your done!

Please Notice, if you use this mod, make sure to click install, if you later needed support for this mod!

:::::::::::::::::::::::::::: TUTORIALS ENDS :::::::::::::::::::::::::::::::::

Extra Modification & Optional
Notice: The code that we added in the Additional CSS was the 360 Degreess Turn Effect code, Below I have posted the code for Zoom Out Effect! Enjoy

Zoom Out Effect:
PHP Code:

.myavatar:hover 
opacity1filteralpha(opacity=100);
transitionall 2s ease
-
webkit-transitionall 2s ease
-
moz-transitionall 2s ease;
transform:rotate(0deg); 
-
moz-transform:rotate(0deg); 
-
webkit-transform:rotate(0deg);
transformscale(1.5); 
-
webkit-transformscale(1.5); 
-
moz-transformscale(1.5);
position:relative;


Add code in the additional.css template, And Done!

xixxon 08-05-2012 01:27 AM

Good job, but it looks so @@

New Joe 08-05-2012 08:54 AM

Cool and fun.
Thanks, installed

ChiNa 08-06-2012 03:47 AM

You are welcome guys, Thank you for the support! I am totally a newbie, but I know a bit about CSS and HTML! And I am doing my best to make a few extra mods...


Check out my Twitter & Facebook SlideBox! Also New, Never done befor for vB3.8!
And now also available for vB 4.x! I think you guys will like it too!

blake247 08-10-2012 03:22 AM

Sweet mod! Works great!

ramesh_umk3 08-16-2012 11:17 AM

Good mod thanks mate! I have a similar type for minor animation effects :)
Code:

http://jsfiddle.net/xMftm/1/

gariksher 08-27-2012 10:28 AM

Thanks ! Super mod!
360 Degrees installed

midgetgrimm 11-25-2012 02:10 AM

Thanks man, this is a great little codebit that adds some fun to the site. Cheers! Installed and rated :up: :up: :up: :up: :up:

ChiNa 11-28-2012 11:06 AM

A Big thanks to all of you for the FEEDBACK and for reply... Appreciate your support guys... Keep it up and support our hardworking developers... A Thanks is all they need for the headsup..............

Regards CM

stevieb 07-31-2013 07:46 AM

doesn't work in 4.2.0

ChiNa 10-04-2013 04:16 PM

Quote:

Originally Posted by stevieb (Post 2436236)
doesn't work in 4.2.0

Its actually made on 4.2.0 and works on any vBulletin 4.x Versions. Only if you do it correctly. I am pretty sure you are doing something wrong! I have installed it on more than a dusins of vB4.2.x forums and never had a single problem!

If you need me to help you out or Install it for you, then please create an Admin ID + Password and send it to my Inbox incl, your forum link!

tanzeelniazi 10-11-2013 11:34 AM

Working Great in 4.2.0 Nice hack :)

deathtrancer 01-11-2014 12:45 AM

Nice one buddy works on 4.2.2 great job!

msau 04-28-2015 09:20 PM

Working great on 4.2.2. Nice hack thanks.


All times are GMT. The time now is 09:12 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.01157 seconds
  • Memory Usage 1,774KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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