View Full Version : pages?
CarpCharacin
12-27-2014, 11:22 PM
Is there a mod that will allow me to create static pages?
Lynne
12-28-2014, 01:04 AM
Try a search on "page*" perhaps? Otherwise, there is a tutorial - https://vborg.vbsupport.ru/showthread.php?t=228112
nerbert
12-28-2014, 01:10 AM
Here's how I do it:
Create a file called experiment.php in forum root with this code:
<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 4.2.2 Patch Level 1 -
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2014 vBulletin Solutions Inc. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'experiment');
define('CSRF_PROTECTION', true);
if (in_array($_GET['do'], array('whoposted', 'buddylist', 'getsmilies')))
{
define('NOPMPOPUP', 1);
}
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array();
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$HTML = vB_Template::create('experiment')->render();
$navbits = array();
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template(array());
$templater = vB_Template::create('GENERIC_SHELL');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('HTML', $HTML);
print_output($templater->render());
?>
Now make a new template called "experiment" and fill in the desired html. (see above where $HTML is created from the "experiment" template).
This gets you going. I would have to do some more research for $navbits, which template group should contain "experiment" (action templates , I think).
CarpCharacin
12-28-2014, 01:15 AM
I am looking for a mod that will let me and other admins create pages via the admincp. The other admins do not have root access to the forum.
ozzy47
12-28-2014, 08:41 AM
Perhaps this mod, https://vborg.vbsupport.ru/showthread.php?t=232207
RichieBoy67
12-28-2014, 09:07 AM
I second that Ozzy. I have been using bf easy pages for years. I use it on many sites for error pages, static html pages, etc. Really simple and great way to make some new pages.
ozzy47
12-28-2014, 09:01 PM
Yeah I think that will give the user what he is after. :)
CarpCharacin
12-29-2014, 12:14 AM
it says it only works on vbulletin 4.1. I am running 4.2.2
ozzy47
12-29-2014, 12:17 AM
It still works on 4.2.x, 4.1 was the version the mod was released for, but it is still working.
CarpCharacin
12-29-2014, 12:42 AM
It still works on 4.2.x, 4.1 was the version the mod was released for, but it is still working.
thanks
ozzy47
12-29-2014, 12:44 AM
Not a problem, glad to help. :)
CarpCharacin
12-29-2014, 12:49 AM
How do i disable the pages tab? I do not want t have the tab in the navbar that says pages.
EDIT: I figured it out :)
ozzy47
12-29-2014, 12:59 AM
Glad you figured it out. Remember though, any help you need with any modification you are using, needs to be asked in that mods thread, not in the general forums. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.