![]() |
Quote:
|
I am getting these errors at the bottom of my page... any ideas why? I am able to get it to log in and show detail find. The only problem i am running into is this.
Code:
Warning: mysql_query(): 7 is not a valid MySQL-Link resource in /home/guppy/public_html/forums/includes/db_mysql.php on line 212 |
someone help please =)
Im getting this error: Code:
Unable to add cookies, header already sent. top page Code:
<? Code:
<? |
ok everything goes alright except..when i add
<?php chdir("forum/"); require('./global.php'); chdir("../); ?> to my index.php page of my non vb page it displays the forum login (not the <? if ($bbuserinfo['userid']!=0) { $username=$bbuserinfo['username']; print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>"); } else { ?> <form action='/forum/login.php' method='post' onsubmit='md5hash(vb_login_password,vb_login_md5pa ssword)'> <script type='text/javascript' src='/forum/clientscript/vbulletin_md5.js'></script> <span class="sectionheader">Username:</span> <input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username') this.value = '';' /><br> <span class="sectionheader">Password: </span> <input type='password' class='button' name='vb_login_password' size='15' accesskey='p' tabindex='2' /><br> <input type='checkbox' name='cookieuser' value='1' tabindex='3' id='cb_cookieuser_navbar' accesskey='c' checked='checked' /><span class='sectionheader'>Remember Me</span><br> <input name="submit" type='submit' class='button' accesskey='s' tabindex='4' title='Log In' value='Log In' /> <input type='hidden' name='do' value='login' /> <input type='hidden' name='forceredirect' value='1' /> <input type='hidden' name='vb_login_md5password' /> </form> <? } ?> ) but the actual login page for the index.php of the forum (unregistered login page) and it doesn't show any the original html of non-vb index page. can someone help me with that? plz |
For those that where looking for the script to redirect you to the forums after login:
PHP Code:
|
Quote:
<input type='hidden' name='do' value='login' /> <input type='hidden' name='forceredirect' value='1' /> <input type='hidden' name='vb_login_md5password' /> <input type="hidden" name="url" value="http://localhost/vb2"/> |
haha was thinking in a one track mind yesterday apparently... just shows how there are many ways to do things.
:squareeyed: |
<?php
require("http://www.url.com/forum/global.php"); ?> <html> <head> </head> <body> <? if ($bbuserinfo['userid']!=0) { $username=$bbuserinfo['username']; print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>"); } else { ?> <form action='http://www.url.com/forum/login.php' method='post' onsubmit='md5hash(vb_login_password,vb_login_md5pa ssword)'> <script type='text/javascript' src='http://www.url.com/forum/clientscript/vbulletin_md5.js'></script> <span class="sectionheader">Username:</span> <input type="text" class="button" name="vb_login_username" id="navbar_username" size="15" accesskey="u" tabindex="1" onfocus="if (this.value == 'User Name') this.value = '';" /><br> <span class="sectionheader">Password: </span> <input type='password' class='button' name='vb_login_password' size='15' accesskey='p' tabindex='2' /><br> <input type='checkbox' name='cookieuser' value='1' tabindex='3' id='cb_cookieuser_navbar' accesskey='c' checked='checked' /><span class='sectionheader'>Remember Me</span><br> <input name="submit" type='submit' class='button' accesskey='s' tabindex='4' title='Log In' value='Log In' /> <input type='hidden' name='do' value='login' /> <input type='hidden' name='forceredirect' value='1' /> <input type='hidden' name='vb_login_md5password' /> <input type="hidden" name="url" value="http://www.url.com/forum"/> </form> <? } ?> </body> </html> the above works for me but now i have another problem...i need it to remember the person that logged in on the non vb page. anybody got any suggestions? |
followed the instructions
Code:
chdir("/home/&&&&&&/public_html/forums/"); Code:
Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php on line 16 vb 3.0.7 |
I have a problem, when I'm logged in, it works fine.
When I'm logged out, I get Code:
Warning: array_keys(): The first argument should be an array in /includes/functions.php on line 2128 |
All times are GMT. The time now is 04:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|