The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[LMKWD] Create Your Own Custom Advertising Page Details »» | |||||||||||||||||||||||||||||
[LMKWD] Create Your Own Custom Advertising Page
Developer Last Online: Feb 2021
Brought To You By: Len M. Kaiser Web Design
Author: Len M. Kaiser vBulletin Version: 4.0X (Should pretty much work with all vb versions although this was produced on a vB 4.2.2 site.) DEMO: Be sure to choose the Default Template. DEMO LINK Please do not PM me for support. Please click "Install" to get help with your page. Those who wish not to click "Install" will get no support from me. This little add on is for those who do not have the vBulletin Suite and do not want to be bothered with installing a whole portal for just one advertising page. This mod will help you generate revenue to your website. Suggestions: 1. You will need some idea about editing HTML & CSS in order for this mod to do you any good. I suggest that if you are not familiar with either language that you look HTML & CSS up on W3Schools to help you edit the template. 2. You install the Rotating Banner System to help you place your ads. 3. Be sure to have some ideas about how you want to do your advertising page before getting started. This little mod will work for free banners, adsense, affiliates as well as banners you sell space for. Steps To Create Your Custom Template: 1. Login to your AdminCP. 2. Go to Styles & Templates>Styles Manager & find the skin that you want to add the advertising page to. 3. Click on the drop down on the far right and choose "Add New Template". 4. Place the following information: ----Title Field: custom_advertising ----Template: Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} <title>{vb:raw vboptions.bbtitle}</title> <script type="text/javascript" src="clientscript/vbulletin_read_marker.js?v={vb:raw vboptions.simpleversion}"></script> {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"> <h1>Advertise With Us!</h1> </div> <!--Create your custom ad code below this line //--> <p>Here is where your advertising content would go. In order to edit this you will need some HTML/CSS experience to style it and make it look the way you want. If you are unsure you can get great information off the <a href="http://www.w3schools.com/html/">W3Schools Website</a>!</p> <!-- DO NOT CHANGE BELOW THIS LINE! //--> {vb:raw footer} </body> </html> 5. Click the "Save" button. Creating The advertise.php File: 1. Open a HTML Editor or Notepad (if in Windows). DO NOT use Word Pad or MS Word! 2. Copy and paste the following code into the page: Code:
<?php error_reporting(E_ALL & ~E_NOTICE); define('THIS_SCRIPT', 'custom_advertising'); define('CSRF_PROTECTION', true); define('CSRF_SKIP_LIST', ''); define('VB_ENTRY', 'advertise.php'); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array('custom_advertising', ); $actiontemplates = array(); require_once('./global.php'); $navbar = render_navbar_template(construct_navbits($navbits)); $templater = vB_Template::create('custom_advertising'); $templater->register_page_templates(); $templater->register('navbar', $navbar); print_output($templater->render()); ?> 3. Save the page as "advertise.php". 4. Upload advertise.php to your forum root. Don't know where your forum root is? You can ask your host or find out in your AdminCP by going to Maintenance>View PHP Info - look for DOC_ROOT or DOCUMENT_ROOT for the correct pathway. To upload you will need a FTP client. Now you should be able to view your advertising page by going to http://yourdomain.com/advertise.php. Obviously you will replace "yourdomain" with your domain. Screenshots
Show Your Support
|
Comments |
#2
|
||||
|
||||
Len, is there a reason you did not make this into a mod, instead of a template edit?
Nevermind, I see the end user would have to do template editing anyway, to add the advertising code. |
Благодарность от: | ||
ramesh_umk3 |
#3
|
||||
|
||||
Quote:
Also you are right there would be edits anyways. Of course if I had the knowledge to create the templates within a product then that most likely would work, but that might be awhile. |
#4
|
||||
|
||||
Quote:
Thanks in advance. |
#5
|
||||
|
||||
The Demo link is not rendering anything?!
|
#6
|
||||
|
||||
|
#7
|
||||
|
||||
OK fine.
Let me try the Modification and mark as installed. thanks |
#8
|
||||
|
||||
No problem. Let me know if you still cannot see the advertising demo page.
|
#9
|
||||
|
||||
How is this different than this?
https://vborg.vbsupport.ru/showthread.php?t=228112 |
#10
|
||||
|
||||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|