Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Replace 1st & 2nd signatures with ads/other code Details »
Replace 1st & 2nd signatures with ads/other code
Mod Version: 1.00, by karlm (Designer) karlm is offline
Developer Last Online: May 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.7 Rating: (0 vote - 0 average) Installs: 4
Released: 22 Jun 2007 Last Update: Never Downloads: 2
Not Supported Template Edits Re-usable Code  

Hi all,

I was thinking of a way to place advertisements in my forum without distrupting the display too much... this is what I came up with.

Enter your ADMIN CP, select Styles & Templates, then select Style Manager and open up the skin you wish to amend (the main skin would be the obvious choice, or all if necessary) and finally, expand all template groups fully and select postbit.

Seach for:

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

And replace it with the below code.


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

What this code does is it checks a few conditions.

1) It checks whether the post displayed is the first or second.
2a) If it is the 1st it then checks whether user has a signature or not.
2b) If it is the 2nd it then checks whether user has a signature or not.
3a) If the user has a signature (post #1), it replaces it with a google link-unit 728x15.
3b) If the user has a signature (post #2), it replaces it with a google link-unit 728x90.
4) If the user doesn't have a signature - it uses the google-ad code regardless for both posts #1 and #2.
5) It also checks whether the viewer (not the poster) is on a subscription group and removes all adverts as well as leaving the original signatures in place. This serves as a great way to promote membership contribution.

6) It does a last check that makes sure any posts of #3 or above are ignored for signature replacing. This works on a page by page basis. So, for example, if you had a thread with 35 replies, spread over four pages (10,10,10,5), it would replace posts 1,2,11,12,21,22,31 and 32.

Remember you need to amend the a code to reflect the usergroup that YOUR forum uses for ad-less usergroup. In MY example, it is usergroup 30, yours will undoubtedly be a different number/s. If you have multiple usergroups that do not see adverts (e.g. supports, admins & mods), then simply use a comma to separate them:

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

I'm fairly confident there must be a considerably smaller & quicker means of doing this - but I'm not overly experienced with php. This is my second offering of a 'hack'. It works well on my forum and the members seem not to mind it at all.

If you use it at all - even for just 20 minutes - please leave feed back of your thoughts and don't forget to click Install if you actually make use of it on a live forum.

Thank you, and enjoy!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	p1.jpg
Views:	188
Size:	23.4 KB
ID:	65922   Click image for larger version

Name:	p23.jpg
Views:	305
Size:	61.0 KB
ID:	65923  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 22 Jun 2007, 13:11
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
For a working demonstration, drop by my forum and select any thread you want.
Reply With Quote
  #3  
Old 23 Jun 2007, 03:55
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
How many queries does this add?
Reply With Quote
  #4  
Old 23 Jun 2007, 21:13
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
Erm.
God knows.

Seriously, I've no idea at all... Sorry.
Reply With Quote
  #5  
Old 28 Sep 2007, 22:54
jmw jmw is offline
 
Join Date: Jan 2005
Originally Posted by karlm View Post
Erm.
God knows.

Seriously, I've no idea at all... Sorry.
LOL! Can't install.
__________________
Bertha you know what?? ENOUGH!!!! GIT BACK IN THE DAMN TRAILER AND GIT US BOYS MORE BEER WOMAN!
Reply With Quote
  #6  
Old 29 Sep 2007, 02:14
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
I think that this would seriously upset many of the users on my forum - they are quite attached to their sigs.
Reply With Quote
Reply


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

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 09:47.

Layout Options | Width: Wide Color: