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 Marquee Mod (https://vborg.vbsupport.ru/showthread.php?t=152226)

TigerSpy 07-13-2007 10:00 PM

Affiliate Marquee Mod
 
This mod adds marquee affiliate buttons.

Demo: http://www.gfx-n-gaming.com/forums

Installation

Admin CP > Styles & Templates > Style Manager > Edit Templates > fotter >

Right after the first code something like this

Code:

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
or
Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width=100%">

Add:

Code:

<tr>
<td class="tcat"><span class="smallfont"><strong><center>$vba_options[portal_blockbullet]Affiliates</center></strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="140">
 <style>
.imgfade{filter:alpha(opacity=30); -moz-opacity:1;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>

<marquee width="700" valign="center" direction="right" scrolldelay="2" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">

<a href="url here"><img src="image link here " alt="alt text here" border="0" /></a>

<!-- End Links -->

</Marquee>
</td>
</tr>
</table>
<br />
<br />

Thats it!

Magnumutz 07-14-2007 03:49 PM

Nice mod and demo.
Warning: You haven't edited right the "Powered by vBulletin" phrase in the forum title of the demo.

TigerSpy 07-14-2007 03:57 PM

oh yea thats my friends website i used it as a demo since my website dosent have affiliates ill fix it on that website my website is www.ultimategfx.net

Magnumutz 07-14-2007 04:27 PM

Add some google ads in it :P
Make it a Marquee ads box :P

projectego 07-14-2007 05:58 PM

Nice idea. Thanks! :)

FreshFroot 07-14-2007 09:57 PM

cool stuff, could have more things added, but overall good stuff :D

EnIgMa1234 07-14-2007 10:53 PM

This should be in template modifications

RaceJunkie 07-15-2007 12:27 AM

Looks nice might look into this

Hornstar 07-15-2007 07:49 AM

Thanks for sharing, this might come in handy, but i cant see anything really working in the demo.

Whitey193 07-15-2007 01:14 PM

Quote:

Originally Posted by hornstar1337 (Post 1291658)
Thanks for sharing, this might come in handy, but i cant see anything really working in the demo.

You can see it at the bottom of the forum.

The reason for the post is because it didn't work with my VBa CMPS and caused all sorts of template issues.

I messed around with it and managed to get it working with my template. I'm a complete noob at all this so no idea whether it's right or needs tweaking but it works for me.

http://www.revolutionsoldiers.com/index.php

Here is the amended code, bearing in mind all I did is leave off the end links section and change the size...

Now I've got loads of mods installed but this section is located in the FOOTER template (sure it's just a typo above asking to amend the fotter) after this code:

<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>

This is on the darkness template by bluepearl design.


Add this code :


<!-- affiliate link at bottom of CMPS -->

<tr>
<td class="tcat"><span class="smallfont"><strong><center>$vba_options[portal_blockbullet]Affiliates</center></strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="140">
<style>
.imgfade{filter:alpha(opacity=30); -moz-opacity:1;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>

<marquee width="850" valign="center" direction="right" scrolldelay="2" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">

<a href="url here"><img src="image link here " alt="alt text here" border="0" /></a>

<!-- /end of affiliate marque -->


If this code is wrong and someone can post the correct code or position post it here. Like I said, complete noob and educated guess to get this working with my template.

Hope this helps.

Whitey.. :eek:


All times are GMT. The time now is 01:13 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.01076 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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