Jump to content


- - - - -

IP.Board 2.3: Advert / Banner after first and last post


  • Please log in to reply
24 replies to this topic

#1 AndyF

AndyF

    Cogito ergo sum

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

Posted 02 August 2007 - 08:13 PM

This is the support topic for the tutorial Advert / Banner after first and last post.  Please post here if you have any questions or feedback.

#2 DevCore

DevCore

    Member

  • IM Supporters
  • PipPipPip
  • 34 posts
  • IPB Version:v2.3.x

Posted 17 September 2007 - 08:15 PM

Works just fine, thank you for sharing this.

#3 youstepup

youstepup

    n00b

  • Members
  • Pip
  • 1 posts
  • Real Name:hai
  • IPB Version:v2.3.x

Posted 23 September 2007 - 04:53 AM

it 's awesome, thanks a lot

#4 neito

neito

    Novice

  • Members
  • PipPip
  • 11 posts
  • Real Name:Cris
  • IPB Version:v2.3.x

Posted 23 September 2007 - 06:50 AM

Great!  w00t.gif Thanks smile.gif

Edited by neito, 23 September 2007 - 07:13 AM.


#5 unknownsilentkiller

unknownsilentkiller

    Novice

  • Members
  • PipPip
  • 7 posts
  • Real Name:PakChil
  • IPB Version:N/A

Posted 08 October 2007 - 02:37 AM

hi works great .. thanks man.. i have a question though when i put it in my 2.3 ipb forum.. i dont see it after the last post .. only after the first post i see it.. secondly.. it is not centered..  its kind of aligned left..

any reason for that??



#6 chaz

chaz

    Coder

  • Banned
  • PipPipPipPipPip
  • 134 posts
  • IPB Version:N/A

Posted 26 October 2007 - 10:54 AM

does it work for 2.3.x??? and is it after the first and last post ON VERY PAGE or just the first page?

#7 AndyF

AndyF

    Cogito ergo sum

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

Posted 26 October 2007 - 11:04 AM

QUOTE(chaz @ Oct 26 2007, 11:54 AM) <{POST_SNAPBACK}>
does it work for 2.3.x??? and is it after the first and last post ON VERY PAGE or just the first page?

Its for (or should be!) every page, regardless of what the member has set for how many posts per page.

Yes it works with 2.3

smile.gif

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

#8 AndyF

AndyF

    Cogito ergo sum

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

Posted 26 October 2007 - 11:05 AM

QUOTE(unknownsilentkiller @ Oct 8 2007, 03:37 AM) <{POST_SNAPBACK}>
hi works great .. thanks man.. i have a question though when i put it in my 2.3 ipb forum.. i dont see it after the last post .. only after the first post i see it.. secondly.. it is not centered..  its kind of aligned left..

any reason for that??

Im not sure why that is, I have not had any problems really when i had this enabled.

Post your URL please so i can see.

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

#9 pixel8

pixel8

    n00b

  • Members
  • Pip
  • 1 posts
  • IPB Version:v3.0.x

Posted 25 December 2007 - 02:25 PM

Same here. This mod only shows after the first post and not after the last post. IPB 2.3.x

#10 viperxx

viperxx

    Novice

  • Members
  • PipPip
  • 15 posts
  • IPB Version:N/A

Posted 17 January 2008 - 06:50 PM

I also have this problem.
A fix would be very nice

#11 AndyF

AndyF

    Cogito ergo sum

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

Posted 18 January 2008 - 10:26 AM

View Postunknownsilentkiller, on Oct 8 2007, 03:37 AM, said:

hi works great .. thanks man.. i have a question though when i put it in my 2.3 ipb forum.. i dont see it after the last post .. only after the first post i see it.. secondly.. it is not centered..  its kind of aligned left..

any reason for that??
Try adding...
<div align='center'> your code </div>

As for it not working on 2.3.4 , I will take a look at this later today to see what the problem is.

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

#12 AlSaeed

AlSaeed

    Advanced Member

  • Members
  • PipPipPipPip
  • 85 posts
  • IPB Version:N/A

Posted 29 March 2008 - 05:53 PM

So does this work with version 2.3.4? Also is it possible for it to be only viewable for guests? or is that asking for too much :)

Kind regards

#13 chrisangelgay

chrisangelgay

    Novice

  • Members
  • PipPip
  • 9 posts
  • Real Name:chris angel
  • IPB Version:v2.3.x

Posted 27 April 2008 - 08:56 PM

View PostAndyF, on Jan 18 2008, 06:26 AM, said:

View Postunknownsilentkiller, on Oct 8 2007, 03:37 AM, said:

hi works great .. thanks man.. i have a question though when i put it in my 2.3 ipb forum.. i dont see it after the last post .. only after the first post i see it.. secondly.. it is not centered..  its kind of aligned left..

any reason for that??
Try adding...
<div align='center'> your code </div>

As for it not working on 2.3.4 , I will take a look at this later today to see what the problem is.
I'm using v2.3.0 and am having the same problem with it not centering and only showing up after the first post. I used both methods for trying to center it. I'm using adbrite.

#14 RockY123

RockY123

    Advanced Member

  • Members
  • PipPipPipPip
  • 58 posts
  • IPB Version:v2.3.x

Posted 17 December 2008 - 02:40 PM

i Have a LIL Questions...

AFter Adding Codes we can see tha Advert/Banner in First n Last Posts..

but i want it to just Display on some forums..not on all forums posts..in some forums... lyke i have 5 forums... i want to display it in 3 forums...

PLZ HELP!! =)

#15 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 17 December 2008 - 02:56 PM

View PostRockY123, on Dec 17 2008, 09:40 AM, said:

i Have a LIL Questions...

AFter Adding Codes we can see tha Advert/Banner in First n Last Posts..

but i want it to just Display on some forums..not on all forums posts..in some forums... lyke i have 5 forums... i want to display it in 3 forums...

PLZ HELP!! =)
Change the first line of the code from the tutorial to this:
<if="in_array( $post['post_count'] % $this->ipsclass->vars['display_max_posts'], array( 0, 1 ) ) && in_array( $this->ipsclass->input['f'], array( X, Y, Z ))">
Replace X, Y, Z with a comma-separated list of the ID numbers of the forums you want these ads to display in.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#16 RockY123

RockY123

    Advanced Member

  • Members
  • PipPipPipPip
  • 58 posts
  • IPB Version:v2.3.x

Posted 28 December 2008 - 09:41 PM

Thanksss a Lottttt!! ;)

#17 RockY123

RockY123

    Advanced Member

  • Members
  • PipPipPipPip
  • 58 posts
  • IPB Version:v2.3.x

Posted 31 December 2008 - 10:30 PM

IF i want to show that banner in bottom...

then what codes should i use?

#18 dreadnought

dreadnought

    n00b

  • Members
  • Pip
  • 1 posts
  • IPB Version:v2.3.x

Posted 13 January 2009 - 12:06 AM

View PostAndyF, on Aug 2 2007, 03:13 PM, said:

This is the support topic for the tutorial Advert / Banner after first and last post.
Please post here if you have any questions or feedback.

Does this code work with 2.3.6?  I pasted the following code in where the instructions advised, rebooted my server, and the banner isn't showing up:

"<if="in_array( $post['post_count'] % $this->ipsclass->vars['display_max_posts'], array( 0, 1 ) )">
<table class='ipbtable' cellspacing="1">
<tr>
<td align="center">
<img src="http://www.classicspeakerpages.net/samplebanner.jpg">
</td>
</tr>
<tr>
<td class="catend" colspan="2">
<!-- no content -->
</td>
</tr>
</table>
</if>"

Any ideas?

Thanks!

#19 Nuno

Nuno

    Novice

  • Members
  • PipPip
  • 15 posts
  • Real Name:Nuno Brito
  • IPB Version:v2.3.x

Posted 04 July 2009 - 09:00 PM

Hi,

I want to share adsense revenue with the respective topic author, most of the work is already done and all that is needed to change is the pub-id.

However, how should I do to get the topic author id on each page of his topic discussion?

This is value available as {$author['individualadsense']} inside the respective person's topic at "topic_end_first_post" but I would like to combine with your work.

Do you have any idea how to pass this topic starter variable outside the topic?

Thanks! ;)

#20 o iSniPe xX

o iSniPe xX

    Novice

  • Members
  • PipPip
  • 10 posts
  • Real Name:Dimitry
  • IPB Version:v2.3.x

Posted 09 July 2009 - 10:10 PM

This sounds real dumb, but I can not find Topic View.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users