vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Affiliate Box - Scrolling and Fading Affiliate Buttons (https://vborg.vbsupport.ru/showthread.php?t=152350)

AzzidReign 07-14-2007 10:00 PM

Affiliate Box - Scrolling and Fading Affiliate Buttons
 
Keywords: affiliate, affiliates, partner, partners, scrolling box, fading images

Update: XHTML VALID NOW!
There are more template edits guys, sorry. This will fix xhtml errors.
For those that use TMS, you won't have any template edits.
Also, marquee has been removed due to the xhtml errors. If you don't care about being xhtml valid, I'll explain how to get your marquee back.

Features:
Adds an affiliate box in "What's Going On?"
Collapsible box
Images are faded and they light up when you scroll over them


Live Demo: LayeredGFX - Sorry, I've moved my affiliates to an affiliates page so live demo doesn't work.



Install instructions for TMS users:
Upload product
[optional] If you want the topsites to show, go into TMS > Affiliates and FORUMHOME: Add topsite box, set active: YES.


Install instructions for Non-TMS users:

Go to Styles & Templates > Style Manager > Edit Templates
Choose Forum Home Templates > Forumhome

Find:
Code:

<if condition="$show['birthdays']">
<!-- today's birthdays -->

Add above:
Code:

<!-- insert affiliate box -->
OPTIONAL: To add the topsites, add below <!-- insert affiliate box -->:
Code:

<!-- topsitebox -->

Choose headinclude template.
Find:
Code:

<!-- / CSS Stylesheet -->
Add above:
Code:

<style type="text/css">
.imgfade{filter:alpha(opacity=30); -moz-opacity:0.5;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>



You're done!



To add a site, go to Styles & Templates > Style Manager > Edit Templates > Affiliates and find affiliate_sites (topsite links are found in affiliate_topsite_sites). In there, you can add this code:
Code:

<a href="SITE LINK" target="_blank" ><img class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" src="IMAGE LINK" alt="ALT TEXT/DESCRIPTION/SITE TITLE HERE" border="0" /></a>
The affiliates phrase is affiliate_sites.
The topsite phase is topsites.


For those still interested in marquee, you can add this above your first affiliate/site/link:
<marquee width="100%" valign="center" direction="left" scrolldelay="2" scrollamount="1.5" onmouseover="this.stop()" onmouseout="this.start()">

And add this below your last affiliate/site/link:
</marquee>


Updates
July-16 2007 - Added products for affiliate + topsites and affiliate + topsites marquee as requested and as shown on my site.

v1.1 August-9 2007:
-Fixed xhtml problems
-Added TMS support
-Moved template out of forumhome
-Added more templates to make things easier
-Grouped the templates
-Cached the templates
-Removed marquee from being installed. Can add manually.

alessai 07-15-2007 10:05 PM

cool ill install it later

thanx

Quantnet 07-15-2007 11:37 PM

click install. Does the pic has to be a certain size ?

Quantnet 07-15-2007 11:44 PM

By the way, it would be much better if you can modify it so the affiliate box is on top of the what's going on, instead of the bottom.

Something like this http://www.theadminzone.com/forums/

AzzidReign 07-16-2007 12:26 AM

Quote:

Originally Posted by Quantnet.org (Post 1292293)
By the way, it would be much better if you can modify it so the affiliate box is on top of the what's going on, instead of the bottom.

Something like this http://www.theadminzone.com/forums/

For that, all you would have to do is put the "<!-- insert affiliate box -->" above the "Mark as read" section of the code. But it will probably look funny. You can move it above your users if you'd like, you would just have to move the "<!-- insert affiliate box -->" right below "<!-- what's going on -->".

And no, there's no size restriction. I personally like having multiple small buttons (88x31 is normal affiliate button size) but you can have whatever size fits your site best.

RvG2 07-16-2007 03:25 AM

wooott! finally it matches my taste now. :)

5 stars for you ;) thanks.

iogames 07-16-2007 03:55 AM

LOL :D I just saw this Tut in the morning at TAZ [TheAdminZone] and I thought, hopefully someday he will release it at vB.org

Good One!

Quantnet 07-16-2007 04:17 AM

Quote:

Originally Posted by iogames (Post 1292418)
LOL :D I just saw this Tut in the morning at TAZ [TheAdminZone]!

link?

AzzidReign 07-16-2007 04:22 AM

Quote:

Originally Posted by RvG2 (Post 1292412)
wooott! finally it matches my taste now. :)

5 stars for you ;) thanks.

Thanks!

Quote:

Originally Posted by iogames (Post 1292418)
LOL :D I just saw this Tut in the morning at TAZ [TheAdminZone] and I thought, hopefully someday he will release it at vB.org

Good One!

There was a tut for affiliate boxes? I've been to TAZ once or twice :P

JoeyBe11 07-16-2007 04:27 AM

Nice, I've been looking for a good affiliates mod. High five! lol.

<3 Pandas


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