vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Displaying username/login fields on non-vB page? (https://vborg.vbsupport.ru/showthread.php?t=22192)

CR- 07-16-2003 02:25 AM

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*

d3nnis 07-16-2003 02:48 AM

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

CR- 07-16-2003 02:58 AM

there's a config in /board/admin/config.php

CR- 07-18-2003 07:40 AM

No one eh? Bleh.. :(

MamiRavi 07-18-2003 05:26 PM

try filling in your exact path..

CR- 07-18-2003 06:07 PM

look at my code...the full path is there.

CR- 07-19-2003 10:21 PM

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.

CR- 07-20-2003 06:51 AM

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.

gt3400 07-24-2003 04:14 PM

Did anyone get this figured out yet?


All times are GMT. The time now is 06:11 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.02097 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete