Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Affiliate Box - Scrolling and Fading Affiliate Buttons Details »»
Affiliate Box - Scrolling and Fading Affiliate Buttons
Version: 1.1, by AzzidReign AzzidReign is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.8 Rating:
Released: 07-14-2007 Last Update: 08-09-2007 Installs: 112
Uses Plugins Template Edits
 
No support by the author.

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.

Show Your Support

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

Comments
  #12  
Old 07-16-2007, 04:53 AM
l SKN l CHRIS l SKN l CHRIS is offline
 
Join Date: Mar 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

much love
Reply With Quote
  #13  
Old 07-16-2007, 05:39 AM
TheWhite TheWhite is offline
 
Join Date: Nov 2006
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool mod, just need to know how can i center the minibanners cause i don't like the empty space at the end
Reply With Quote
  #14  
Old 07-16-2007, 06:03 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this looks real nice, thanks for sharing, I might install this shortly.
Reply With Quote
  #15  
Old 07-16-2007, 06:11 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting.. a cooler affliate box compared to a few others.. will have to try it out.
Reply With Quote
  #16  
Old 07-16-2007, 06:40 AM
TheWhite TheWhite is offline
 
Join Date: Nov 2006
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it looks great, i changed the size to make it look nicer and it's so simple to handle but i'd like to know is it board intensive using gifs instead of jpgs?
Reply With Quote
  #17  
Old 07-16-2007, 08:36 AM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the images are so small... i don't think so it will be add load to server.
Reply With Quote
  #18  
Old 07-16-2007, 09:01 AM
stigz stigz is offline
 
Join Date: Aug 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi i installed this great affiliates box but i was wondering how can i add 2 like you have on your forum? coz i want one for partners and one for topsites. also how can i changed the title of the box? from affiliates to topsite?
Reply With Quote
  #19  
Old 07-16-2007, 01:34 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheWhite View Post
cool mod, just need to know how can i center the minibanners cause i don't like the empty space at the end
Go to the forumhome_affiliate_sites template. Find <div>, replace with <div align="center">

That should work Maybe you should get more affiliates lol j/p

Quote:
Originally Posted by TheWhite View Post
it looks great, i changed the size to make it look nicer and it's so simple to handle but i'd like to know is it board intensive using gifs instead of jpgs?
The images aren't really "board intensive", but if you have a large animated .gif file, then your users will probably see that the page loads rather slow compared to before.

Quote:
Originally Posted by stigz View Post
hi i installed this great affiliates box but i was wondering how can i add 2 like you have on your forum? coz i want one for partners and one for topsites. also how can i changed the title of the box? from affiliates to topsite?
I'll go ahead an add another product for this, but to do this manually, scroll to the very bottom and paste this code:
Code:
<!-- Begin Topsites -->
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_topsites')"><img id="collapseimg_forumhome_topsites" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_topsites].gif" alt="" border="0" /></a>
            Topsites - Vote for us!
           </td>
	</tr>
</tbody>

<tbody id="collapseobj_forumhome_topsites" style="$vbcollapse[collapseobj_forumhome_topsites]">
	<tr>
		<td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></td>
		<td class="alt1" width="100%"><div class="smallfont">
 <style>
.imgfade{filter:alpha(opacity=30); -moz-opacity:0.5;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>
<div>
<!-- Begin Links -->

YOUR LINKS GO HERE - Check out the original topic on how to add sites.

<!-- End Links -->
</div></td>
</tr>
</tbody>
<!-- End Topsites -->
I've bolded the line if you'd like to edit the "title" of it. It's currently set to "Topsites - Vote for us!".

If you'd like a topsite to sign up to, here's mine: http://www.se7ensins.com/TopSites/


Thanks for all the wonderful comments guys! I appreciate it
Reply With Quote
  #20  
Old 07-16-2007, 01:43 PM
nyqnzguju nyqnzguju is offline
 
Join Date: May 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one will try it today
Reply With Quote
  #21  
Old 07-16-2007, 01:48 PM
TheWhite TheWhite is offline
 
Join Date: Nov 2006
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man, this is a highly reccomended hack
Reply With Quote
Reply


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 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04693 seconds
  • Memory Usage 2,318KB
  • 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
  • (7)bbcode_code
  • (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
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete