Scrolling Affiliates Box on phpBB3 index [Mod]

Tips & Tricks to use on your phpBB3 Forum.
User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Scrolling Affiliates Box on phpBB3 index [Mod]

Postby LDM » Sun Jun 14, 2009 9:59 pm

I needed an affiliates box for phpBB but couldn't find one on phpbb.com so decided to make one.

This to add affiliate buttons or site links to index page at the bottom. There is no ACP module but very easy to add the links via html to the file.

There are two versions, so use whatever one you prefer. There is a version inside a box and another more subtle version on your forum background colour. The links scroll from right to left, but you can choose to just have them sit static centered via changing the file. The best images to add to this are the 88 x 31px buttons you see on toplists, etc.

To have a titled Links box
affiliates1.jpg


Add this code to a new file in your editor and save it as affiliates.html:

Guest text: ON
Available only to registered users.
Guest text: OFF

Code: Select all

<br clear="all" />
<div class="forabg">
   <div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
            <li class="header">
                <dl class="icon">
                  <dt >Links</dt>
               </dl>
                </li>
         </ul>
         <ul class="topiclist forums">
      <li class="row">
    <marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
ADD HERE YOUR HTML LINKS</marquee></li>
      </ul>
   <span class="corners-bottom"><span></span></span></div>
</div>


Add your link buttons to where it says ADD HERE YOUR HTML LINKS for example:

Guest text: ON
Available only to registered users.
Guest text: OFF

Code: Select all

<a href="http://www.modphpbb3.com/toplist/" target="_blank"><img src="http://www.modphpbb3.com/toplist/button.php?u=MFOnet" alt="ModphpBB3 Forum Directory" border="0" /></a>&nbsp;&nbsp;

Then use the same code to add more obviously changing the url/img/title and alt.

Now download /style/template/index_body.html and find:

Code: Select all

<!-- INCLUDE overall_footer.html -->


Above that add:

Code: Select all

<!-- INCLUDE affiliates.html -->


Save files and upload affiliates.html and index_body.html to styles/yourstyle/template/ and refresh templates cache in admin.

Whenever you need to add anymore buttons just download affiliates.html and add the link, reupload and refresh cache.

To have a little more subtle box, like this:
otheraffiliates.jpg


Follow the instructions above, but instead use this code for affiliates.html

Guest text: ON
Available only to registered users.
Guest text: OFF

Code: Select all

<br clear="all" />
<div class="forabg">
   <div class="inner"><span class="corners-top"><span></span></span>
    <marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
ADD HERE YOUR HTML LINKS</</marquee>
   <span class="corners-bottom"><span></span></span></div>
</div>
You do not have the required permissions to view the files attached to this post.
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am
Your Forum/Website URL: http://phpbbmexico.com

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby cisco007 » Mon Jun 15, 2009 1:31 am

looks good LDM, i'll give it a go tomorrow! :good:
Image
Image

User avatar
Ashley
Forum Member
Forum Member
Posts: 242
Joined: Fri May 30, 2008 10:15 pm
Your Forum/Website URL: http://

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby Ashley » Mon Jun 15, 2009 7:59 pm

That is a cool little mod LDM :thumbsup:
Image

red9skull
Forum Member
Forum Member
Posts: 5
Joined: Fri Jun 26, 2009 9:23 am
Your Forum/Website URL: http://screw-limits.lua.pl

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby red9skull » Sat Jun 27, 2009 5:10 pm

What am I doing wrong?

Code: Select all

http://screw-limits.lua.pl/
Sorry for my English, I'm from Poland.

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby LDM » Sat Jun 27, 2009 7:07 pm

Can you post in code tags, your affiliate html file.
Image

Image

red9skull
Forum Member
Forum Member
Posts: 5
Joined: Fri Jun 26, 2009 9:23 am
Your Forum/Website URL: http://screw-limits.lua.pl

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby red9skull » Sun Jun 28, 2009 2:03 pm

