vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   pages? (https://vborg.vbsupport.ru/showthread.php?t=316253)

CarpCharacin 12-27-2014 11:22 PM

pages?
 
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:

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

Quote:

Originally Posted by ozzy47 (Post 2529300)
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. :)


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01162 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete