Board index

All times are UTC

Post new topic Reply to topic  [ 3 posts ] 
  Print view

Re: Specify different ads for different categories?
Author Message
PostPosted: Mon May 30, 2011 4:33 am 

Joined: Fri Jun 18, 2010 2:35 pm
Posts: 44
Chuckun wrote:
My question is as the title suggests.. Can I specify which adverts to show depending on what category the forum belongs to in the board directory?

Example: If a users forum is registered under a 'Technology' category, can I define an ad code specifically for the Technology category?

If so, would it be as simple as adding something like the following in the advert area (I believe you can use PHP there?):

<? if($category_id == "5") {
} else {

Thanks for your time,


You can follow these steps:
    1. Log into Admin Area PHP Multiforums.
    2. Look in System->Configuration->Hosted forums->Security Options->click select 'Yes' to Execute PHP Code in Ads.
    3. Look in Ads->Manages Ads->in "Is this PHP Code?" option->click select 'Yes'. Now, you can use php code in Ads.
    if ($echophp->forum['cat'] ==  '1')
         include('put file path here');
         include('put file path here');

Hope this help. Let me know if you have any questions.

Thank you.

Reply with quote  

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: