Jump to content


- - - - -

Help - Banner Ads per Topic View


  • Please log in to reply
6 replies to this topic

#1 toxic77

toxic77

    n00b

  • Members
  • Pip
  • 4 posts
  • Location:PH
  • Real Name:Christian Enoza
  • IPB Version:v2.3.x

Posted 06 July 2010 - 03:49 AM

Hello everyone,

Hope you could help me here, we have used banner ads per forum on our forum ipboard 2.3.x and we wanted to have specific banners to be displayed on all threads or topics under a specified forum, I've tried to add a banner on topics view > render row, but its displaying globally on all topics across the forum, is there anyway to do it?

Wish someone could help me out.

#2 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 06 July 2010 - 11:31 AM

This is a Modification related issue, moving to the proper forum.

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#3 toxic77

toxic77

    n00b

  • Members
  • Pip
  • 4 posts
  • Location:PH
  • Real Name:Christian Enoza
  • IPB Version:v2.3.x

Posted 06 July 2010 - 11:55 PM

View PostAndyF, on Jul 6 2010, 07:31 AM, said:

This is a Modification related issue, moving to the proper forum.


Thanks Andy, sorry for posting in the wrong section, hope that someone could help me out.

#4 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 07 July 2010 - 11:20 AM

If its just a specific forum you want it in, find the forum ID (look at the URL to help, this forum is 114 as the URL is http://www.invisionm...?showforum=114)

Wrap the banner ad code in this:

<if="$this->ipsclass->input['f'] > X">

Banner code here

</if>

Replace X with the forum ID

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#5 toxic77

toxic77

    n00b

  • Members
  • Pip
  • 4 posts
  • Location:PH
  • Real Name:Christian Enoza
  • IPB Version:v2.3.x

Posted 08 July 2010 - 12:41 AM

View PostAndyF, on Jul 7 2010, 07:20 AM, said:

If its just a specific forum you want it in, find the forum ID (look at the URL to help, this forum is 114 as the URL is http://www.invisionm...?showforum=114)

Wrap the banner ad code in this:

<if="$this->ipsclass->input['f'] > X">

Banner code here

</if>

Replace X with the forum ID


Hi Andy,

Sorry if I've confused you, what I meant is, the script is similar to Banner Ads per forum modification, the only difference is that it will only display on the topic view render row of all the threads under the specified forum.

Attached File  4rum.JPG   20.93K   2 downloads

Anyways thanks for your help Andy.

#6 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 08 July 2010 - 11:15 AM

<if="$this->ipsclass->input['f'] == 'X' || !$this->ipsclass->input['t'] )">

Replace X with forum ID number. Leave 't' as-is.

I think. ;)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#7 toxic77

toxic77

    n00b

  • Members
  • Pip
  • 4 posts
  • Location:PH
  • Real Name:Christian Enoza
  • IPB Version:v2.3.x

Posted 09 July 2010 - 12:07 AM

Thanks for the help Andy, will try it out.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users