The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
pages?
Is there a mod that will allow me to create static pages?
|
#2
|
||||
|
||||
Try a search on "page*" perhaps? Otherwise, there is a tutorial - https://vborg.vbsupport.ru/showthread.php?t=228112
|
#3
|
|||
|
|||
Here's how I do it:
Create a file called experiment.php in forum root with this code: 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()); ?> This gets you going. I would have to do some more research for $navbits, which template group should contain "experiment" (action templates , I think). |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
Perhaps this mod, https://vborg.vbsupport.ru/showthread.php?t=232207
|
#6
|
||||
|
||||
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.
|
Благодарность от: | ||
ForceHSS |
#7
|
||||
|
||||
Yeah I think that will give the user what he is after.
|
#8
|
||||
|
||||
it says it only works on vbulletin 4.1. I am running 4.2.2
|
#9
|
||||
|
||||
It still works on 4.2.x, 4.1 was the version the mod was released for, but it is still working.
|
#10
|
||||
|
||||
thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|