Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-14-2007, 03:53 AM
MTVSlick MTVSlick is offline
 
Join Date: Jan 2007
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default creating a new page VB style

first off no nead to read the red text it is a copy of the Vbadvanced manual pages that i used for this item.



okay I have tried;

Adding Pages
vBadvanced CMPS makes it very easy to add and customize new pages that are completely powered by the CMPS and vBulletin. This section explains all of the different options for adding, editing, and managing these pages.
To add a new vBadvanced CMPS powered page, first log into your Admin CP. Once there, click on the 'Add Page' option listed under your 'vBa CMPS' options in the left frame. This page can be broken down into four main sections.
Section 1: General Page Options
The first section is where you may set the general options for the page, and looks like this:

Page Title

This is simply the title for the page. It will appear in the navbar (except in the case of your 'Home / Default' page, in which only your site's name will appear), and this is what is used to identify the page when you click on 'Edit Pages' under your 'vBa CMPS' options in the Admin CP.

Page Identifier

As the description for the option says, this is what is used to identify the page when linking to it. As an example, if you used 'games' as the identifier for this page, then the link to this page would look something like this:
http://yoursite.com/index.php?page=games
Note: See the Linking to Your New Page section on this page for more info about how to link to your page.

Page Template

If you would like for this page to display a certain vBulletin template, simply enter the name of that template here. If a template is entered here then your "Custom Page Content" module will be used to display the content of that template. Simply leave this field blank if you do not wish to have a custom template on this page.
Note: You must have your 'Custom Page Content' module enabled for this page, otherwise this setting will have no effect.

Custom Style for this Page

With this option you may select to use a specific style for this page. If a style is selected here it will override a user's selected style. If a style is not selected here then the user's selected style will be used.

Section 2: Module Options
The next section of this page is where you may specify which modules will be active on this page and looks like this:

This is where you may specify which modules will appear on this page. If you do not wish for a certain module to appear on this page, simply uncheck the box next to the associated module title. If you would like to disable an entire column on this page, simply un-check all modules that are in that particular column. If you notice that a module is grayed out and you are unable to check or un-check the box (like the 'Buddy List' module in the screen shot above), that is because the module is in-active (see the Adding Modules section of this guide for more information about activating and deactivating modules).

Section 3: Usergroup Access
The third section of this page is where you may specify what usergroups will have access to the page, and looks like this:

To deny a usergroup access, simply un-check the box next to the appropriate usergroup. If you would like to quickly check or un-check all of the usergroups, simply check the "All Yes" checkbox that appears near the top. It will check all usergroups the first time it is clicked, and un-check all checkboxes the second time it is clicked.
Section 4: Advanced Page Options
The last section of this page is where you may set different options for each module and looks like this:
(Note that there are many other options below the first group, but would take up way too much space and bandwidth to try and include a screen shot of them all.)

This section lists every option that is in the 'Default Settings' section of your vBadvanced CMPS options, except for the 'Page Variable' option as this may not be changed on different pages. In this section you may specify a different value for each default setting that will affect only this page. If a setting is not changed then the page will use the default value for that setting.
Please note that the module associated with each setting must be enabled on this page, otherwise the advanced settings will have no effect.
If you wish to revert a setting so that it once again uses the default value, simply check the 'Use Default' checkbox to the right of the option's title. You will also notice that this box will already be checked unless you have specified a different value for this setting.
If you wish to revert all options on this page to it's default setting, simply check the 'All Default' checkbox at the top of the 'Advanced Options' description block and then save the options.


Linking to Your New Page
Now that you have created your new page, all that is left to do is create a link to it. In most cases, the link to your page would look something like this:
http://yoursite.com/index.php?page=pagename

index.php in the above link may be different if you have not changed the default name of your 'cmps_index.php' file, or have named it something other than index.php.
page in the above link may be a different variable if you have changed your 'Page Variable' setting (listed in your Admin CP in the 'Default Settings' section of your 'vBa CMPS' options). If you have changed this setting, then you simply replace 'page' in the URL to what you have changed this setting to.
pagename in the above link should be replaced with the value you entered for the 'Page Identifier' setting when the page was created.


to create a new module page to wrap around my other vB pages (forums/gallery/etc..)


now i did this to join them with the vB layout;
Integrating Other vB Pages & Hacks
We have tried to make it as easy as possible to integrate vBadvanced CMPS with other vBulletin files and hacks. This section covers how to integrate them.


Log into your Admin CP.
Click on the 'Add Page' link listed under your 'vBa CMPS' options in the left frame, and then click on 'Module Page'. This page is what will be used to "wrap" around your forum pages.
Once there, enter a Title and a Page Identifier for your page. You may call these two options whatever you would like, just be sure to make a note of what you used for the 'Page Identifier' option. For this example we are going to use 'include' for both.
You may enable/disable any modules that you would like for this page, with the exception of your 'Custom Page Content' module. This module is what will be used to display the content from the page you are integrating, so it must be active.
Set any additional options that you would like, and then save the page.


Open your /forum/global.php file and look for this code: define('VB_AREA', 'Forum');
Just below that, add this: if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_template.php');
}
(Note that this code may have already been added if you are running a version of vBulletin prior to 3.5.



Next, open your /forum/includes/functions.php file.

If you are running vBulletin 3.5.x or vBulletin 3.6.x, look for this code: if ($vbulletin->options['addtemplatename'])
Or, if you are running vBulletin 3.0.x, look for this code within that file: if ($vboptions['addtemplatename'])
Just Above this code, add: if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP'))
{
define('SKIP_OUTPUT', true);

global $home;

print_portal_output($home, $vartext);
}


Now you will want to open the vBulletin file that you would like to integrate (ex: index.php, showthread.php, etc). In the file, right below the opening <?php tag, you will want to add this code:

define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
Note that if you changed the 'Page Identifier' setting for this page above then you will want to replace 'include' (marked in bold above) to whatever you used for the 'Page Identifier' option.
Also note that you may add this code to your global.php file if you wish to integrate ALL of your vBulletin pages with the CMPS.
Upload the file and you are done.
To start integrating other pages, simply follow steps 6 - 7 with the other files.




the when i add the

"define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');"


I get this error on my forum link;

Fatal error: Call to undefined function: print_portal_output() in /home/guelphsf/public_html/GFV2/forum/includes/functions.php on line 2908

the gallery I can get to work but thats the only one, I can't seem to creat new pages to also do this too, I want other pages such as a models page, events page, basicly I want a module page that i can repeat over and over and juts edit the center modules to put my new content.

If anyone can help me out with this it would be much apreciated, Thank You in advance.

Mark, www.guelphsfinest.com
Reply With Quote
 


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 01:30 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.03256 seconds
  • Memory Usage 2,323KB
  • Queries Executed 13 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete