Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
8,054 Members
165,788 Posts
43 Users Online

Please welcome our newest member, HaMiDoZ!

Affiliates
Go Back AdminFusion » Management » Graphics and Design » ads on vbulletin
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 02-09-2006, 01:12 AM   #1

PostingWorld's Avatar

Title: Member

Points: 1,849, Level: 11Points: 1,849, Level: 11Points: 1,849, Level: 11
Level up: 12%, 1 Points neededLevel up: 12%, 1 Points neededLevel up: 12%, 1 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 63

Location: North Carolina

PostingWorld is on a distinguished road
Send a message via AIM to PostingWorld Send a message via MSN to PostingWorld Send a message via Yahoo to PostingWorld  
 
ads on vbulletin

Ok i dont think its possible, but I'm going to ask anyway. Here goes.

http://www.postingworld.net/

If you look on the site, I need to add an ad under the category "Entertainment Talk". Only under that one.

Is this possible? if so how.
__________________
Ryan Douglas Poarch
iPotweb.com - Web hosting with a purpose!
PostingWorld.net - General Dicussion Forums
AIM: iPotweb / Yahoo: rxmlp / msn: zeusryan@mchsi.com
Reply With Quote
Old 02-09-2006, 01:21 AM   #2

PostingWorld's Avatar

Title: Member

Points: 1,849, Level: 11Points: 1,849, Level: 11Points: 1,849, Level: 11
Level up: 12%, 1 Points neededLevel up: 12%, 1 Points neededLevel up: 12%, 1 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 63

Location: North Carolina

PostingWorld is on a distinguished road
Send a message via AIM to PostingWorld Send a message via MSN to PostingWorld Send a message via Yahoo to PostingWorld  
 
I've been messing with the vbulletin codes, and I don't think its possible. I'm hoping someone can prove me wrong.
__________________
Ryan Douglas Poarch
iPotweb.com - Web hosting with a purpose!
PostingWorld.net - General Dicussion Forums
AIM: iPotweb / Yahoo: rxmlp / msn: zeusryan@mchsi.com
Reply With Quote
Old 02-09-2006, 01:29 AM   #3

Adam's Avatar

Title: Chadwick ≥ Cadence

Points: 9,488, Level: 29Points: 9,488, Level: 29Points: 9,488, Level: 29
Level up: 30%, 462 Points neededLevel up: 30%, 462 Points neededLevel up: 30%, 462 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 1,636

Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
 
 
Add a forum with the description of the code and call it google ad. Or there might be a hack.
__________________
Reply With Quote
Old 02-09-2006, 05:17 AM   #4

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
I'm not 100% sure, but you might want to try this...go to the Forum Manager and put your HTML code into the title field

You also might want to play around with the Description, Forum Link, and Act as a Forum settings...but first go with Title
__________________
...some super-sweet signature
Reply With Quote
Old 02-09-2006, 08:27 AM   #5

Title: Apprentice

Points: 3,151, Level: 16Points: 3,151, Level: 16Points: 3,151, Level: 16
Level up: 17%, 299 Points neededLevel up: 17%, 299 Points neededLevel up: 17%, 299 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 450

Domainer Zone has a spectacular aura aboutDomainer Zone has a spectacular aura about
 
 
When you use a PHP script that isn't encoded, everything is possible.

ForumHome spits out some HTML and a variable, $forumbits, which contains all the forums in the proper order. If you follow that variable back, it was created in the construct_forum_bit function inside functions_forumlist.php. That function is recursive and is called for each forum and subforum. $forumbits starts as nothing, "". Each forum then makes a call to fetch_templates inside the functions.php file which gets the template and concatenates it to $forumbits. When all this is done, $forumbits holds the template info for every forum.

You could play around with the fetch_templates file to check for the appropriate spot to insert the ads, but I think it's going to be a bit tough. That function is a generic function and is called for every single template. You would first need to check that the call is for the forum display and then check to see if it's the right forum. What I would do is change the template. It's smart enough to handle if statements, even though they are funny looking.

In your database, you should see a template table. For me, forumhome_forumbit_level1_nopost is templateid 137 and forumhome_forumbit_level2_post is 140. I am pretty sure these are the only two you need to worry about, but you might need to add something to forumhome_forumbit_level2_nopost as well.

This template spits out the row, including the link. The link includes the id, so you know that you have access to that variable. Depending on where exactly you want the ads, right below the last forum in the entertainment section, or between the entertainment section and the one beneath it, you only need to edit one of the two templates.

If you want it below the last forum, edit the level2 template. Add an if statement to check the id and if it's the last, print out the ads. If you want it between the two, I would add it above the forum category, so edit the level1 template to check the id and if it's the one above the entertainment category, add the adds to the top. This would then place them inbetween the two.

The problem with this DIY hacks is that you don't actually create an admin section for youself. If you are going to use phpAdsNew, it doesn't matter because it handles all the ads. If you want to add other ads or change them without going through phpAdsNew, you have to always edit this template. You might want to set up a javascript file that prints the ads, so you can just modify that file, or if you feel like it, add a vBulletin variable and then define the variable somewhere else. That would let you just modify that variable to change the ads and you can even go as far as to have something in the admin section to set that variable. Just make sure that you give the template access to it.
Reply With Quote
Old 02-09-2006, 05:18 PM   #6

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
Great info, DZ, it's definitely a handful, but something worth trying out...but I thought the forumbit level 1's and 2's were inside the forums themselves, not the index? I just thought that they were different layers of forums....ie: forum and sub-forum...I'm sure I'm wrong though since I've never really dug deep into those templates
__________________
...some super-sweet signature
Reply With Quote
Old 02-09-2006, 05:25 PM   #7

Title: Apprentice

Points: 3,151, Level: 16Points: 3,151, Level: 16Points: 3,151, Level: 16
Level up: 17%, 299 Points neededLevel up: 17%, 299 Points neededLevel up: 17%, 299 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 450

Domainer Zone has a spectacular aura aboutDomainer Zone has a spectacular aura about
 
 
If you look at the forumhome template, it prints out $forumbits. That is level1 and 2. I tried adding a fake little ad block to the level1 and 2 templates and they both worked. DomainerZone.com doesn't have a gap between the forum headings and the forums, so they both looked exactly the same, but I could get a box that said "My Ads Would Go Here...If I had Any" to show up under any forum I wanted.
Reply With Quote
Old 02-09-2006, 05:32 PM   #8

PostingWorld's Avatar

Title: Member

Points: 1,849, Level: 11Points: 1,849, Level: 11Points: 1,849, Level: 11
Level up: 12%, 1 Points neededLevel up: 12%, 1 Points neededLevel up: 12%, 1 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 63

Location: North Carolina

PostingWorld is on a distinguished road
Send a message via AIM to PostingWorld Send a message via MSN to PostingWorld Send a message via Yahoo to PostingWorld  
 
Can you contact me on AIM Domainer Zone?
__________________
Ryan Douglas Poarch
iPotweb.com - Web hosting with a purpose!
PostingWorld.net - General Dicussion Forums
AIM: iPotweb / Yahoo: rxmlp / msn: zeusryan@mchsi.com
Reply With Quote
Old 02-09-2006, 05:37 PM   #9

Title: Apprentice

Points: 3,151, Level: 16Points: 3,151, Level: 16Points: 3,151, Level: 16
Level up: 17%, 299 Points neededLevel up: 17%, 299 Points neededLevel up: 17%, 299 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 450

Domainer Zone has a spectacular aura aboutDomainer Zone has a spectacular aura about
 
 
I'm getting ready to leave, but I should be back in a few hours. I can help you set this up then.
Reply With Quote
Old 02-09-2006, 06:34 PM   #10

PostingWorld's Avatar

Title: Member

Points: 1,849, Level: 11Points: 1,849, Level: 11Points: 1,849, Level: 11
Level up: 12%, 1 Points neededLevel up: 12%, 1 Points neededLevel up: 12%, 1 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jan 2006

Posts: 63

Location: North Carolina

PostingWorld is on a distinguished road
Send a message via AIM to PostingWorld Send a message via MSN to PostingWorld Send a message via Yahoo to PostingWorld  
 
Ok Thank you!
__________________
Ryan Douglas Poarch
iPotweb.com - Web hosting with a purpose!
PostingWorld.net - General Dicussion Forums
AIM: iPotweb / Yahoo: rxmlp / msn: zeusryan@mchsi.com
Reply With Quote
Reply



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

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
[How-To] Optimize vBulletin To Reduce Your Server Load BamaStangGuy vBulletin 17 09-08-2008 12:08 AM
[How-To] Optimize vBulletin To Reduce Your Server Load BamaStangGuy Tutorials 11 04-01-2008 03:54 AM
Building Forums with VBulletin miner vBulletin 12 02-16-2006 04:42 AM
vBulletin Guide - Book Ryan vBulletin 1 12-21-2005 06:36 AM
vBulletin 3.08 Released miner vBulletin 1 09-02-2005 07:34 AM

AdminFusion

All times are GMT +1. The time now is 07:03 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved


From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72