Forums / Cotonti / Extensions / Account plugin

DemptD
#1 2009-06-15 10:22
Account Management plugin

All works except redirect after login ,when i login it doesnt send me to

http://www.site.in/plug.php?e=account

Fixable?
Kort
#2 2009-06-15 14:01
Create account.redirect.php with something like:
if ($msg == '104' && $cfg['plugin']['account']['redirect'] == '1')
	{ header("Refresh: '1'; url=plug.php?e=account"); }
SED.by - создание сайтов, разработка плагинов и тем для Котонти
DemptD
#3 2009-06-15 15:14
Hmm, didnt work. This is what i made:

<?php
/* ====================
Seditio - Website engine
Copyright (C) 2005 Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/account/account.redirect.php
Version=100
Type=Plugin
Author=Dyllon
Description=Redirects back to plugin
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=account
Part=account.redirect
File=account.redirect
Hooks=message.main
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]
==================== */

if (!defined('SED_CODE')) { sed_diefatal('Wrong URL.'); }

if ($msg == '104' && $cfg['plugin']['account']['redirect'] == '1')
	{ header("Refresh: '1'; url=plug.php?e=account"); }

?>
Kort
#4 2009-06-15 15:20
Does
if ($msg == '104')
	{ header("Refresh: '1'; url=plug.php?e=account"); }
work?
Or try reinstalling the plug.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
DemptD
#5 2009-06-15 15:23
Nope :P

But i did a search at neocrome and found a plugin for it:

http://neocrome.net/forums.php?m=posts&p=109921#109921

<?php
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/redirector/redirector.php
Version=103
Type=Plugin
Author=
Description=login-redirect
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=redirector
Part=redirector
File=redirector
Hooks=users.auth.check.done
Tags=
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]
==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }
if(strlen($cfg['plugin']['redirector']['url']) > 0 || $cfg['plugin']['redirector']['url'] != NULL)
{
$sql = sed_sql_query("DELETE FROM $db_online WHERE online_userid='-1' AND online_ip='".$usr['ip']."' LIMIT 1");
sed_redirect($cfg['plugin']['redirector']['url']);
exit;
}

?>

<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net

[BEGIN_SED]
File=plugins/redirector/redirector.setup.php
Version=110
Updated=2006-jun-27
Type=Plugin
Author=Neocrome
Description=
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=redirector
Name=Re-Director
Description=Redirector
Version=100
Date=006-mar-09
Author=Neocrome
Copyright=
Notes=
SQL=
Auth_guests=R
Lock_guests=W12345A
Auth_members=R
Lock_members=W12345A
[END_SED_EXTPLUGIN]

[BEGIN_SED_EXTPLUGIN_CONFIG]
url=01:string::forums.php:Redirect Url(Keep Empty for Default)
[END_SED_EXTPLUGIN_CONFIG]

==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

?>
SunChase
#6 2009-07-03 05:49
Hi.Is this the User Account plugin(usercp)?
How did you manage to launch it?Mine sais that there is something wrong in the SQL syntaxis
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
DemptD
#7 2009-07-03 10:07
This is "plug.php?e=account" not usercp.

You have to run the SQL with phpmyadmin
SunChase
#8 2009-07-03 20:45
hm can you give me the link to this plug please.

You have to run the SQL with phpmyadmin
didnt help
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
DemptD
#9 2009-07-03 23:05
SunChase
#10 2009-07-03 23:29
2009-07-03 18:28
Fatal error : SQL error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5

:-(
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity