Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding new pages Details »»
Adding new pages
Version: 1.00, by ultimatearco ultimatearco is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.4 Rating:
Released: 03-01-2010 Last Update: Never Installs: 22
Template Edits
Additional Files Translations Is in Beta Stage  
No support by the author.

----------------
This was moved to articles, in my opinion INCORRECT this is original and by me!
----------------



----------------
Installed! I don't work for nothing; please press installed if you used my addon; I won't support you either if you have a problem then!
----------------

Hello all,
In this tutorial i'm going to show you how to make extra pages
Note:

Go into your Admincp, klick Styles & Templates, klick Style Manager, klick your template that your'e working with, hover your mouse to the dropdown menu and klick, klick Add Template

Give your template a name:
(like gallerytemplate)
and add this code to it:
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
 <td class="tcat">Tutorials</td>
</tr>
<tr>
 <td class="alt1">
<!-- html code here -->
PUT THE HTML CODE YOU WANT HERE
<!-- end of html code -->
</td>
</tr>
</table>
$footer
</body>
</html>
Search for:
Code:
<!-- html code here -->
and add some stuff like:
HTML Code:
<p>Hello, this is my gallery</p><br>
<img src="yourimages" border="0"></img><br>
<p>^^My favorite picture^^
You can allways do anything else

Now save it, were nothing with that
Now we are going to make the PHP file
Open notepad
add this code in it
PHP Code:
<?php 
 
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE); 
 
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1); 
define('THIS_SCRIPT''privacy'); // change this depending on your filename 
 
// ################### 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( 
    
'privacytemplate'
); 
 
// pre-cache templates used by specific actions 
$actiontemplates = array( 
 
); 
 
// ######################### REQUIRE BACK-END ############################ 
require_once('./global.php'); 
 
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
 
$navbits = array(); 
$navbits[$parent] = 'name'
 
$navbits construct_navbits($navbits); 
eval(
'$navbar = "' fetch_template('navbar') . '";'); 
eval(
'print_output("' fetch_template('templatename') . '");'); 
 
?>
Note: Allways put this on the root directory of the forum otherwise you will have problems with the images
Find:
PHP Code:
define('THIS_SCRIPT''scriptname'); // change this depending on your filename 
Change privacy (keep the ' ') to the name of your file (without .php after it)

Find:
PHP Code:
$navbits[$parent] = 'name'
Change name (keep the ' ') to whatever you want

Find:
PHP Code:
eval('print_output("' fetch_template('templatename') . '");'); 
Change templatename (keep the ' ') to the template you just made

Save it to whatever you want (Make sure its the same name as in edit 1 (scriptname) and with .php after it)

Upload it to your webserver and your'e done!

If you want it to appear it into your navbar i suggest to:
Use my Navbar Edit mod (for all vB versions) (Manual code changes)
Or to download the double navigation bar mod

Show Your Support

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

Comments
  #12  
Old 06-01-2010, 12:33 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
please press installed if you used my addon; I won't support you either if you have a problem then!
You won't offer support if we press install?
Reply With Quote
  #13  
Old 06-11-2010, 03:37 PM
ultimatearco ultimatearco is offline
 
Join Date: Jul 2008
Location: Belgium
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Morrus View Post
You won't offer support if we press install?
If you don't we won't provide support
Reply With Quote
  #14  
Old 06-11-2010, 04:28 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

isn't this the exact same as this article from 2004?
Reply With Quote
  #15  
Old 06-11-2010, 07:39 PM
marshal_ramdev marshal_ramdev is offline
 
Join Date: Mar 2009
Location: Ludhiana
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah same question .. what's the difference ?
Reply With Quote
  #16  
Old 06-12-2010, 07:07 AM
RedDevil's Avatar
RedDevil RedDevil is offline
 
Join Date: Mar 2008
Location: Cumbria, UK
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would you add view permissions based on usergroup to this. or mainly no guest viewing permission.

EDIT: its ok sorted the problem
Reply With Quote
  #17  
Old 06-13-2010, 01:41 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, but I have a question..
I'm having problems creating my custom page, I'm trying to add tables with the page?
see picture.
Attached Images
File Type: gif page.gif (91.7 KB, 0 views)
Reply With Quote
  #18  
Old 06-22-2010, 12:53 PM
ultimatearco ultimatearco is offline
 
Join Date: Jul 2008
Location: Belgium
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oldfan View Post
thanks, but I have a question..
I'm having problems creating my custom page, I'm trying to add tables with the page?
see picture.
Just do a line break and it'll work fine
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 06:18 AM.


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.04134 seconds
  • Memory Usage 2,323KB
  • 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_html
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete