![]() |
ok ok i have a beta version of my site and its working like a charm, with a lot of another functions running smooth (avatar, new pms, etc) but in my real site.. its not working!
i get this error. Code:
Fatal error: Call to a member function on a non-object in /xxxx/foros/includes/functions.php on line 922 Code:
Fatal error: Call to a member function on a non-object in /xxxx/foros/includes/sessions.php on line 72 Code:
$user = $DB_site->query_first(" Code:
$DB_site->shutdown_query(" The beta version of the site is vb3.0.0 (working) and real is vb3.0.3 (not working) very strange. Its kinda urgent, please help! thanks in advance. |
This works perfectly fine for me on http://www.taiteki.net - Check it out if ya don't believe me :p
|
HI, I got a problem like
"Unable to add cookies, header already sent. File: /usr/local/apache/htdocs/dev/i2-042804/test.php Line: 2" Pls any one can help me.. Thanks in advance |
Post your PHP code
|
i dont test it with localhost, why??
|
Quote:
|
The creator of this script has NEVER repliedto anyones posts, shouldnt this be removed or something as it is clearly not working or maybe a notice in his post saying that it has bugs.
Just a suggestion :p |
Quote:
I placed this near the top of my index.php file: PHP Code:
PHP Code:
|
Quote:
|
Quote:
If you feel uncomfortable with it in there then put the database information in another file and then just put an include statement in the index.php file. somefile.php: PHP Code:
PHP Code:
|
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 |
To redirect a user back to where he was when he logged in (instead of to the main forum page)...
Find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
|
Hey all, with this script, I have it currently on my site of www.defunction.net
And want to know, is there anyway of adding a link for looged in members to logout? As of yet, I have tried putting an <a href> link in there, but haven't been very sucsessfull. Any help, or advice would be great. |
Bump!
|
I have a problem with the include part at the top of the script... it takes me to the forum index.php instead of my regular homepage!
|
I get a parse error
Unexpected $ in line 170 when line 170 is </html> any ideas on that? |
MCAHill - This works excellent for me. Thank you so much for posting this. Solved a lot of my problems.
Question: How do you address the page when you enter a false ID or pass. I can't get it to go back to my homepage. thank you! T.H. |
I was having trouble using this method without generating errors. I found the solution and thought I would share it.
The code at the begining: <?php chdir("forum/"); require('./global.php'); chdir("../"); ?> This can cause problems if your vB uses a different DB since it connects to that DB and then returns but never reconnects to the orginial DB. This cause mysql fetch array errors for me. Add this line after the last chdir: mysql_select_db("your_mainDB_name_goes_here"); Should look like this now: <?php chdir("forum/"); require('./global.php'); chdir("../"); mysql_select_db("your_mainDB_name_goes_here"); ?> Next, make sure you have the same admin user for the forum DB also listed as a user in the main DB will all permissions. If not, create a matching forum admin account in your main DB. This should clear up any issues when using this with 2 DB's. Enjoy! :ninja: |
Hey, I installed this script, and it worked fine on the same domain... but I want this to work on a different domain than what the forum is on.
I have tried changing the directory for it to find the global.php like this: <? chdir("/home/vgcorec/public_html/forum"); require('./global.php'); chdir("/home/xbcore/public_html/"); ?> and I have also tried just running it on the vgcorec site and then using a php include on the xbcore site and it does not work right. It shows the login forms, but it will not detect that you are already logged in if you are. Also, the two sites are on the same server. Please help! :) |
this is great THANKS!! works lovely!
|
any idea how to fix this error i get
this is what the code looks like on my page PHP Code:
Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ross/public_html/login.php on line 11 |
You forgot the closing quotes on the chdir.
|
ok thanks that worked i dont know how i missed that.
ok another problem it dosent direct me to the forum i type in my user info click ok it takes me to the welcom Username screen then i click proceed and it takes me back to my logon script where it says Welcome back, Username! i want it to go to the forum after loging in |
ok i would like to do this but i dont know if it is possible
i have installed the login script on my forum perfectly i want to make my own pages where they have to be logged in to the forum and if there not it will bring up a page like the vb error where it askes u to log in all the pages would be php included. |
Quote:
|
Guys, would it be difficult to add the navbar at the top of the page aswell? Without using templates?
|
Any of you have it up and running in your sites? I would like to see what this looks like.
|
I have it working on www.knickscity.com
|
i've encountered what appears to be a fairly common error, it logs in fine, but still displays the login box once logged in. I'm running 3.5 beta 4 at the moment, and my cookie dir is "/".
Anyone got any ideas? |
Snetty, change $bbuserinfo['foo'] to $vbulletin->userinfo['foo'] for VB 3.5
|
okay, I've installed it, and have the avatar displaying the way I want it, but what can I add to display a default avatar if the user doesn't have an avatar?
|
All times are GMT. The time now is 02: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|