Форуми / Cotonti / Extensions / Support / Sidepanel plugin always redirects to itself at login

foxhound
#38211 22.10.2013 16:26

Working on a new plugin, pretty simple probably but its actually the first one I ever got to work. :)
However, the plugin seems to have the nasty habit to redirect a users login to itself. With that I mean if a user is browsing the website and wishes to login after doing so the site will direct him to the plugin page "index.php?e=sidepanel".
The plugin itself is really simple, with the default setup file (sidepanel.setup.php), which is empty except the minimal requirements and in my sidepanel.php I have the following: 

<?php

/* ====================
  [BEGIN_COT_EXT]
  Hooks=standalone
  [END_COT_EXT]
  ==================== */

/**
 * Contact Plugin for Cotonti CMF
 *
 * @package contact
 * @version 2.1.0
 * @author Cotonti Team
 * @copyright (c) Cotonti Team 2008-2013
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');

$tplfile = cot_import('tpl', 'G', 'TXT');
$mskin = cot_tplfile(array('sidepanel', $tplfile), 'plug');
$t = new XTemplate($mskin);

?>

 

The sidepanel is created in my footer with the following code: 

<div id="extruderRight" class="{title:'User Control Panel', url:'index.php?e=sidepanel'}"></div>

Yes, I am using "redirect back on login" and I made 100% sure I am not actually on the plugin page.
Is there also a way to prevent from people accessing that "index.php?e=sidepanel"? Cause I have to make it standalone else it does not work, but than you can access it in a standalone page (obviously) which will than show the contents of my tpl in a page.

 

I am trying to make a plugin for this sitepanel: http://pupunzi.com/#mb.components/mb.extruder/extruder.htm

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />