tag:blogger.com,1999:blog-408361410820097976.post5001054385177879677..comments2023-06-24T18:31:46.903+08:00Comments on A little something: a new version for sfAdminThemejRollerPlugin 0.2estadieuhttp://www.blogger.com/profile/01733729200659602893noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-408361410820097976.post-47955647640660052082011-04-05T00:44:26.163+08:002011-04-05T00:44:26.163+08:00After installing the plugin and setting the theme ...After installing the plugin and setting the theme to "jroller", I get this:<br /><br />Fatal error: Class 'BaseIncentivesGeneratorConfiguration' not found in /data/work_area/shayr/redchurch/apps/backend/modules/incentives/lib/incentivesGeneratorConfiguration.class.php on line 12<br /><br />Anyone know what's going on? I've posted on several boards and heard nothing... Help!Royhttps://www.blogger.com/profile/05736312391762137487noreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-48977954890378529282010-12-22T01:34:00.446+08:002010-12-22T01:34:00.446+08:00I'd wrap your pager fix, also:
if ($request-&...I'd wrap your pager fix, also:<br /><br />if ($request->hasParameter('page')) {<br /> // pager fix here..<br />}<br /><br />Or you may be wondering what happened to your batch actions for four days, crawling the web wondering why nobody seems to have this problem EXCEPT YOU.<br /><br />Merry xmas!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-86220512925674337082010-09-29T09:11:53.191+08:002010-09-29T09:11:53.191+08:00^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARNING: Wordpress...^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br />WARNING: Wordpress apparently strings out part of the string (i.e. it doesn't include the php part.) So my solution also looks wrong.<br /><br />Just pick the redirect from a few lines below. If has the string php and echo in it (I cannot post it here since the comments strip it for security, I guess).Rolf Ernsthttp://www.24hourloop.comnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-39553239768244879112010-09-29T09:09:37.158+08:002010-09-29T09:09:37.158+08:00Not sure about the various versions for the pager ...Not sure about the various versions for the pager but I am running 1.4 and while the above example is correct (mostly) the redirect must look like this:<br /><br /> $this->redirect('@getUrlForAction('list') ?>');<br /><br />(Just pick the same redirect code as for the id redirect.)Rolf Ernsthttp://www.24hourloop.comnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-51379267385148711332010-09-05T02:06:12.826+08:002010-09-05T02:06:12.826+08:00[Sorry for the bad English redacted]
Changes pagin...[Sorry for the bad English redacted]<br />Changes paging I got in the comments resulted in problems in batchDelete because there was not checked if the page parameter, and always redirected to the list.<br /><br />Following is the changed code working:<br /><br />if($request->hasParameter('page') && $request->getParameter('page') != $this->getPage())<br />{<br /> $page_my = $request->getParameter('page');<br /> <br /> // page request is bigger then pages available, go to last page<br /> // go to first, on other extreme<br /> if ($this->getPager()->getLastPage() < $page_my)<br /> $page_my = $this->getPager()->getLastPage();<br /> else if ($this->getPager()->getFirstPage() > $page_my)<br /> $page_my = $this->getPager()->getFirstPage();<br /> <br /> $this->setPage($page_my);<br /> $this->redirect('@getUrlForAction('list') ?>');<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-10238543217913659012010-09-01T10:22:01.334+08:002010-09-01T10:22:01.334+08:00Hi, that plugin is very nice, but i have a little ...Hi, that plugin is very nice, but i have a little problem. the plugin works fine with all admin module automatic generates, but with sfDoctrineGuard, in sfGuardUser when i click reset in filters window, i have a routing error:<br /><br />Action "guard/users" does not exist.<br /><br />If you cant see the error and answer me, i'll thank you.mardukehttps://www.blogger.com/profile/14004398046465430071noreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-34180443961965582692010-06-09T20:32:39.388+08:002010-06-09T20:32:39.388+08:00is there any way to enable it across all admin mod...is there any way to enable it across all admin modules? including the sfGuard ones.DChttps://www.blogger.com/profile/01474947444685401943noreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-13686237605226089582010-05-27T21:27:12.475+08:002010-05-27T21:27:12.475+08:00@Rolf Ernst:
Great!! You save my afternoon.
Thx :...@Rolf Ernst:<br /><br />Great!! You save my afternoon.<br />Thx :)zanshinenoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-44862977337915827842010-04-21T15:08:18.046+08:002010-04-21T15:08:18.046+08:00Maybe a dumb question: The Theme doesn't looku...Maybe a dumb question: The Theme doesn't looku quit elike that in the demo tith a default install. Is the demo highly customized (UI icons, pager icons, etc.) or is it a newer version?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-6157997411061575262010-04-18T11:31:20.468+08:002010-04-18T11:31:20.468+08:00Ok, I found it. The batch action bug is in batchAc...Ok, I found it. The batch action bug is in batchAction.php.<br /><br />Change line 29 to read:<br /><br /> $validator = new sfValidatorDoctrineChoice(array('multiple' => true, 'model' => 'getModelClass() ?>'));<br /><br />(Add 'multiple' => true)Rolf Ernsthttp://www.24hourloop.comnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-72217390542507136832010-04-18T11:13:13.884+08:002010-04-18T11:13:13.884+08:00>>> thomas said...
The batch action ...>>> thomas said...<br /><br /> The batch action do not run<br /><br /> SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens<br /><br /> and it do no run in the live demo too.<br />=======<br />I hate to bring this up, too, but it doesn't work for me, either. If I switch to the ugly 'admin' plugin in 1.4 Doctrine it works fine. I am pulling my hair out a bit and I can see the query being triggered by sfValidatorDoctrineChoice.<br /><br />When I comment this code in batchAction, it works (but I obviously lose the functionality). Maybe you can advise?<br /><br />This is the code I comment:<br /><br />$validator = new sfValidatorDoctrineChoice(array('model' => 'getModelClass() ?>'));<br /> try<br /> {<br /> // validate ids<br /> $ids = $validator->clean($ids);<br /><br /> // execute batch<br /> $this->$method($request);<br /> }<br /> catch (sfValidatorError $e)<br /> {<br /> $this->getUser()->setFlash('error', 'A problem occurs when deleting the selected items as some items do not exist anymore.');<br /> }Rolf Ernsthttp://www.24hourloop.comnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-43184663567810691072010-04-05T08:17:04.537+08:002010-04-05T08:17:04.537+08:00fix for the pager (when self typing in the pages):...fix for the pager (when self typing in the pages):<br /><br />in: batchAction.php<br /><br /> if($request->getParameter('page') != $this->getPage())<br /> {<br /> $page_my = $request->getParameter('page');<br /><br /> // page request is bigger then pages available, go to last page<br /> // go to first, on other extreme<br /> if ($this->getPager()->getLastPage() < $page_my)<br /> $page_my = $this->getPager()->getLastPage();<br /> else if ($this->getPager()->getFirstPage() > $page_my)<br /> $page_my = $this->getPager()->getFirstPage();<br /><br /> $this->setPage($page_my);<br /> $this->redirect('@getUrlForAction('list') ?>');<br /> }Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-73125117006494031302010-04-01T10:36:02.930+08:002010-04-01T10:36:02.930+08:00okay someone delete all my posts, thxokay someone delete all my posts, thxMikenoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-12442634421087238802010-04-01T10:35:19.317+08:002010-04-01T10:35:19.317+08:00There is a Problem with "ech.o" and &quo...There is a Problem with "ech.o" and "$.this"mikenoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-80467933963493461262010-04-01T10:34:11.738+08:002010-04-01T10:34:11.738+08:00Seems like echo and $this are not beeing there, ar...Seems like echo and $this are not beeing there, are cut out!Mikenoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-31089577484896484402010-04-01T10:30:44.243+08:002010-04-01T10:30:44.243+08:00@mods delete the above post, as it was wrong copy&...@mods delete the above post, as it was wrong copy&pasted <br /><br /><br />@geoff well done, but I've done some corrections, now working for me:<br /><br />if($request->getParameter('page') != $this->getPage())<br /> {<br /> $this->setPage($request->getParameter('page'));<br /> $this->redirect('@getUrlForAction('list') ?>');<br /> }Mikenoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-38809003352809540152010-04-01T10:29:03.381+08:002010-04-01T10:29:03.381+08:00@geoff well done, but I've done some correctio...@geoff well done, but I've done some corrections, now working for me:<br /><br /> if($request->getParameter('page') != $this->getPage())<br /> {<br /> $this->setPage($request->getParameter('page'));<br /> $this->redirect('@getUrlForAction('list') ?>');<br /> }Mikenoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-25663691982474346332010-03-17T20:44:53.922+08:002010-03-17T20:44:53.922+08:00The batch action do not run
SQLSTATE[HY093]: Inv...The batch action do not run <br /><br />SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens<br /><br />and it do no run in the live demo too.<br /><br />Someone can help me please.<br /><br />(sorry for my english)thomasnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-4254462767835781272010-01-29T18:00:25.034+08:002010-01-29T18:00:25.034+08:00Many thanks for this plugin, really really Great!
...Many thanks for this plugin, really really Great!<br />input tag page is not ready ? I make some changes to do that in plugins/sfAdminThemejRollerPlugin/data/generator/sfDoctrineModule/jroller/parts/batchAction.php:<br />After checkCRSFPritection in executeBatch()and before checks ids tab :<br /><br /> if($request->getParameter('page') != $this->getPage())<br /> {<br /> $this->setPage($request->getParameter('page'));<br /> $this->redirect('@getUrlForAction('list') ?>');<br /> }<br /><br />Is the right way or i missed something ?<br /><br />Geoffgeoffhttp://letsweb.frnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-13654356504856226682010-01-26T18:11:36.883+08:002010-01-26T18:11:36.883+08:00Very nice plugin. However, you should remove all t...Very nice plugin. However, you should remove all the .DS_Store hidden files that are a pain for non mac users.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-29320016713239513252010-01-25T10:54:04.041+08:002010-01-25T10:54:04.041+08:00@gunzip: thanks for the bug report, I will look at...@gunzip: thanks for the bug report, I will look at it. I did not test this feature, maybe there are some changes with sf1.3/1.4. @edsadr gave the solution, I will commit a new version later....oups I did not see your last comment, great you fix it! I will put everything on github later today.<br /><br />@vjousse: we did not like the idea to have filters always visible, what you focus on is the list. Our plan is actually to put a flag or something on the filter button when there are filters used. We have not yet done this.<br /><br />@anonymous: yes accessibility is also a concern for us but we have not yet look at it in details. Hopefully we can fix this issue too. Thanks to push us in that way.estadieuhttps://www.blogger.com/profile/01733729200659602893noreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-37612300325103898622010-01-23T00:03:24.984+08:002010-01-23T00:03:24.984+08:00great, i've applied the patch and it works IF ...great, i've applied the patch and it works IF you make another little modification in plugins/sfAdminThemejRollerPlugin/data/generator/sfDoctrineModule/jroller/parts/batchAction.php change<br /><br />$validator = new sfValidatorDoctrineChoice(array( 'model' => 'getModelClass() ?>'));<br /><br />to <br /><br />$validator = new sfValidatorDoctrineChoice(array('multiple' => true, 'model' => 'getModelClass() ?>'));gunziphttps://www.blogger.com/profile/02687598274019847020noreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-17940528270742431682010-01-22T23:50:40.095+08:002010-01-22T23:50:40.095+08:00Hello
this is a nice plugin, unfortunately I had ...Hello<br /><br />this is a nice plugin, unfortunately I had tried to reach Gerald before for some questions and he should be pretty busy, there is a small bug on the batch actions as described before ... here is the solution:<br /> you should change the partial :<br /><br />plugins/sfAdminThemejRollerPlugin/data/generator/sfDoctrineModule/jroller/template/templates/_list_batch_actions.php<br /><br />line: 9 from:<br /><br />[?php $form = new sfForm(); if ($form->isCSRFProtected()): ?]<br /><br />to:<br /><br />[?php $form = new BaseForm(); if ($form->isCSRFProtected()): ?]<br /><br /><br />Hope this help for anybody using this great plugin<br /><br />Regards<br /><br />Adrianedsadrhttps://www.blogger.com/profile/01869433384809210644noreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-34922504550314360012010-01-22T20:24:06.572+08:002010-01-22T20:24:06.572+08:00Hi,
I've ever seen this plugin with the previo...Hi,<br />I've ever seen this plugin with the previous version and I really like the new one.<br /><br />On problem stay for me : if Javascript is inactive, you loose filters and actions for example and the tabs in new/edit action.<br /><br />I work with the accessibility notion and for me, it's really an issue.<br /><br />Do you have planed this ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-408361410820097976.post-6912614253290780612010-01-22T19:41:43.828+08:002010-01-22T19:41:43.828+08:00It looks great but ... do you think that "hid...It looks great but ... do you think that "hidding" the filters in a button/dialog box is a good idea ?<br /><br />Could be very confusing if you've forgotten that a filter was set (you can't see that a filter is set without clicking on the filter button ?)vjoussehttp://www.devorigin.frnoreply@blogger.com