Search found 38 matches
- Thu Jun 04, 2009 4:46 pm
- Forum: Developers Discussion
- Topic: register route not working
- Replies: 5
- Views: 4417
Re: register route not working
No i tried '*' etc. Problem isn't there. Try make route that not need to have '/' within. For example: $this->RegisterRoute('/archive\/?$/', array('returnid' => 28, 'action' => 'archive', 'inline' => 1)); or $this->RegisterRoute('/profile$/', array('returnid' => 28, 'action' => 'archive', 'inline' =...
- Tue Jun 02, 2009 6:47 am
- Forum: Developers Discussion
- Topic: register route not working
- Replies: 5
- Views: 4417
Re: register route not working
Ok I found problem... Problem is in index.php in line like this: //See if our page matches any predefined routes $page = rtrim($page, '/'); //See if our page matches any predefined routes $page = rtrim($page, '/'); if (strpos($page, '/') !== FALSE) { $routes =& $gCms->variables['routes']; $match...
- Fri May 22, 2009 6:08 am
- Forum: Developers Discussion
- Topic: register route not working
- Replies: 5
- Views: 4417
Re: register route not working
adding "?" after "+" only makes "+" ungreedy so it doesn't solve problem 

- Fri May 15, 2009 8:06 am
- Forum: Developers Discussion
- Topic: register route not working
- Replies: 5
- Views: 4417
register route not working
Why this routes: $this->RegisterRoute('/galeria-zwyciezcow(\/(?P<page>[0-9]+))?$/', array('returnid' => 28, 'action' => 'winner_gallery', 'inline' => 1)); or $this->RegisterRoute('/galeria-zwyciezcow\/(?P<page>[0-9]+)?$/', array('returnid' => 28, 'action' => 'winner_gallery', 'inline' => 1)); aren't...
- Sat Jul 19, 2008 12:17 pm
- Forum: Developers Discussion
- Topic: [solved] entities problem
- Replies: 2
- Views: 1638
Re: entities problem
Ok I found it after hours of searching and tests... Problem was in DoBaseAction() function. function DoActionBase($name, $id, $params, $returnid='') { if( $returnid != '' ) { if( !$this->restrict_unknown_params && get_site_preference('allowparamcheckwarnings',0)) { trigger_...
- Wed Jul 16, 2008 8:30 pm
- Forum: Developers Discussion
- Topic: [solved] entities problem
- Replies: 2
- Views: 1638
Re: entities problem
I looked into cms core and it looks like there is function cms_htmlentities() that entities characters. /** * Enter description here... * * @param unknown $val * @param integer $quote_style * @return unknown * * $quote_style may be one of: * ENT_COMPAT : Will convert double-quotes and leave si...
- Tue Jul 15, 2008 4:49 pm
- Forum: Developers Discussion
- Topic: [solved] entities problem
- Replies: 2
- Views: 1638
[solved] entities problem
Hi, I have problem with textareas and maby with CMS. I have form with textarea and i post data like this: ąśćł!!!!! then I post data ,show it by var_dump($params) and insert posted data back in form textarea. and i get something like that: in source code by var_dump(): ["abaut"]=> string...
- Tue Jun 10, 2008 10:34 am
- Forum: Developers Discussion
- Topic: Is it possible to turn off layout only for ajax request?
- Replies: 8
- Views: 4454
Re: Is it possible to turn off layout only for ajax request?
My solution work in 1.0.5 too 

- Mon Jun 09, 2008 8:19 am
- Forum: Developers Discussion
- Topic: [solved]How to add anchor to form action?
- Replies: 0
- Views: 1519
[solved]How to add anchor to form action?
Hi. I have problem. I have page that has few forms one under another and they are longer than webbrowser height. When I submit one forms that is on the bottom, page reloads and I must rewind page to that form to see it again. I know that html anchors can rewind for me automaticly but i dont know ho...
- Mon Jun 09, 2008 7:59 am
- Forum: Developers Discussion
- Topic: Is it possible to turn off layout only for ajax request?
- Replies: 8
- Views: 4454
Re: Is it possible to turn off layout only for ajax request?
for example
:
$this->CreateLink($id, 'action', $returnid, '', array('showtemplate' => 'false'), '', true);

$this->CreateLink($id, 'action', $returnid, '', array('showtemplate' => 'false'), '', true);
- Fri May 23, 2008 2:42 pm
- Forum: Developers Discussion
- Topic: How to generate frontendlike link i admin panel??
- Replies: 2
- Views: 1708
Re: How to generate frontendlike link i admin panel??
Thank you very much it's working 

- Fri May 23, 2008 2:25 pm
- Forum: Developers Discussion
- Topic: How to generate frontendlike link i admin panel??
- Replies: 2
- Views: 1708
How to generate frontendlike link i admin panel??
Hi, I need to generate link like in frontend in admin panel of my module, but CreateLink CreateFrontendLink generate wrong links: http://localhost/php/admin/moduleinterface.php?mact=Flash,,main_object,0&object_id=4 i need link like this: http://localhost/php/index.php?mact=Flash,cntnt01,main_obj...
- Wed May 07, 2008 4:54 pm
- Forum: Developers Discussion
- Topic: CreateInputText problem with automatic id param generation
- Replies: 10
- Views: 4577
Re: CreateInputText problem with automatic id param generation
I have made already few changes in core and it worked for me. I don't know where id param is used. Params in class.Module.php are poor documented and documentation says nothing for example abaut $id param (how it work and what for is he important etc) or $returnid or how works $inline params in link...
- Wed May 07, 2008 4:34 pm
- Forum: Developers Discussion
- Topic: CreateInputText problem with automatic id param generation
- Replies: 10
- Views: 4577
Re: CreateInputText problem with automatic id param generation
It worked perfectly :) I'm usig it like that: $this->smarty->assign('to_user', $this->CreateInputText($id, 'user_login', isset($params['user_login']) ? $params['user_login'] : '', '10', '255', 'class="" id="login_input"', false)); It has only last param as false so the id param ...
- Wed May 07, 2008 4:22 pm
- Forum: Developers Discussion
- Topic: CreateInputText problem with automatic id param generation
- Replies: 10
- Views: 4577
Re: CreateInputText problem with automatic id param generation
It worked perfectly :) I'm usig it like that: $this->smarty->assign('to_user', $this->CreateInputText($id, 'user_login', isset($params['user_login']) ? $params['user_login'] : '', '10', '255', 'class="" id="login_input"', false)); It has only last param as false so the id param i...