DemptD |
|
---|---|
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 |
|
---|---|
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 |
|
---|---|
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 |
|
---|---|
Does
if ($msg == '104') { header("Refresh: '1'; url=plug.php?e=account"); }work? Or try reinstalling the plug. SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
DemptD |
|
---|---|
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 |
|
---|---|
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 |
|
---|---|
This is "plug.php?e=account" not usercp.
You have to run the SQL with phpmyadmin |
SunChase |
|
---|---|
hm can you give me the link to this plug please.
You have to run the SQL with phpmyadmindidnt help [url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
|
DemptD |
|
---|---|
SunChase |
|
---|---|
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
|