Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Display ad codes problem


  • Please log in to reply
16 replies to this topic

#1 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 07 October 2011 - 12:23 AM

I am using hooks to show ads on my forum but hooks are only for Board Index.

I just want to display vertical ads  160X600 on all pages except board index (as i am using hooks for board index)...please let me know if anybody come across it...

also please let me know if you have come across any mods....

thanks in advance

#2 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 07 October 2011 - 01:49 AM

I'm not aware of a mod but you can do this with a template edit.

Open Admin CP > Look & Feel Tab > select skin > Global Templates > globalTemplate

Find:
   		 	{$items['adHeaderCode']}
   			 <if test="mainpageContent:|:$html">{$html}</if>
   			 {$items['adFooterCode']}

Replace With:
<div class='ipsLayout ipsLayout_withright ipsLayout_largeright clearfix'>
  	<div class='ipsLayout_content clearfix'>
   			 {$items['adHeaderCode']}
   			 <if test="mainpageContent:|:$html">{$html}</if>
   			 {$items['adFooterCode']}
  	</div>
  	<div class='ipsLayout_right'>
   	{ad code here}
  	</div>
</div>

Save. Will add a sidebar to all pages similar to the sidebar for an ad.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#3 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 07 October 2011 - 11:29 PM

thanks a lot .... its working...


can you let me know how to display it only on the pages i need.... because on the board index i am using hooks...and i want to display it only on message view page and topics list page...

and also how to resize the width of the side bar...

thanks a lot for your help... :)

#4 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 08 October 2011 - 09:36 PM

Try this instead. Uses a different style that should be smaller in width.

<if test="showOnTopic:|:ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'forums' AND ipsRegistry::$current_section == 'topics'">
<div class='ipsLayout ipsLayout_withright ipsLayout_smallright clearfix'>
		<div class='ipsLayout_content clearfix'>
					 	{$items['adHeaderCode']}
					 	<if test="mainpageContent:|:$html">{$html}</if>
					 	{$items['adFooterCode']}
		</div>
		<div class='ipsLayout_right'>
		{ad code here}
		</div>
</div>
<else />
					 	{$items['adHeaderCode']}
					 	<if test="mainpageContent:|:$html">{$html}</if>
					 	{$items['adFooterCode']}
</if>

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#5 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 09 October 2011 - 05:32 PM

its working exactly how i want.  but ads are only showing on Topic page... can i display on both topic list and topic view pages?

thanks for your time in helping me out.....

#6 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 11 October 2011 - 01:28 AM

Sure, replace the top line with this instead.

<if test="showOnTopic:|:( ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'forums' AND ipsRegistry::$current_section == 'topics' ) OR (  ipsRegistry::$current_application == 'members' AND ipsRegistry::$current_module == 'messaging' AND ipsRegistry::$current_section == 'view' )">

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#7 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 11 October 2011 - 05:51 PM

Thanks.....got it.. :)

Your video system is amazing... thanks for your support once again...

Edited by andhrawatch, 11 October 2011 - 06:54 PM.


#8 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 25 October 2011 - 10:26 PM

hi again.....


can you let me know how to add ads on reply page?

#9 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 27 October 2011 - 12:25 AM

<if test="showOnTopic:|:( ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'forums' AND ipsRegistry::$current_section == 'topics' ) OR (  ipsRegistry::$current_application == 'members' AND ipsRegistry::$current_module == 'messaging' AND ipsRegistry::$current_section == 'view' ) OR (  ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'post' AND ipsRegistry::$current_section == 'post' AND $this->request['do'] == 'reply_post' )">

Try this code, replacing the top line as before.

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#10 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 21 November 2011 - 08:01 PM

Hi,

Hi can i display ads to be displayed only on one forum ? please let me know if you have any information...thanks for your support;

#11 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 22 November 2011 - 01:58 AM

Yes what's the forum id you want to show to? And your checking the forum id for both the topic view and reply topic page?

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#12 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 22 November 2011 - 08:31 PM

forum ID will be 15....   i need to display only on topics list page.

thankyou.

#13 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 24 November 2011 - 01:38 AM

<if test="showOnTopic:|:( ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'forums' AND ipsRegistry::$current_section == 'topics' AND $this->request['f'] == '15' ) OR (  ipsRegistry::$current_application == 'members' AND ipsRegistry::$current_module == 'messaging' AND ipsRegistry::$current_section == 'view' ) OR (  ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'post' AND ipsRegistry::$current_section == 'post' AND $this->request['do'] == 'reply_post' )">

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#14 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 04 December 2011 - 11:13 PM

it is not working... it is displaying ads on topic view page....


i need to display ads only on topic's list page of a perticular forum .... i tried changing code with the help of your previous replies but no luck.....

#15 Michael

Michael

    Management

  • Management
  • 3,137 posts
  • Gender:Male
  • Location:Australia
  • IP.Board Version:IPB 3.1.x
  • First Name:Michael
Donator

Posted 07 December 2011 - 01:10 AM

Try this.

<if test="showOnTopic:|:( ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'forums' AND ipsRegistry::$current_section == 'forums' AND $this->request['f'] == '15' ) OR ( ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'forums' AND ipsRegistry::$current_section == 'topics' ) OR (  ipsRegistry::$current_application == 'members' AND ipsRegistry::$current_module == 'messaging' AND ipsRegistry::$current_section == 'view' ) OR (  ipsRegistry::$current_application == 'forums' AND ipsRegistry::$current_module == 'post' AND ipsRegistry::$current_section == 'post' AND $this->request['do'] == 'reply_post' )">

Keep up to date with DevFuse mod development and releases.

Posted Image Posted Image Posted Image Posted Image Posted Image


#16 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 15 December 2011 - 12:41 AM

working....thanks a lot....

#17 andhrawatch

andhrawatch

    Member

  • Customers
  • 16 posts
  • IP.Board Version:IPB 3.2.x
  • First Name:afdb

Posted 23 December 2011 - 04:48 PM

hi,  can i show ads after first x topics in forum view?

for example first five topics in a forum are PINNED and i want to place ad after these topics ... can i do that?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users