Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 01-05-2012, 04:04 PM
chq chq is offline
 
Join Date: Dec 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default making cms the homepage

I am having problems with making the cms page my home pages instead of the forums page for site crimeshq.com

Settings:

URL of Forum is still set to http://crimeshq.com/forums
Always use Forum URL as base path is set to NO
CMS Component URL is set to http://www.crimeshq.com
Homepage URL is set to http://crimeshq.com

Content Management Settings:
Default Page is set to 1-Index (I left it as it was when I installed vBulletin)
Point CMS default page to index.php is set to YES
Site tab URL is set to ../


I have attempted to follow the following instructions from the vBulletin online manual for Content Management -CMR URL, Optional URL for your CMS

If this is specified it will override the Forum URL setting for CMS pages. You may specify an absolute URL or a URL relative to your Forum URL

Examples:
http://www.example.com
http://www.example.com/cms
../
Note:
This may be specified to change the base URL for all CMS links. This is useful if you run the CMS from a location that differs from your Forum URL.

You may specify an absolute URL such as http://www.example.com/, or a URL relative to your Forum URL. If your forum is in /forum and your CMS is at the root of your webserver then you may use ../. If you use an absolute URL the option Always use Forum URL as Base Path will have no effect for CMS pages, and the CMS url specified will always be used. If you wish to run your CMS from a location other than your Forum URL then you must ensure that the appropriate entry scripts have been set up.

Create the following files. Be sure to replace 'your_forum_path' with the actual path to your vBulletin installation. For example, if your CMS will be at http://www.example.com/ and your forums at http://www.example.com/forums/, then replace 'your_forum_path' with 'forums'.

content.php
<?php
define(VB_RELATIVE_PATH, 'your_forum_path');
chdir('./' . VB_RELATIVE_PATH);
require('content.php');
editor.php
<?php
define(VB_RELATIVE_PATH, 'your_forum_path');
chdir('./' . VB_RELATIVE_PATH);
require('editor.php');
list.php
<?php
define(VB_RELATIVE_PATH, 'your_forum_path');
chdir('./' . VB_RELATIVE_PATH);
require('list.php');
widget.php
<?php
define(VB_RELATIVE_PATH, 'your_forum_path');
chdir('./' . VB_RELATIVE_PATH);
require('widget.php');
index.php PLEASE NOTE: The index.php file uses require('content.php'), not require('index.php')
<?php
define(VB_RELATIVE_PATH, 'your_forum_path');
chdir('./' . VB_RELATIVE_PATH);
require('content.php');
Default Page
If a user visits your CMS site without specifying a page, they will view this page. It should consist of the page number, dash, then the seo url you assigned that page. For example: '1-home-page'. An incorrect value here can prevent CMS from functioning.
CMS Name
Name of your CMS. This appears in the title of every CMS page.
Site Tab URL
The URL used by the CMS Tab in the main navigation menu.
Associated Forum for Comments
The forum to use for CMS item comment threads. Note, if you change this value to a different Forum then you will need to manually move any existing threads to the new forum.



I have never done anything like this before so have no idea about editing files etc, anyway I tried inserting the codes into the 5 files it mentions but had no idea where to put them, after uploading them I logged onto http://crimeshq.com (there is nothing there) then tried http://crimeshq.com/forums and received the following error messages

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/crimeshq/public_html/forums/index.php on line 2

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/crimeshq/public_html/forums/content.php on line 3 (received this error about 100 times

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/crimeshq/


I have since restored the original files without amendments to my public_html file in forums


I found a similar post on vbulletin.com forum and one user suggested the following only;

traen
Fri 1st Jul '11, 2:40am
To set cms as root, this is all I did.

Login to admin control panel>Settings>Options>Content Management>Site Tab URL>Set to "./" without the quotations. Click save.

Done.

Edit to add: I also have Point CMS default to index.php set to no if that helps.


Anyone have any suggestions on how I do this? If I have to re-insert the php codes back into the 5 files where in the files do I place them?

Many Thanks in advance or anyones help

--------------- Added [DATE]1325833212[/DATE] at [TIME]1325833212[/TIME] ---------------

All ok now, my hosting provider fixed it for me
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:53 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.03187 seconds
  • Memory Usage 2,154KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete