MyBB Community Forums

Full Version: [Tutorial] Adding a marquee affiliate box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Go to AdminCP>Templates & Style>Templates>Your Theme Templates>Footer Templates>Footer

Recommended placement is right at the top before the contact us bar I/O, immediately after the very first <br /> Or even after the language selection box is also a nice placement & up to you.


<br>
<!-- start: affiliate table -->

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"'>
<tr>
<td class='thead' colspan='5'>
<font size='2'><center><b>{$mybb->settings['bbname']} Affiliates</b><center></font>
</td>
</tr>
<tr>
<td width='79%' class='trow1' valign='top'>
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="left" scrollamount="3">

<a href="http://vgchat.info/forum"><img src="http://vgchat.info/forum/images/vgchat/logo.png"></a>

</marquee>
</td>
<td width='21%' valign='top' class='trow1' align='center'>
<img src="URL of Your MiniBanner" /><br />
<a href="URL to Thread/Board where you can affiliate">Click Here to Affiliate!</a>
</td>
</tr>
</table>
<!-- end: Affiliate table -->

Live example: Video Game Chat
If i am correct there is/was a plugin for this.
Nevertheless. Good tut, many will find this useful, who can't FTP/.
One thing that I'm interested in adding to it is another table row to add a show/hide all affiliates like the one seen on this page http://brawldomain.com/ but I can't quite make the new table row without it looking messed up. Also, I can't quite figure out how to add collapse to a new table row (<tr>). Any ideas?

For those brainstorming with me about this... here's as far as I managed to get with it.

<br>
<!-- start: affiliate table -->

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"'>
<tr>
<td class='thead' colspan='5'>
<span class="smalltext"><center><b>{$mybb->settings['bbname']} Affiliates</b><center></span>
</td>
</tr>
<tr>
<td width='79%' class='trow1' valign='top'>
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="left" scrollamount="3">

Affiliate Banners Go Here

</marquee>
</td>
<td width='21%' valign='top' class='trow1' align='center'>
<img src="URL of Your MiniBanner" /><br />
<a href="URL to Thread/Board where you can affiliate">Click Here to Affiliate!</a>
</td>
</tr>

<tr>
<td width='100%' class='trow1' valign='top'>
<b>{$mybb->settings['bbname']}
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['newbox_e']}.gif" id="newbox_img" class="expander" alt="[-]" title="[-]" /></div>
</td>
</tr>

</table>
<!-- end: Affiliate table -->

Confused <font>... <marquee>... so you want destroy the (X)HTML compatibility?
otherwise: nice work.
The one developed by Samauel (Old username ethernet) is quite affective I suppose
There's nothing wrong with marquee and it helps if you have alot of affiliates Big Grin

*changed the <font> to <span class="smalltext">
(2009-08-29, 10:24 AM)querschlaeger Wrote: [ -> ]Confused <font>... <marquee>... so you want destroy the (X)HTML compatibility?
otherwise: nice work.

His has a limitation of only 8 affiliates... With the marquee, it stops when the mouse enters the affiliate box to pause it incase a user has a particular interest in that affiliate. Big Grin
(2009-08-29, 01:17 PM)ghazal Wrote: [ -> ]The one developed by Samauel (Old username ethernet) is quite affective I suppose
<marquee> isn't part of the (X)HTML specifications and it's not supported by all browsers.
That's ok, alot of browsers do support it.

Source.

Quote:<marquee> Web Browser Support:

* Netscape 7
* Mozilla 1
* Firefox 1
* Internet Explorer 2, 3, 4, 5, 6
* Opera 6, 7, 8
* Safari 1
* WebTV / MSNTV

(2009-08-29, 01:59 PM)querschlaeger Wrote: [ -> ]<marquee> isn't part of the (X)HTML specifications and it's not supported by all browsers.
There is a css attribute that works the same way as marquee as far as I remember, would be better to use that one instead Smile
Pages: 1 2