vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CMPS_index.php file path problem (https://vborg.vbsupport.ru/showthread.php?t=260130)

BoostedK20 03-09-2011 09:32 PM

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?

BoostedK20 03-13-2011 05:06 AM

Anyone.....

WEBDosser 03-13-2011 07:20 AM

i think i told you somewhere.. but hey.

you need the absolute path something like home/username/public_html/forums

gbox master 03-13-2011 10:47 AM

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 (Post 2171621)
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?


BoostedK20 03-14-2011 04:59 AM

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


All times are GMT. The time now is 12:29 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.00976 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete