Jump to content
DevFuse Forums

Ads on IPB3


Xtreme2damax

Recommended Posts

I want to add my ads back on IPB3, but I can not for the life of me figure out how to set them up like I did on IPB 2.3.6. Hey Michael is there a way I can use this code you gave to me on the IPS company forums with IPB 3?

 

http://forums.invisionpower.com/topic/289729-displaying-ads-to-certain-groups/page__view__findpost__p__1850117

 

I want to put an ad under the navigation breadcrumb and one in the footer, I still only want to display the ads to certain groups. I also need to use templates for seamless clean integration of the ads in different templates.

 

I apologize if this may not be the most appropriate section for this inquiry, feel free to move this thread if needed. :)

Link to comment
Share on other sites

  • Management

Looks like your question has been answered here. You would just wrap your ad code with the following if used within the template bits.

 

<if test="in_array( $this->memberData['member_group_id'], array( X, Y, Z )">
your ad code
</if>

 

BTW that's a different Michael ;)

Link to comment
Share on other sites

Oh wow, it looks just like the code used on IPB2, I thought that the code may of differed a bit with the changes present in IPB3.

 

Well it's slightly different, but similar to the code listed for IPB2.

 

Thank You. :)

Edited by Xtreme2damax
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...