vBulletin Modifications

Miscellaneous Hacks - Google Ads In Threads

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > Forum Archives > vBulletin 3.0 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported
[vB 3.0.7] Miscellaneous Hacks - Google Ads In Threads (113)
Released: 12-16-2004, 10:01 PM
Modification Information:
Author: steel
Last Online: 01-27-2007
Hack Version: 1.1 Installer Included: 0 Additional queries added to database: 0
New Templates: 2 Template Edits: 1 File Edits: 0
New Files: 0 New Phrases: 0 Installation Time (In Minutes): 5

You must first be a registered member to view any code.
Place this in your postbit or postbit_legacy template, at the VERY BOTTOM.

The first if statement will place that ad below the first post in showthread.

The second if statement will show ads to all in thoes usergroups. I have it set to show ads to guests, registered members, and admins. My donating members and moderators dont see the ads.

The third if statement is only shown to my registered members. Its a reminder for them to donate to the forums and become ad free.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 05-19-2006, 11:52 AM   #31
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

The usergroups in the array will see it. The postcount conditional is that it shows only on the first page after the 1st post, and the $bbuserinfo[usergroupid] == 2 conditonal means that it shows that text (not the ad) to normal members only.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 06-01-2006, 11:35 PM   #32
Coder
Join Date: May 2006
the0ne is on a distinguished road

Default

Quote:
Originally Posted by m4best
well im new to adding hacks so i dont know were all the templates are. were is the postbit or postbit_legacy template i can only find posting.php
go to ur Admin panel..style template..edit a template..



**************

Quote:
Originally Posted by eleven
you can also use this.. for all versions

You must first be a registered member to view any code.
thanks 4 this dude it was really helpfull

Last edited by the0ne; 06-01-2006 at 11:44 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-15-2006, 01:25 AM   #33
vB Newbie
Join Date: Feb 2005
testebr is on a distinguished road

Default

OK, work fine! But how to show the ad in my pages from the topic?

Here show only bellow first message of the topic.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-23-2006, 06:57 PM   #34
vB Newbie
Join Date: Jun 2006
duff is on a distinguished road

Default

This si a question i've come across while installing this hack, but can be applied to pretty much anything. IS thre a way to have it shown to members that arent in a specific usergroup? Kind of like a not in a rray kind of thing, if that makes sense.

I have a bout 15 different usergroups and evey time i add a new one, i'll need to remember to go in and add it to this array. if ther was a way of specifying which usergroupos will not see the ads, that would be a lot easier for me. So is there a way of typing this that vB will recognise?

Thanks in advance!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-27-2006, 08:47 AM   #35
Coder
Kr0n's Avatar
Join Date: Jun 2006
Kr0n is on a distinguished road

Default

Quote:
Originally Posted by Arnoud
Mate, nice idea, but try this for a better look:

You must first be a registered member to view any code.
1. With the spacers it looks better.
2. vBulletin doesn't like ||, it prefers OR, and it likes in_array even more!
3. You forgot a </if>
Thank You Arnoud

I have the question.
There is the possibility this code to modify so that Adds displays only in chosen forums?

Greets
Kr0n




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-28-2006, 02:48 PM   #36
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Quote:
Originally Posted by Kr0n
Thank You Arnoud

I have the question.
There is the possibility this code to modify so that Adds displays only in chosen forums?

Greets
Kr0n
Yes there is.

After
You must first be a registered member to view any code.
add
You must first be a registered member to view any code.
and add an </if> to the end of the code.

Also, 1, 2 and 3 are the forumids of the forums. You can add as many as you like, just seperate them with a comma.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-29-2006, 12:59 PM   #37
Coder
Kr0n's Avatar
Join Date: Jun 2006
Kr0n is on a distinguished road

Default

Arnoud thank you very much ... now this code is perfect for my forum




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-05-2006, 08:14 AM   #38
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Quote:
Originally Posted by Kr0n
Arnoud thank you very much ... now this code is perfect for my forum
Not a problem ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-08-2006, 07:37 AM   #39
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Quote:
Originally Posted by duff
This si a question i've come across while installing this hack, but can be applied to pretty much anything. IS thre a way to have it shown to members that arent in a specific usergroup? Kind of like a not in a rray kind of thing, if that makes sense.

I have a bout 15 different usergroups and evey time i add a new one, i'll need to remember to go in and add it to this array. if ther was a way of specifying which usergroupos will not see the ads, that would be a lot easier for me. So is there a way of typing this that vB will recognise?

Thanks in advance!
Just use the same usergroup if arnoud posted but put your code in <else /> intead of the main if




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-08-2006, 07:39 AM   #40
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Quote:
Originally Posted by DvilleStoner
Is it possible to have something like this, but base it on the users post count.
I have a lot of visitors that go to my arcade. But rarely post. I dont want to deny them free access to the arcade, but would like a google ad to appear if they haven't made at least 50 posts.


Is this possible??? TIA
Yes, just use: <if condition="$bbuserinfo[''posts] => 50"> or it could be <if condition="$bbuserinfo[''posts] =< 50"> i always seem to mess up me bigger's and smaller's




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expired Threads (Auto Close Threads) Ken Iovino vBulletin 3.5 / 3.6 Hack Releases 34 12-04-2006 05:03 PM
New Threads since last visit Snatch vBulletin Modification Requests 0 01-17-2006 02:18 PM
[REQ]Close new threads, but not new posts. DvilleStoner vBulletin Modification Requests 7 06-08-2005 02:26 PM


All times are GMT -3. The time now is 09:15 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)