Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
custom page wrapper Details »»
custom page wrapper
Version: 0.1, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 07-13-2005 Last Update: Never Installs: 74
Uses Plugins
Re-useable Code  
No support by the author.

This lets you create a vBulletin page by just creating a template.

Installation
- Upload "custom page wrapper 0.1.xml" plugin and activate it
- Create a "page_test" template with anything in it
- Test it out with "index.php?page=test"

To create pages, add a template that begins with "page_" in the title. You can change that prefix editing the plugin.

Enjoy


PHP Code:
if ( !empty($_REQUEST['page']) ) {
    
$template_prefix 'page_';
    
$page_template $template_prefix $_REQUEST['page'];
    
$page_title ucwordsstr_replace("_"" "$_REQUEST['page']) );
    
$navbits = array();
    
$navbits[] = $page_title;
    
$navbits construct_navbits($navbits);
    eval(
'$navbar = "' fetch_template('navbar') . '";');
    eval(
'$HTML = "' fetch_template($page_template) . '";');
    if (empty(
$HTML)) {
        eval(
standard_error("No such page."));
    }
    eval(
'print_output("' fetch_template('GENERIC_SHELL') . '");');

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-15-2005, 01:27 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe

Code:
 $globaltemplates = array_merge($globaltemplates, array( $template_prefix . $_REQUEST[page] ));
Reply With Quote
  #13  
Old 07-15-2005, 01:36 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh I figured it out

PHP Code:
if (THIS_SCRIPT == 'pages')
{
global 
$globaltemplates;

$globaltemplates array_merge($globaltemplates, array('page_' $_REQUEST[page]));

Place that in the cache_template hook location

Whats this you were on about to do with a blank page?

Satan
Reply With Quote
  #14  
Old 07-15-2005, 01:38 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this for 3.5

https://vborg.vbsupport.ru/showthread.php?t=62164
Reply With Quote
  #15  
Old 07-15-2005, 01:40 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see - I've already got the file setup and ready to go

If you don't mind me releasing it as an Extension / Code Mod then I shall

Satan
Reply With Quote
  #16  
Old 07-15-2005, 12:12 PM
CMilne CMilne is offline
 
Join Date: Oct 2004
Location: Melbourne, Australia
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

VERY Cool! Much appreciated, I need a few extra pages :P

Edit: This could do WONDERS if used with custom code added in via the hooks system :P HUZZAH!

Brilliant.
Reply With Quote
  #17  
Old 07-17-2005, 11:37 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is the hack which i told u on it before sooo i think u can make it

https://vborg.vbsupport.ru/showthread.php?t=92314
Reply With Quote
  #18  
Old 07-18-2005, 09:11 PM
SouthernTn SouthernTn is offline
 
Join Date: Jul 2005
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Im interested in installing but will this work with the Mod_Rewrite 3.5 , will the pages work with that or will it still have .php?= and etc.
Reply With Quote
  #19  
Old 07-19-2005, 12:03 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SouthernTn
Hey Im interested in installing but will this work with the Mod_Rewrite 3.5 , will the pages work with that or will it still have .php?= and etc.
don't know, im not familiar with mod_rewrite, sorry
Reply With Quote
  #20  
Old 09-09-2005, 01:54 AM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont get it...are there any pics for stupid people like myself?
Reply With Quote
  #21  
Old 09-09-2005, 07:06 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jesus likes pie
I dont get it...are there any pics for stupid people like myself?
well say you wanted to make a "forum rules" page, it would look like this https://vborg.vbsupport.ru/showthrea...threadid=91645 , of course you would need to do the html
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04874 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete