Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Apr 2016, 16:03
doogie88 doogie88 is offline
 
Join Date: Oct 2006
Add adsense site links to signature of first post?

How hard would it be to add site links by adsense to the signature of the first or second post?
Reply With Quote
  #2  
Old 15 Apr 2016, 16:22
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
To add to the signature of the first post in a thread, you could create a plugin hooked at "postbit_display_complete" with the plugin PHP code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit the content of the $add string to contain the HTML you want to add.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 15 Apr 2016, 16:31
doogie88 doogie88 is offline
 
Join Date: Oct 2006
Could I do second post?
Reply With Quote
  #4  
Old 15 Apr 2016, 16:43
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by doogie88 View Post
Could I do second post?
Yes, change the code to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For the first post, instead of using what I originally posted, just use:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit: You likely do not want the two line breaks if the author of the post to which the text is added does not have a signature being shown, so change the code to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

"X" is the post number in the thread you want to affect.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons

Last edited by MarkFL; 15 Apr 2016 at 16:50.
Reply With Quote
  #5  
Old 17 Apr 2016, 07:02
doogie88 doogie88 is offline
 
Join Date: Oct 2006
Looks like it's working fine. Thanks a lot!
Reply With Quote
  #6  
Old 17 Jul 2016, 18:37
doogie88 doogie88 is offline
 
Join Date: Oct 2006
Originally Posted by MarkFL View Post
Yes, change the code to:
How can I change this so it's last post of every page? So not just say post #15, but last post on threads with numerous pages?
Reply With Quote
  #7  
Old 17 Jul 2016, 20:06
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by doogie88 View Post
How can I change this so it's last post of every page? So not just say post #15, but last post on threads with numerous pages?
Try the following conditional:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #8  
Old 17 Jul 2016, 23:48
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
What I usually do is after the first post and after the last post if there is at least a certain amount of posts showing.. This way you will have more than one though I do not use adsense..
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #9  
Old 18 Jul 2016, 02:03
doogie88 doogie88 is offline
 
Join Date: Oct 2006
Originally Posted by MarkFL View Post
Try the following conditional:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
That worked, thanks a lot.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Mods Add Adsense Code On First Post MŽ Mostafa vBulletin 4.x Template Modifications 25 07 Jun 2011 14:46



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:49.

Layout Options | Width: Wide Color: