Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #31  
Old 07-16-2003, 02:25 AM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: main(./config.php): failed to open stream: No such file or directory in /home/dumbfoun/public_html/board/admin/global.php on line 96

<p align="left"><b><font color="#FFFFFF" face="Tahoma" size="2">
<?

require("/home/dumbfoun/public_html/board/admin/global.php");

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];

echo"Welcome back, <b>$username</b>";

}

?>
</p>

p align="right">
<table border="0" cellpadding="0" cellspacing="0">
<form action="/home/dumbfoun/public_html/board/admin/member.php" method="post">
<tr>
<td nowrap><font face="verdana,arial,helvetica" size="1" color="white"><b>Not cookied?</b><br>Login with usernam
e and password:</font>
</td>
</tr><tr>
<td nowrap><input type="hidden" name="s" value="769c1aabe4f6207720ccfac822020d95">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="7">
<input type="password" class="bginput" name="password" size="7">
<input type="submit" class="bginput" value="Login!"></td>
</tr>
</form>
</table>
</p>

that's what i have so far and i'm getting the error that's listed above. you can see what i mean by going to www.dumbfounded.net - the php will be in the top bar, the login is below. I'm stuck now and don't know what to do. *shrugs*
Reply With Quote
  #32  
Old 07-16-2003, 02:48 AM
d3nnis d3nnis is offline
 
Join Date: Jun 2003
Location: Singapore
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 12:25 PM CR- said this in Post #31
Warning: main(./config.php): failed to open stream: No such file or directory in /home/dumbfoun/public_html/board/admin/global.php on line 96

<p align="left"><b><font color="#FFFFFF" face="Tahoma" size="2">
<?

require("/home/dumbfoun/public_html/board/admin/global.php");

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];

echo"Welcome back, <b>$username</b>";

}

?>
</p>

p align="right">
<table border="0" cellpadding="0" cellspacing="0">
<form action="/home/dumbfoun/public_html/board/admin/member.php" method="post">
<tr>
<td nowrap><font face="verdana,arial,helvetica" size="1" color="white"><b>Not cookied?</b><br>Login with usernam
e and password:</font>
</td>
</tr><tr>
<td nowrap><input type="hidden" name="s" value="769c1aabe4f6207720ccfac822020d95">
<input type="hidden" name="action" value="login">
<input type="text" class="bginput" name="username" size="7">
<input type="password" class="bginput" name="password" size="7">
<input type="submit" class="bginput" value="Login!"></td>
</tr>
</form>
</table>
</p>

that's what i have so far and i'm getting the error that's listed above. you can see what i mean by going to www.dumbfounded.net - the php will be in the top bar, the login is below. I'm stuck now and don't know what to do. *shrugs*


think your config.php is missing
Reply With Quote
  #33  
Old 07-16-2003, 02:58 AM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there's a config in /board/admin/config.php
Reply With Quote
  #34  
Old 07-18-2003, 07:40 AM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one eh? Bleh..
Reply With Quote
  #35  
Old 07-18-2003, 05:26 PM
MamiRavi MamiRavi is offline
 
Join Date: Jul 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try filling in your exact path..
Reply With Quote
  #36  
Old 07-18-2003, 06:07 PM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look at my code...the full path is there.
Reply With Quote
  #37  
Old 07-19-2003, 10:21 PM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I have now:

PHP Code:
<?
require("/home/dumbfoun/public_html/board/global.php");
echo "<font color=\"#FFFFFF\" face=\"Tahoma\" size=\"2\">\n";
if($bbuserinfo['userid']!=0) {
$username = $bbuserinfo['username'];
$ided =1;
echo "Welcome, $username";
}
else {
echo "Welcome, Guest";
}

echo "</td><td width=50% align=right>";
echo "<p align=right><font color=\"#FFFFFF\" face=\"Tahoma\" size=\"2\">\n";
echo "<nobr>";
echo date("l, M d Y");
echo "</nobr>";
?>
and

PHP Code:
<?
if(!$ided) {
echo "<p align=\"right\">";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<form action=\"/board/admin/member.php\" method=\"post\">";
echo "<tr>";
echo "<td nowrap><font face=\"verdana,arial,helvetica\" size=\"1\" color=\"white\"><b>Not cookied?</b><br>Login with username and password:</font>";
echo "</td>";
echo "</tr><tr>";
echo "<td nowrap><input type=\"hidden\" name=\"s\" value=\"769c1aabe4f6207720ccfac822020d95\">";
echo "<input type=\"hidden\" name=\"action\" value=\"login\">";
echo "<input type=\"text\" class=\"bginput\" name=\"username\" size=\"7\">";
echo "<input type=\"password\" class=\"bginput\" name=\"password\" size=\"7\">";
echo "<input type=\"submit\" class=\"bginput\" value=\"Login!\"></td>";
echo "</tr>";
echo "</form>";
echo "</table>";
echo "</p>";

}
?>
I get Warning: Cannot modify header information - headers already sent by (output started at /home/dumbfoun/public_html/index.php:6) in /home/dumbfoun/public_html/board/admin/functions.php on line 1652

Can anyone help? :/ I've already read https://vborg.vbsupport.ru/showthrea...threadid=47126 - it doesn't really help me distinguish a problem in the least... - all of that code is imbedded in my html in my index.php of my main site btw.
Reply With Quote
  #38  
Old 07-20-2003, 06:51 AM
CR- CR- is offline
 
Join Date: Jul 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this working...for anyone else who does this in the future just put your require line up at the very top of the file and everything will work.

J.
Reply With Quote
  #39  
Old 07-24-2003, 04:14 PM
gt3400 gt3400 is offline
 
Join Date: Jun 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did anyone get this figured out yet?
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:12 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.04405 seconds
  • Memory Usage 2,243KB
  • 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_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete