Support Forum

How to insert Ads between main Forum Groups?

MS Mario Smode
Mario Smode
Member

Hi, I have question about ads.. I have already managed to place ads inside topic view, but I’m having problems with placing ads on the main forum page, for example, between two forum groups.

For placing ads inside topic view, I used:

if

(

$spTopicView->currentPost==1) || ($spTopicView->currentPost==4){

echo

'my ad code here';

}
 

Not sure which file to edit and how would the line of code look like for placing ads between forum groups.

Any help would be appreciated. Thx

3 Answers

New Answer

IK Ike
Ike
Member

I haven’t tried this myself, but you should be able to echo your ad code anywhere in the same way the demonstration has you place the ad at the bottom of the footer. I think the only reason the example of placing the ads in topic view differs is because it’s displaying the ad every 4 posts – or whatever you want.

You want to edit spGroupView.php for the first forum page you see – a list of forums. You can then place your ad code where you like – for example after the sectionStart groupView ends maybe.. You would have to experiment to get it right.

Hope this helps.

MS Mario Smode
Mario Smode
Member

Thanks Ike! As always, it was a helpful answer! :) Managed to display ads, just need to make a few tweaks to make it look good! Thanks