Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 952
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Need help to put advertisement

Started by waruna, February 28, 2010, 01:00:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

waruna

Hello guys, 2 quick question:

1) Can someone help me how to put an ads at portal index?  I tried to add a top/bottom html block, but the ads is 700px width, so the block appears to have a scrollbar navigation and that is not nice to see. How can I remove the scrollbar? :'(

2) How to put google ads in correct way? Because seems to me the ads doesn't appear at all. I tried to insert the script inside <body> </body> tag also can't help. I tested the script using manual html/php file and the ads perfectly works.  Am I done something wrong?

Thanks in advance.


Old Fossil

Regarding

1. Is the advert a banner? if so could you resize it?

2. Are the permissions set so adverts can be seen?
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

escorta.biz

You may use the Ad management mod and edit the portal index where you can ad the proper code.

For instance, after installing "Ad management mod", if you would like to add an ad right below the menu, you should ad the following code:
//Below the menu ads
if (function_exists("show_indexAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



echo '
<br class="clear" />';


Unfortunately i don't know which file you should edit and where you should put the above code; maybe someone will guide us, because i'm having the same issue.

[SiNaN]

It should go into the Portal.template.php file. If you want it at the top, in template_portal_above() or if you want it at the bottom, in template_portal_below() function.
And slowly, you come to realize... It's all as it should be...