Sure:

Code: Select all

<br clear="all" />
<div class="forabg">
   <div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
            <li class="header">
                <dl class="icon">
                  <dt >Links</dt>
               </dl>
                </li>
         </ul>
         <ul class="topiclist forums">
      <li class="row">
    <marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=211" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/17.png" alt="17 again" border="0" /></a>&nbsp;&nbsp;</marquee>

<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=181" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/max.png" alt="Max Payne" border="0" /></a>&nbsp;&nbsp;</marquee>

<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=180" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/benjamin.png" alt="Ciekawy przypadek Benjamina Buttona" border="0" /></a>&nbsp;&nbsp;</marquee>

<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=117" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/szybko.png" alt="Szybko i wściekle" border="0" /></a>&nbsp;&nbsp;</marquee>

<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=167" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/anioly.png" alt="Anioły i Demony" border="0" /></a>&nbsp;&nbsp;</marquee>

<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=166" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/zapowiedz.png" alt="Zapowiedź" border="0" /></a>&nbsp;&nbsp;</marquee>

<marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=123" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/tak.png" alt="Jestem na tak" border="0" /></a>&nbsp;&nbsp;</marquee>

</li>
      </ul>
   <span class="corners-bottom"><span></span></span></div>
</div>
Sorry for my English, I'm from Poland.

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby LDM » Sun Jun 28, 2009 3:14 pm

Try saving this one as affiliate.html (or whatever you called the html file), reupload and recache template in admin.

Code: Select all

<br clear="all" />
<div class="forabg">
   <div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
            <li class="header">
                <dl class="icon">
                  <dt >Links</dt>
               </dl>
                </li>
         </ul>
         <ul class="topiclist forums">
      <li class="row">
    <marquee direction="left" scrollamount="7" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=7">
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=211" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/17.png" alt="17 again" border="0" /></a>&nbsp;&nbsp;
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=181" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/max.png" alt="Max Payne" border="0" /></a>&nbsp;&nbsp;
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=180" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/benjamin.png" alt="Ciekawy przypadek Benjamina Buttona" border="0" /></a>&nbsp;&nbsp;
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=117" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/szybko.png" alt="Szybko i wściekle" border="0" /></a>&nbsp;&nbsp;
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=167" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/anioly.png" alt="Anioły i Demony" border="0" /></a>&nbsp;&nbsp;
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=166" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/zapowiedz.png" alt="Zapowiedź" border="0" /></a>&nbsp;&nbsp;
<a href="http://screw-limits.lua.pl/viewtopic.php?f=25&t=123" target="_blank"><img src="http://screw-limits.lua.pl/images/filmy/tak.png" alt="Jestem na tak" border="0" /></a>&nbsp;&nbsp;</marquee></li>
      </ul>
   <span class="corners-bottom"><span></span></span></div>
</div>
Image

Image

red9skull
Forum Member
Forum Member
Posts: 5
Joined: Fri Jun 26, 2009 9:23 am
Your Forum/Website URL: http://screw-limits.lua.pl

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby red9skull » Sun Jun 28, 2009 3:36 pm

Thanks! It's works! But how to do that after the last image shows the first?
Sorry for my English, I'm from Poland.

red9skull
Forum Member
Forum Member
Posts: 5
Joined: Fri Jun 26, 2009 9:23 am
Your Forum/Website URL: http://screw-limits.lua.pl

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby red9skull » Sun Jun 28, 2009 3:43 pm

Sorry for my English, I'm from Poland.

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: Scrolling Affiliates Box on phpBB3 index [Mod]

Postby LDM » Sun Jun 28, 2009 3:53 pm

I don't think that can be done with standard marquee tag, you would have to look into adding a java applet and changing the code.

You could try this:
http://a-scrolling-text-applet-now-free ... chive.org/
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.



Return to “PhpBB3 Tips & Tricks”



Who is online

Users browsing this forum: No registered users and 1 guest