Roundcube Community Forum

 

taskbar plugin

Started by osterhase, January 31, 2011, 12:09:36 PM

Previous topic - Next topic

osterhase

Hi there!

I've installed the taskbar plugin an added two links within the same domain (a registration form and usage terms).

So this are my entries in the config.inc.php:


[...]
$rcmail_config['login_taskbar_def'][] = array(
  'href' => '',
  'target' => '_self',
  'onclick' => "",
  'class' => 'startseite',
  'innerHTML_locale' => 'Startseite',
  'innerHTML' => '%s',
  'img' => 'goto.gif',
  'title_locale' => 'Startseite'
  );  

$rcmail_config['login_taskbar_def'][] = array(
  'href' => 'skins/default/templates/flux/anmeldung.php',
  'target' => '_self',
  'onclick' => "",
  'class' => 'registrierung',
  'innerHTML_locale' => 'Registrierung',
  'innerHTML' => '%s',
  'img' => 'goto.gif',
  'title_locale' => 'Registrierung'
  );

$rcmail_config['login_taskbar_def'][] = array(
  'href' => 'skins/default/templates/flux/nutzungsbedingungen.html',
  'target' => '_self',
  'onclick' => "",
  'class' => 'nutzungsbedingungen',
  'innerHTML_locale' => 'Nutzungsbedingungen',
  'innerHTML' => '%s',
  'img' => 'goto.gif',
  'title_locale' => 'Die Nutzungsbedingungen von bogusdomain.net.'
  );  

?>


When the user visits the mentioned links above, the respective pages are displayed but the taskbar disappears. I would like to achieve that the taskbar reamins in place so the user is able to navigate to the start-page again. Any suggestions out there? I would appreciate any help.

Best regards

osterhase

rosali

You need to generate these pages by the plugin API and to configure the plugin to inject the taskbar into the pages by:

/* templates to add taskbar */
$rcmail_config['taskbar_templates'] = array(
  "login",
  "register",
  "contactus",
  "impressum",
  "nabble",
  "captcha",
  "recpw",
  "remember_me",
  "nutzungsbedingungen",
  "anmeldung"
);

If you use external pages you have to hard code the taskbar in these pages.
Regards,
Rosali

osterhase

Thanks four your quick answer and advise... I will dig myself through the wiki to generate an API plugin for the registration form.

For the terms I decided to stick to the "terms"-plugin. Currently I'm unable to figure the 'onclick' directive. I think the href can be left blank when the plugin "terms" is used - correct?

taskbar config.inc.php:

/* templates to add taskbar */
$rcmail_config['taskbar_templates'] = array(
  "login",
  "terms",
   [...],
);

[...]

$rcmail_config['login_taskbar_def'][] = array(
  'plugin' => 'terms',
  'href' => '',
  'target' => '_self',
  'onclick' => "", [B][?][/B]
  'class' => 'nutzungsbedingungen',
  'innerHTML_locale' => 'Nutzungsbedingungen',
  'innerHTML' => '%s',
  'img' => 'goto.gif',
  'title_locale' => 'Die Nutzungsbedingungen von bogusdomain.net.'
  );  

[...]


Can you help me out again?

Best regards

osterhase