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

Reply
 
Thread Tools Display Modes
  #21  
Old 07-26-2001, 01:24 AM
mferrell
Guest
 
Posts: n/a
Default

No matter what I try, I get this damn message:

Warning: Failed opening './admin/config.php3' for inclusion (include_path='') in ./bulletinboard/global.php3 on line 66
Reply With Quote
  #22  
Old 07-26-2001, 07:55 AM
jvv jvv is offline
 
Join Date: Jan 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try going to that line and change the path to your full path.
ie. change ./admin/config.php to /home/username/public_html/bb/admin/config.php or whatever it is on your server. That worked for me.
Reply With Quote
  #23  
Old 07-26-2001, 01:27 PM
mferrell
Guest
 
Posts: n/a
Default

Awesome ... thanks!
Reply With Quote
  #24  
Old 07-27-2001, 12:16 AM
mferrell
Guest
 
Posts: n/a
Default

This is driving me nuts! I stopped the warning message about the config.php, but now I'm getting something about the headers already being sent.

I use a template system to build my pages (one centrally located file with the header and footer). I'm trying to add your hack as an include on this template file. This is the newest warning I'm getting:

Warning: Cannot add header information - headers already sent by (output started at include/template.inc:143) in /htdocs/bulletinboard/admin/functions.php3 on line 1187

Is there a way to put the <? require("global.php3"); ?> at the top of my template, and then use your hack later as an include on the page? When I try this I get the login boxes and they work fine (I can log onto the forum), but I never see the welcome message.

Any guidance?

Thanks.
Reply With Quote
  #25  
Old 07-28-2001, 03:23 AM
mferrell
Guest
 
Posts: n/a
Default

This is an addition to my post above.

I have two functions called my_siteTop and my_siteBottom, which draw the header and footer for every one of my pages on my site. I believe this is the root of my problem with getting the global.php and login script to work correctly.

Here's what it looks like now:

<?
$path= "c:/nusphere/apache/htdocs";
$baseref= "http://localhost/";

require("$path/bulletinboard/global.php3");
function my_siteTop (
$page= "",
$title= "",
$description= "",
$keywords= "",
$author= "",
$baseref= "http://localhost/",
$path= "/www/webdirectorylocation"
)
{
global $path;
global $baseref;
include("$path/include/site_top.php3");
}

function my_siteBottom (
$path= "/www/webdirectorylocation"
)
{
global $path;
include("$path/include/site_bottom.php3");
}
?>
Reply With Quote
  #26  
Old 07-28-2001, 02:27 PM
mferrell
Guest
 
Posts: n/a
Default

Got it working.
Reply With Quote
  #27  
Old 04-09-2003, 10:33 AM
ohspot ohspot is offline
 
Join Date: Apr 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the same message about headers already being sent, anyone come up with a fix for this?

Thanks
Sean
Reply With Quote
  #28  
Old 06-29-2003, 06:54 AM
M4g!k M4g!k is offline
 
Join Date: Jun 2003
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So......can someone please fill out what we need to put on our sites?

I still dont know.
Reply With Quote
  #29  
Old 07-15-2003, 07:39 AM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bring up an old thread, but can someone go to www.dumbfounded.net and see what I want to do; I basically want to do the same general idea of this, but the login boxes are at the bottom of the site; I want the welcome guest or $username to be up in the top bar where the day/date is, except aligned to the left side. Can anyone help me out?

Thanks.
Reply With Quote
  #30  
Old 07-15-2003, 08:23 AM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also is the require suppose to be a path to the global.php file or the config.php because when i did it as the global.php I was getting errors, even with the full path, but when I did the full path of config.php I didn't get errors, but nothing showed up at all.
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 08:44 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.04172 seconds
  • Memory Usage 2,235KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_onlinestatus
  • (10)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete