A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.
Please welcome our newest member, HaMiDoZ!
Spice up your web site with the ultimate community message board solution!
Fake Id'sGet fake Id's made right now!
vBSEOSearch Engine Optimization for your VBulletin Forum.
AdminFusion
»
ads on vbulletin
| | #1 |
| | |||||
| Title: Member Join Date: Jan 2006 Posts: 63 Location: North Carolina ![]() | 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 | ||||
| |
| | #2 |
| | |||||
| Title: Member Join Date: Jan 2006 Posts: 63 Location: North Carolina ![]() | 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 | ||||
| |
| | #3 |
| | #4 |
| | #5 |
| | |||||
|
Title: Apprentice Join Date: Jan 2006 Posts: 450 ![]() ![]() | 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. | ||||
| |
| | #6 |
| | |||||
|
Title: Administrator Join Date: Sep 2005 Posts: 10,246 Location: Athens, GA ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 | ||||
| |
| | #7 |
| | |||||
|
Title: Apprentice Join Date: Jan 2006 Posts: 450 ![]() ![]() | 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. | ||||
| |
| | #8 |
| | |||||
| Title: Member Join Date: Jan 2006 Posts: 63 Location: North Carolina ![]() | 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 | ||||
| |
| | #9 |
| | #10 |
| | |||||
| Title: Member Join Date: Jan 2006 Posts: 63 Location: North Carolina ![]() | 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 | ||||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 |
