TutorialMS Community Forum

Full Version: [SOLVED] Want to display banner, but only on tutorial, support, and home page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Want to display google adsense advertisement banner, but only on tutorial, support, and home page. I want to display on bottom right column. How to do this? Please help
hey,

to show the ads only on a the

tutorial page
support page
and the main page

you need to change the following files

index.php
help.php
submit.php
submit2.php
tutorial_detail.php
tutorials.php
view_tutorials.php

in the root directory from your TMS Installation.

Now you open the files and search in this

Code:
$XX_page = 1;

and insert this code below

Code:
define('ADSENSE', 1);


now you go in ACP -> Styles -> Modify -> <your Style> -> Edit Templates -> Header (as example)

and insert at the right position the following code

Code:
<if condition="ADSENSE==1">

Here comes the Adsense Code

</if>


only a quick & dirty solution, but it works Smile


hope this helps


Have a nice weekend Smile
Reference URL's