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 03-09-2011, 09:32 PM
BoostedK20 BoostedK20 is offline
 
Join Date: Mar 2011
Location: NY
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default CMPS_index.php file path problem

I can't figure out the correct path... Here is my code:
Quote:
error_reporting(E_ALL & ~E_NOTICE & ~8192);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = './forums';

// ============================================
// No Further Editing Necessary!
// ============================================

if ($forumpath)
{
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}

chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');

print_portal_output($home);

?>
On my FTP, it has my website url and directly underneath that is my forums folder, so I figured ./forums is correct... if you go to mywebsite.com/forums it will bring up my forums page (which is really www.mywebsite.com/forums/forum.php). Can anyone help me figure this out? Sorry for the annoyance! thank you

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

Really.... No one?

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

.... Anyone?
Reply With Quote
  #2  
Old 03-13-2011, 05:06 AM
BoostedK20 BoostedK20 is offline
 
Join Date: Mar 2011
Location: NY
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone.....
Reply With Quote
  #3  
Old 03-13-2011, 07:20 AM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think i told you somewhere.. but hey.

you need the absolute path something like home/username/public_html/forums
Reply With Quote
  #4  
Old 03-13-2011, 10:47 AM
gbox master gbox master is offline
 
Join Date: Dec 2007
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have a file called forumpath.php i think
upload it in your htdocs
it must be the folder where the forum is located
goto it with your browser
http://yoursite.com/forumpath.php

thats all there is to it to find the path


then you edit this part

Code:
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = 'var/www/home/mysite/whoknows/forum';
just copy and paste the path you get when you use the url




Quote:
Originally Posted by BoostedK20 View Post
I can't figure out the correct path... Here is my code:


On my FTP, it has my website url and directly underneath that is my forums folder, so I figured ./forums is correct... if you go to mywebsite.com/forums it will bring up my forums page (which is really www.mywebsite.com/forums/forum.php). Can anyone help me figure this out? Sorry for the annoyance! thank you

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

Really.... No one?

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

.... Anyone?
Reply With Quote
  #5  
Old 03-14-2011, 04:59 AM
BoostedK20 BoostedK20 is offline
 
Join Date: Mar 2011
Location: NY
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry guys, I have since changed that to the correct forum path. I think my problem is the installation of vBa cmps. I re-installed it but I think my problem is that I have the index.php file in both the forums folder and the root folder... Home page still doesn't show the correct styles
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:09 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.08398 seconds
  • Memory Usage 2,198KB
  • 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)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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