Re: [SM-USERS] parse error in plugin

2006-05-07 Thread kmnair
Thanks Tomas. It works. I will logoff for the time being. Will come back if I need more help. Regards kmnair On 5/7/06, Tomas Kuliavas <[EMAIL PROTECTED]> wrote: > I am trying to install a chat programme in my server. I would like to > include a chat link in the left or right top panel. How

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
> I am trying to install a chat programme in my server. I would like to > include a chat link in the left or right top panel. How can I do that. Create plugin that is hooked to menuline or some left_main.php hook. Plugin documentation is in SquirrelMail doc/Development/plugin.txt Sample plugin is

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread kmnair
Thanks Tomas. It works. I am trying to install a chat programme in my server. I would like to include a chat link in the left or right top panel. How can I do that. kmnair On 5/7/06, Tomas Kuliavas <[EMAIL PROTECTED]> wrote: Attached quick patch for username 2.3. Patch is applied with 'patch

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
Attached quick patch for username 2.3. Patch is applied with 'patch -p 1 < username.diff' command. If you don't have access to patch utility, you can apply it manually. minus shows removed lines, plus - added lines. Other lines allow to locate modified code. Added configuration variable allows to

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread kmnair
Thanks Tomas, I am setting up a webmail solution for a educational institution. Hosted in a FBSD server. Qmail and Courier Imap. I have no control on their software. They have a standard shared SM hosting. I wanted a customised SM exclusively for me. They said sorry, I may install in a sub domain

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
> I am at a loss to remove the domain part from the username. > Plugins/Username/functions.php. How do I reconfigure that? > > Some of our users have slightly long usernames. So the left pane > develops a scroll bar. Is there a way to show the username on the > right frame top main header/navigatio

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread kmnair
Thanks Tomas. I am at a loss to remove the domain part from the username. Plugins/Username/functions.php. How do I reconfigure that? Some of our users have slightly long usernames. So the left pane develops a scroll bar. Is there a way to show the username on the right frame top main header/navi

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
font size for "Folders" string is hardcoded in src/left_main.php ... ''. _("Folders") . "\n\n"; ... font face is set in stylesheet.tpl .leftmain style. I am not a teacher. I am computer geek, working as system admin and spending my free time on SquirrelMail and other opensource things. If I exp

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread kmnair
Thanks Tomas. Where is the font setting for the Leftpanel folders Heading ("Folder") situated. I tried templates/default/stylesheet.tpl, .sqm_folder, font size. But it does not change. Tomas, I know you are real for sure. I was asking whether you are a teacher basically. Because usually only a t

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
Nuke one more hooked function. from plugins/username/setup.php ... $squirrelmail_plugin_hooks['options_display_save']['username'] = 'username_save_options'; ... Add 'username_save_options' to forced_prefs disabled hooks. $fp_disabled_hooks=array('username_show_options','username_save_options

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread kmnair
Thanks Tomas. When I set from plugins/forced_prefs/config.php ... $fp_disabled_hooks=array('username_show_options'); ... it works all right. The forced options are not displayed. But when I try to change any of the options in the "display preferences", once I submit the change and refresh the

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
Settings are not displayed only when plugins use SquirrelMail option widgets and forced_prefs plugin is loaded after other plugins. widgets are special functions that create option from configuration data provided by plugin. Compare fortune plugin in SquirrelMail 1.5.1 with abook_take plugin. in f

Re: [SM-USERS] parse error in plugin

2006-05-06 Thread Tomas Kuliavas
> Hi list! > > I have installed forced prefs 1.2 plugin and added some array items. > When I try to open the site, I get the following error. > > Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, > expecting ')' in > /hsphere/local/home/kmnair/webmail.vuat.in/plugins/forced_prefs/con

[SM-USERS] parse error in plugin

2006-05-06 Thread kmnair
Hi list! I have installed forced prefs 1.2 plugin and added some array items. When I try to open the site, I get the following error. Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hsphere/local/home/kmnair/webmail.vuat.in/plugins/forced_prefs/config.php on li