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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2011, 05:55 PM
jefferis jefferis is offline
 
Join Date: Dec 2006
Location: Butler, PA
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Moving CMS up to parent/root?

Hi folks, I posted a question in programming, but this may be more appropriate here:

In version 4.1.5, there are instructions in the index.php file for changing the location of the CMS page, and I've followed them as best I can. I placed the index.php at the root, one level up from my forums. I uncommented the line in the index file to read:
Code:
define('VB_RELATIVE_PATH', 'vBforum');
which is the location of our forums.

Cookies are set to /
In the URL settings in Admin I set it to our root: http://www.igotaevo.com
As far as I can tell, there is no need to do rewrites for urls in the latest version or to upload the vb_dir.php file as in the past.... it doesn't say to to that in the index instructions....
Anyone have a current tutorial or idea on what might be going wrong?

the error I'm getting is:
Code:
 Parse error: syntax error, unexpected T_STRING in /home/igotaevo/public_html/index.php on line 1
Reply With Quote
  #2  
Old 09-09-2011, 06:15 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upload what's in the .zip file i.e.

do_not_upload/cms/

Upload all of those files into your root and yes, modify vb_dir.php and upload it as well.

When modifying vb_dir.php you want your path i.e.

PHP Code:
<?php

//If you installed the cms directly as a subdirectory of 
//vbulletin (www.example.com/cms) then you don't need to change this
//file.  Otherwise comment out the first line, uncomment the second line,
//and change the value to be the actual path to the vbulletin installation on
//server.  

//$vb_dir = realpath(dirname(__FILE__) . '/..');
$vb_dir "/home/mynamehere/public_html/forums";
?>
Reply With Quote
  #3  
Old 09-09-2011, 07:20 PM
jefferis jefferis is offline
 
Join Date: Dec 2006
Location: Butler, PA
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, thanks for the input. I see a conflict though in the CMS do not upload files. There is an index file inside that CMS directory that is different from the index.php file in the forums directory. The instructions say to move the index.php file inside the forums folder up to the parent folder. Are these files inside the CMS directory to be loaded up into their own directory as root/CMS/files
or to be removed from the directory to root/files? IOW, the index inside CMS folder is not a complete index page...

Jeff

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

BTW, if I move the entire CMS directory to root, the CMS home pages shows properly at the http://www.igotaevo.com/cms url, but the index.php at the root level still produces that php parse syntax error. It seems there are conflicting instructions in the index.php page which state
Quote:
* If you want to move this file to the root of your website, change this
* line to your vBulletin directory and uncomment it (delete the //).
*
* For example, if vBulletin is installed in '/forum' the line should
If it is not necessary to move this page to the root, I'm not sure why the instructions seem to say you can/should do that...

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

I removed the index.php from the root folder, deleted the CMS folder at root and reset locations in Admin >Settings>Url back to original settings and now we cannot stay logged in if we leave the forums. We're getting this error:

Invalid Redirect URL (http://www.igotaevo.com/vBforum/forum.php)
But that IS the URL of our forum page...
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 02:27 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.03727 seconds
  • Memory Usage 2,186KB
  • 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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (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)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete