Choose from our various pricing plans. There is a package for everyone!


How to add Affiliates on footer [phpBB3 & Invision]

View previous topic View next topic Go down

Tutorial How to add Affiliates on footer [phpBB3 & Invision]

Post by Mati™ on Sat Jan 11, 2014 4:14 pm

Hi, All

Since phpBB3 & Invision doesn't allow us to edit the templates we will us Javascript.

This tutorial will explain you how to add affiliates on footer for phpBB3 & Invision forum version.

Step: 1
Go into your AC-P -> Modules -> HTML & JAVASCRIPT -> Javascript codes management -> Create a new javascript Title: Affiliates - Placement: - In the home page

Javascript Code For phpBB3:
Code:
$(function(){$('#picture_legend').before('<div id="affiliates">
<a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" /></a>
<a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" /></a>
<a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" />
</a><a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" /></a>
</div>');
});

Submit & Your Done!

Javascript Code For Invision:
Code:
$(function(){$('.activeusers').before('<div id="affiliates">
<a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" /></a>
<a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" /></a>
<a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" />
</a><a href="#" target="_blank"><img src="http://i49.servimg.com/u/f49/17/29/94/19/affi110.png" alt="CSSHelp" /></a>
</div>');
});

Submit & Your Done!

Step: 2
Go into your AC-P -> Display -> Pictures and Colors -> Colors -> CSS Stylesheet
Code:
#affiliates {
    padding: 4px 0;
}
#affiliates img {
    padding: 2px;
}
Submit & Your Done!

Note: You can style it with CSS if you wish to add background color border...
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum