The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#92
|
|||
|
|||
Quote:
|
#93
|
|||
|
|||
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 Warning: mysql_error(): 7 is not a valid MySQL-Link resource in /home/guppy/public_html/forums/includes/db_mysql.php on line 357 Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in /home/guppy/public_html/forums/includes/db_mysql.php on line 358 Warning: mysql_query(): 7 is not a valid MySQL-Link resource in /home/guppy/public_html/forums/includes/db_mysql.php on line 212 Warning: mysql_error(): 7 is not a valid MySQL-Link resource in /home/guppy/public_html/forums/includes/db_mysql.php on line 357 Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in /home/guppy/public_html/forums/includes/db_mysql.php on line 358 |
#94
|
|||
|
|||
someone help please =)
Im getting this error: Code:
Unable to add cookies, header already sent. File: /home/invictus/public_html/rbar1_info.php Line: 4 top page Code:
<? chdir("forum/"); include('forum/global.php'); // added this line to include the user functions which // has the fetch_avatar_url() function include('./includes/functions_user.php'); chdir("../"); ?> Code:
<? if ($bbuserinfo['userid']!=0) { $username=$bbuserinfo['username']; // i assigned the avatar url to the variable $user_av and check to see if it's empty. $user_av = fetch_avatar_url($bbuserinfo['userid']); if($user_av!='') $user_av="/forum/" . $user_av; //replace "/forum/" with your virtual path to your forum pages. print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>"); //if the avatar url is not empty, display it if($user_av!='') print("<img src=\"" . $user_av . "\" vspace=4>"); } else { ?> <form action='/forum/login.php' method='post' onsubmit='md5hash(vb_login_password,vb_login_md5password)'> <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> <? } ?> |
#95
|
|||
|
|||
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 |
#96
|
|||
|
|||
For those that where looking for the script to redirect you to the forums after login:
PHP Code:
|
#97
|
|||
|
|||
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"/> |
#98
|
|||
|
|||
haha was thinking in a one track mind yesterday apparently... just shows how there are many ways to do things.
:squareeyed: |
#99
|
|||
|
|||
<?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? |
#100
|
|||
|
|||
followed the instructions
Code:
chdir("/home/&&&&&&/public_html/forums/"); include('./global.php'); chdir("/home/&&&&&&/public_html/site/"); 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 |
#101
|
|||
|
|||
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 Warning: Empty regular expression in /includes/functions.php on line 2128 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|