MyBB Community Forums

Full Version: problem with the 'welcome user panel' plug in
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello,

i've installed the welcome user panel from kingw@olf ver.2.0.
my forum software is 1.2.10
and if i activate that plugin
i can't log me out, this message will be shown:
'Your user ID could not be verified to log you out.
This may have been because a malicious Javascript was
attempting to log you out automatically. If you
intended to logout, please click the Logout button
at the top menu.'

i've allready read the posts about that problem.
and i fixed the cookie path.
Please help me.

Thx
Open the pluginfile
Find
<a href=\"{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}\">{$lang->welcome_logout}</a>

Change into
<a href=\"{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}\">{$lang->welcome_logout}</a>
thx,
but now i have anoter problem :-(
i can't log me in...
i thought i fixed that problem by configuring the cookie path but no.
after i typed in my name and the password that message is coming:
'Fatal error:
Cannot redeclare user_exists() (previously declared in /srv/www/httpd/phost/w/com/pytalhost/.../web/inc/functions_user.php:9) in /srv/www/httpd/phost/w/com/pytalhost/.../web/inc/functions_user.php on line 21'

thx for help

after i tried it one more time, its working
perhaps someone can explain it...
hi
find

<a href=\"{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}\">{$lang->welcome_logout}</a>


replace

<a href=\"{$mybb->settings['bburl']}/member.php?action={strong}logout&amp;logoutkey={$mybb->user['logoutkey']}\">{$lang->welcome_logout}</a>
thanks to you anyway,

but the problem to log in is still there...please help.
A link to your forum ?
http://web-forum.pytalhost.com

username: test
pass: tester
Login => works;
Logout =>
* the one in the "welcome panel" => works
* at the bottom of the forum works => works
* the one in the welcomeblock isn't. Seems like that template aint updated.
login --> doesn't work correct. if i turn off the plug in, all will be fine.and if not the nessage will come:
'Fatal error: Cannot redeclare user_exists() (previously declared in /srv/www/httpd/phost/w/com/pytalhost/web-forum/web/inc/functions_user.php:9) in /srv/www/httpd/phost/w/com/pytalhost/web-forum/web/inc/functions_user.php on line 21'
here's the functions_user.php:

3 /**
4 * Checks if a user with uid $uid exists in the database.
5 *
6 * @param int The uid to check for.
7 * @return boolean True when exists, false when not.
8 */
9 function user_exists($uid)
10 {
11 global $db;
12 $query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE uid='".intval ($uid)."' LIMIT 1");
13 if($db->fetch_array($query))
14 {
15 return true;
16 }
17 else
18 {
19 return false;
20 }
21 }
22
23 /**
24 * Checks if $username already exists in the database.
25 *
26 * @param string The username for check for.
27 * @return boolean True when exists, false when not.
28 */

is there something wrong?
if you don't have that error message why i? i've tried it with ie and ff.
if you don't have the message at the first time, tray it out later on a second time or third time. sometime it works.

and the logout at the top of the site isn't working. in wich file i have to fix the code?

LeX Wrote:* the one in the welcomeblock isn't. Seems like that template aint updated
template update?
can nobody help me?
has nobody that plug in?