PDA

View Full Version : Forum Home Enhancements - Affiliate Marquee Mod


TigerSpy
07-13-2007, 10:00 PM
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

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


Add:

<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
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:

AzzidReign
07-15-2007, 03:53 PM
Looks familiar to what I posted on vbadvanced but for a module....

http://www.vbadvanced.com/forum/showthread.php?t=16732

Like how you are taking the credit.

This is what you put:
<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 />

Which looks awfully familiar to my code I posted:
<!-- Scrolling/Fading Links -->

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="175">
<tr>
<td class="tcat"><span class="smallfont"><strong><center>$vba_options[portal_blockbullet]Affiliates</center></strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<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>

<marquee width="100%" valign="center" direction="up" scrolldelay="2" scrollamount="1.5" onmouseover="this.stop()" onmouseout="this.start()">
<center>
<!-- Begin Links -->
<a href="http://www.yoursite.com/" target="_blank" ><img class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" alt="" src="http://www.yoursiteimage.com/" ></a><br /><br />
<a href="http://www.yoursite.com/" target="_blank" ><img class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" alt="" src="http://www.yoursiteimage.com/" ></a><br /><br />
<a href="http://www.yoursite.com/" target="_blank" ><img class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" alt="" src="http://www.yoursiteimage.com/" ></a><br /><br />
<a href="http://www.yoursite.com/" target="_blank" ><img class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" alt="" src="http://www.yoursiteimage.com/" ></a><br /><br />
<a href="http://www.yoursite.com/" target="_blank" ><img class="imgfade" onmouseover="this.className='imgfull'" onmouseout="this.className='imgfade'" alt="" src="http://www.yoursiteimage.com/" ></a><br /><br />
<!-- End Links -->
</center>
</Marquee>
</td>
</tr>
</table>
<br />

<!-- End Scrolling/Fading Links -->

I've bolded and red text the main parts that you can tell you've taken from my post at vBa. You even left the vba code...Maybe next time give credit to those who deserve it or even ask the author if you could use the code. I've not seen ANYONE post the fading icons like that...everyone used javascript, which only worked in IE, until I posted my way on vBa.

While editing parts out of my code...you seemed to have forgotten to edit other parts out (which are also bolded).


I guess now I should make a post on how to get a better affiliate system going with image fade and marquee. If you look at my affiliate links on the bottom of my graphics forum (www.layeredgfx.com/forums/) you will see my affiliate system. With mine, it actually looks like it's apart of the What's going on section and is collapsible. Yes, it doesn't have a marquee, but that's what...2 short lines of code...

xxHxx
07-15-2007, 05:01 PM
this is not workin in firefox !!

AzzidReign
07-15-2007, 07:03 PM
this is not workin in firefox !!
I'll be releasing a mod that will work better shortly. While he was editing out parts of my code, he edited out too much. Be on the look out for a new affiliate mod within the next day or so...I'll be putting together a product for it and you'll only have to edit 1 template.

l SKN l CHRIS
07-16-2007, 04:52 AM
thats gonna own azzid, and it seems i run into you everywhere lol

Magnumutz
07-16-2007, 09:06 AM
Of course it works in FF... at least for me, it works.

AzzidReign
07-16-2007, 01:39 PM
Yeah, the marquee will work in FF, but looking at the code, you won't have fading images. He didn't code this himself so he won't be able to help, nor see what he's done wrong.

You can use my affiliate mod that I've posted here:
https://vborg.vbsupport.ru/showthread.php?t=152350

I believe it's compatible with all browsers, I know it works for IE and FF. It's scrolling (marquee), faded buttons, and it automatically gives you the affiliate template rather than you adding it yourself.