Jump to content

Macrura

PW-Moderators
  • Posts

    2,776
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. you could also hook into page path and do your custom page name without the trailing slash, so the page references render the correct url;
  2. if you need the view links in the page list to open in new window (which i do on almost every project), got this from here: https://processwire.com/talk/topic/1769-view-in-admin-template/?p=74946 $(document).ajaxComplete(function(){ addtargetblank(); }); function addtargetblank(){ $('li.PageListActionView a').each(function(){ if($(this).attr('target') == undefined){ $(this).attr('target','_blank'); } }); if($('#_ProcessPageEditView').attr('target') == undefined){ $('#_ProcessPageEditView').attr('target','_blank'); } } add to ProcessPageList[something].js
  3. yeah, it's weird because it happens randomly and doesn't leave any error log; once it happens the module no longer appears in the modules list until it is deleted from the database. it also is absent from the cache entries; the issue can be fixed by either deleting the database entry of the module, or adding the entry to the json in the cache; so therein seems to lie the issue, the module is apparently installed to some part of the system (it is in the table), but not in the caches and therefore this conflict causes it to be unavailable as a theme module, so defaults to the backup old admin theme;
  4. the issue happens either way, being set in config or per user; i had to remove the config setting for now, until it gets resolved... definitely a strange issue and that it only seems to blow out the adminthemereno module; though Wanze reported it happening with another module..
  5. i think hanna code does need it's own version of ace, since a lot of people won't use this module; unless it is a really simple one, i mostly do hanna codes as files on the server, so the hanna code just includes the file (thx to soma for this idea); would be cool if i Nico's template editor module could have a setting somewhere to select the inputfield type and then one could set it to use this if it is installed; the use cases for the backend ace editor are many though - definitely people wanting to have a markdown editor could use this... I'm also doing YAML settings field with this.
  6. I was working with someone yesterday on a site and this happened again – this is on a totally different environment than mine (GoDaddy hosting), and using the latest dev. Right after installing a module with modules manager, the whole site flipped back to the pre-module admin; we had to go into the user account and reselect the default theme to get back the core admin module theme;
  7. fyi for anyone testing this out today, ace extended won't work if the initial field is set to collapsed only when blank..
  8. @BernhardB - i think you would simply do that by using a <pre> tag and then having css to render the look you want; You can include source code pro on your frontend for a nice mono font
  9. I should also update this to say that this is still happening 1-2 times per week on various installs, all on the same host, but totally different sites with different modules, fields, etc..; this only happens when installing modules, and happens on both php 5.3 and 5.4. I see that the github thread has some activity, but for anyone else out there in the wild for whom this is happening to, this thread may be more accessible to keep alive until it is resolved, or the cause of the issue discovered.
  10. yeah this is so awesome - owzim's work on this goes beyond expectations!
  11. @martijn, wow can't thank you enough; this module has come in handy so many times; this is a great enhancement to it.. thanks!! BTW - just tested and it works perfectly!
  12. i was able to hack this module a bit to get the theme to change, but i had to copy the theme's css into the main css file; i agree that it would be cool to have an alternate version of ACE for PW that allowed one to choose the theme, like the hanna code module!! Would be willing to financially support any development of a code editor inputfield, with configurable settings..
  13. @Martijn, I was researching how to get this module to return an alphabetically sorted file list; found some stuff on stack exchange and php about reading the files into an array and sorting... $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); just wondering if you might be up to being 'sponsored' to add that feature... can send beer $
  14. Macrura

    other CMSs

    I used Get-Simple for some things; it is a nice little CMS, and really fast. You can do quite a bit with it; Image management in PW saves a ton of time, it's like having an extra employee; For some recent 1 page sites, I'm using Cockpit, which is quite handy, and works well; also pretty cool that you can bootstrap it into any page and start outputting managed content in maybe 5 lines of code.. been testing october a bit, and want to try out bolt.. I'm running Grav on a site for fun now; looking forward to trying Pagekit at some point..
  15. <rant style="wordpress"> recently i helped someone with a hacked WP site; they had no backup; i had to rebuild the whole thing, and they were on Yahoo, so no .htaccess file; consequently the URLs were all page id, and then to make things worse, the dev of this site wrote a couple of pluigns that relied on the id input; took about 10 hrs to rebuild the site from scraps, rewrite some plugins... and got to see a lot of russian hacker comments. got another enormous ecommerce site that the client can't manage at all - they find wordpress to be totally inscrutable (so now i'm getting emails to add products for them, change a word on the homepage)... and that site is running a heavily customized woocommerce and now the whole thing needs to be updated; updating this will mean cloning the whole thing, and gradually updating each component, and seeing if anything breaks, running diffs and seeing what to fix... I was surprised recently that a large professional organization that i'm a member of swtiched from Drupal to Wordpress, for their membership site - it's a huge org. I was like REALLY? and seeing a lot of local businesses and things like libraries going with WP... upside is that all of these sites are going to become inevitably unmanageable and then they'll come begging to the PW people for salvation </rant>
  16. yeah, no worries, just a bunch of rants to the client about getting the data right...
  17. hey - thanks again for looking at this... when i get some time in a few weeks i'm going to see if i can tweak some things...
  18. @hellmoto, thanks for reporting that... @LostKobrakai - ok, not sure what you mean; i know there is some issue going on with safari.. had to disable the transitions on a few pages..
  19. ProcessWire 2.5.19 dev MySQL 5.5.40-36.1-log PHP Version 5.3.29 Handler CGI/FastCGI Max Memory 128M Max execution time 60 Maximum input time 60 Upload Max Filesize 128M Post Max Size 128M Max Input Vars 1000 Max Input Nesting Level 64
  20. happened again, after installing a new module via upload (a lister pro action); AdminThemeReno wiped out of the system, and defaulted to legacy... will try Wanze's solution of deleting the module record from the database.
  21. @wanze, wow - thought i was going crazy! Thanks for the report... yeah, i was being paranoid and didn't want to delete any records... @nico, i believe that Wanze's solution would be the 'best' answer as it requires way less work. ** however this should be considered a bug, now that another user has confirmed it, and i can't see the average user wanting to go fiddle around with the database.. So this topic needs to be unmarked solved.. Also, can you change this topic to the bug report forum? Thanks!
  22. I was able to get Reno back, i had to go to the database of another installation and look at the caches table, then i matched the id to the id of the module in the modules table, and added these to the end of the json strings in modules verbose and modules info; then the module showed up and i was able to switch to it... hopefully that's solves this, but if anything changes i'll report back.. ,"202":{"summary":"Admin theme for ProcessWire 2.5 by Tom Reno (Renobird)","author":"Tom Reno (Renobird)","file":"\/home\/useracct\/dev\/wire\/modules\/AdminTheme\/AdminThemeReno\/AdminThemeReno.module","core":true,"configurable":true,"versionStr":"0.1.2"} ,"202":{"name":"AdminThemeReno","title":"Reno","version":12,"icon":"","requires":["AdminThemeDefault"],"requiresVersions":{"AdminThemeDefault":[">=",0]},"installs":[],"permission":"","permissions":[],"autoload":"template=admin","singular":false,"created":1411910134,"installed":true}
  23. could be done super easy/fast - you would probably use admin custom pages and then build your table that returns the list of widgets and the various columns; i think there may be a core inputfield for the table, or you roll your own data tables; admin custom files lets you load any js/css you need;
  24. Hi, the AdminThemeReno has mysteriously disappeared from the admin. it is in the wire modules, and the database modules table, but absent from the modules listing.. it has basically vanished; I tried updating to the latest dev to see if that would fix it. The problem seems to have started when i went into Modules Manager and the version was older so there was a json error; then right after reloading the page, the theme flipped back to the regular theme, and then the reno disappeared..; i'm not completely sure if modules manager was the source of the issue; I'm guessing some database corruption? not sure where to start troubleshooting this, but would really appreciate any help or advice. What do most people do when you hit a 'dead-end' issue like this? Is there some way to check the database for some misconfiguration? Should i delete the modules entry in the DB? not sure if this is related, but if i uninstall the default theme, i get this error: Modules: Module 'AdminThemeReno' dependency not fulfilled for: AdminThemeDefault and also if i try to place the default admin theme module into the /site/modules/ then i flip back to the legacy admin, and there is an error asking which one, but if you click on that and go to the module settings, there actually isn't any option to specify which folder to use; it ends up using the site version.. also getting strange errors... [14-Feb-2015 19:46:11 America/New_York] PHP Notice: Trying to get property of non-object in /home/someuser/dev/site/modules/ModulesManager/ModulesManager.module on line 820 [14-Feb-2015 19:46:32 America/New_York] PHP Notice: Undefined offset: 0 in /home/someuser/dev/site/modules/ProcessDiagnostics/DiagnoseModules.module on line 43 [14-Feb-2015 20:12:27 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 284 [14-Feb-2015 20:12:27 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:12:27 America/New_York] PHP Notice: Undefined index: flags in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:14:48 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 284 [14-Feb-2015 20:14:48 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:14:48 America/New_York] PHP Notice: Undefined index: flags in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:15:12 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 284 [14-Feb-2015 20:15:12 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:15:12 America/New_York] PHP Notice: Undefined index: flags in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 thanks!
  25. not sure, i haven't gotten as far as you on this.. I mostly use fields on the editor to define layouts, like page table, or page table extended; and i use global widgets with lister pro, or page specific widgets with an enhanced page select..
×
×
  • Create New...