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

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 08-04-2007, 01:01 AM
Eddymvp Eddymvp is offline
 
Join Date: Jun 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with custom Page

I had my website running together with Vbulletin and the way I did this was creating a page and including global.php file and I would have access to all the functions in VBulletin.

However all the sudden everything stopped working and its saying that I do not have permission to view that page.

Here is what I had

this is the index page.

PHP Code:
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
define('MVP_PORTAL'true);
chdir('path/to/forum/');
require_once(
'./global.php'); 
// Content of the page would go here" 

on the global.php file I inserted the following code.
PHP Code:

if (defined('MVP_PORTAL'))
{
 
$phrasegroups array_merge($phrasegroups
  array(
   
'calendar'
   
'adv_portal',
   
'postbit'
  
)
 );
 
 
 
 
$specialtemplates array_merge($specialtemplates
  array(   
   
'mvp_standing',
   
'mvp_news')
 );
 
 
$globaltemplates array_merge($globaltemplates,
  array(
   
'mvp_portal',
   
'mvp_news',
   
'mvp_portal_footer'
 
  
)
 );

This worked for almost 3 years and all of the sudden it stops working and I haven't changed any of the code.
  #2  
Old 08-04-2007, 03:33 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you be a little more descriptive? What exactly is the error given? Are you returned any PHP errors?
  #3  
Old 08-04-2007, 04:25 AM
Eddymvp Eddymvp is offline
 
Join Date: Jun 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kirk Y View Post
Could you be a little more descriptive? What exactly is the error given? Are you returned any PHP errors?
Here is the error that i'm getting.

Quote:
username, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
  #4  
Old 08-04-2007, 04:49 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would you mind posting up the entire index.php file?
  #5  
Old 08-04-2007, 11:09 AM
Eddymvp Eddymvp is offline
 
Join Date: Jun 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here it its. I took it off the vba_cms and I had it working for 3 years and something must had changed on my server that all of the sudden it stops working.

Here is the index.php file

PHP Code:
<?php


error_reporting
(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
//define('THIS_SCRIPT', 'mvp_index');
define('MVP_PORTAL'true);

 
chdir('/path/to/forums');

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

require_once('./global.php'); 


// ################################## do ALL Pages main page ################################################

 
if (function_exists($_REQUEST['do']))
{
    
print_mvp_output($_REQUEST['do']);
    
}
else
{

    
print_portal_output($home);
}

?>
My host upgraded the server from php4 to php5 with the security updates. Once they did that my website powered pages stopped working.
  #6  
Old 08-04-2007, 11:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eddymvp,

You are currently showing up as unlicensed.

To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (vB-Germany users click here, vB-Chinese users click here) and enter your email address, to show us that you are licensed. You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

The update of your account can take up to one hour.

Thank you.
Closed Thread


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:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03917 seconds
  • Memory Usage 2,218KB
  • 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
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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