SMF Support > SMF 2.0.x Support

Help me to add ads in wap2

<< < (2/4) > >>

pkrack:
Edit wireless.template.php file , there you can add your ad code. Place your ad code in a seperate file i.e ad.php and then call it in wireless.template.php as include (ad.php) to keep the stuff clean

NanoSector:

--- Quote from: pkrack on March 03, 2012, 09:54:37 AM ---Edit wireless.template.php file , there you can add your ad code. Place your ad code in a seperate file i.e ad.php and then call it in wireless.template.php as include (ad.php) to keep the stuff clean

--- End quote ---
No, that breaks the model SMF uses.
I'm able to make something in a moment, just not now.

pkrack:
k v will be waiting

InfoStrides:
At the end of Wireless.template.php file, create a function as below:


--- Code: ---function template_adiquity_ads()
{
//Starts Adiquity
echo' <center>

<<<<PUT AD CODE HERE>>>>

</center>';
//Ends Adiquity
}
--- End code ---

Then call the function wherever you want it to appear in the template as shown below:


--- Code: ---template_adiquity_ads();
--- End code ---

I used the same stuff here (http://www.theinfostrides.com/index.php?wap2) and it works.

Let me know if it works for you.

Kevin1:
Now i have just copied the ads and placed it at the end of Wireless.template.php file

but the ads are displayiong at the top of the page. please i want to place my one ads below the menu and the other one at the footer.

please check here
http://technotech.tk/index.php?;wap2

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version