-
Posts
11,107 -
Joined
-
Last visited
-
Days Won
365
Everything posted by adrian
-
Nice - I am a HomeBrew user, so that looks like it should make things very simple - cheers!
-
Thanks for reporting that - I was struggling to figure out why you were getting those errors. I guess it's getting to the point that we all need to have a PHP7 testing environment set up so we can fix these sorts of things. I'll see what I can do about getting it 7 compatible fairly soon.
-
Tracy Debugger (http://mods.pw/B8) - expandable call stack and variable dumping, error email notification, PW info/links, log file viewer, execution time, memory usage, diagnostics, and more!
-
-
Great to hear. I actually just committed a new version that significantly changes how some of the comments are parsed - could you please check to make sure this is still working. I had been thinking about that - you made me decide to go ahead with it. I also added a new column showing the type of the comment to make it easier to scan. I updated the screenshot a couple of posts above. Please let me know what you think and if you have any other tweaks/suggestions. I have been wondering if anyone might want to configure the comment types that are parsed. As I mentioned above, they are currently: 'todo', 'fixme', 'pending', 'xxx', 'hack', 'bug' but if some of you use others, then I'd be happy to make this configurable, or hardcode in a few key additions.
-
Is there any chance this site is online and I could possibly get access to take a look? Are all 63 errors shown in that screenshot coming from this module? Could you maybe at least show me the contents of that panel?
-
Depends on how many users you have - checkboxes or ASM select will be ok up to a point, but won't work well if you have hundreds/thousands of users.
-
Create a page field on the page's template that links (Parent of Selectable Pages) to the "users" parent page. That way you can populate this list with all the users that have read the page using the API when the page is viewed. $page->of(false); $page->viewed->add($user); $page->save('viewed'); $page->of(true); Then you can make use of that field to check to see if the current user is listed in the "viewed" field.
-
Just added a ToDo panel: It reports the following comment types: 'todo', 'fixme', 'pending', 'xxx', 'hack', 'bug' If you have your editor configured, the comment text link opens the file to the line of the comment. The icon reports: the number of items in the template file for the current file / the total number of items across all files. Red: there are items for the current page's template file. Orange: there are items in other files, but none in the current page's template file. Green: no items in any files under /site/templates/ Please let me know if you find any items that aren't being reported, or items repotred that shouldn't be. One other key change in the last commit is to the Console Panel - you can now use CTRL+Enter or CMD+Enter to run the code. This keeps your hands on the keyboard and keeps the code textarea focused making it much easier to quickly make and test changes to your code.
-
Modify inserted image HTML in CKEditor pwimage plugin
adrian replied to pleini's topic in General Support
Are either of these any use to you? http://modules.processwire.com/modules/textformatter-image-link-interceptor/ http://modules.processwire.com/modules/textformatter-image-interceptor/ -
Thanks for all those details. It's really late and I need to get to sleep so I will look at this in the morning, but in the meantime, I see that you have Tracy installed, so you can just insert this line: bd($value); just after this line: https://github.com/adrianbj/TableCsvImportExport/blob/master/TableCsvImportExport.module#L359 This will populate the dumps panel in Tracy - please post the content here. There must be something strange going on, because you don't have the convert decimals option checked, but it is being called anyway. Could you also add: bd($convertDecimals); just after this line: https://github.com/adrianbj/TableCsvImportExport/blob/master/TableCsvImportExport.module#L274 I just noticed I have an incorrect "==" which should be "===" here: https://github.com/adrianbj/TableCsvImportExport/blob/master/TableCsvImportExport.module#L339 - this shouldn't cause the problem - more of a reminder for me to change this tomorrow.
-
Hi @awebcreature - I have just tested with the contents of your CSV but am not seeing the problem here. Based on the line of the error, it looks like you have "Convert comma decimals to dots" checked. But none of your entries have any commas or dot decimals. Did you change the "Columns separated with" to semicolon to match your data? Can you perhaps send me a screenshot of your settings for the import, along with the Details tab of the table field so I can see how the table fields have been defined. Also, a copy of the CSV might be good, just to make sure I am dealing with exactly the same data. Also, can you dump $value before that error so I can see what is in the array?
-
Honestly haven't checked to see if it is appropriate to your needs, but have you tried findMany(): https://processwire.com/blog/posts/find-and-iterate-many-pages-at-once/
-
Hi @nirgendswo and welcome to the forums. You can store the image on the homepage (or a dedicated settings page) and define a variable that grabs the path to the logo: $logoUrl = $pages->get('/')->logo->url(); You can do this in a file that is included for all templates - perhaps and init.php - it really depends on how you are structuring your template files and how you are outputting. PS - you may also find this discussion useful: https://processwire.com/talk/topic/12198-modifying-config-property-eg-sitesettings-from-readyphp/
-
Adding a field via SQL is not that simple. It also needs an entry in the "fields" table. Add that and things might work. The real question is why are you adding it that way? If you need to do it programmatically, why not via the API? Tell us more and we can help more.
-
@jensweigel - please try this commit: https://github.com/adrianbj/ProcessMigrator/tree/3e2121b8fdb68e9d9dc0c6aca8aae75e923a2669 I also have a PR from @jlahijani (https://github.com/adrianbj/ProcessMigrator/pull/5) which may also take care of the problem. I will try to make some time today to review his changes and the last working commit noted above and get a new version out.
-
Hi @kixe - glad you're finding it useful. I have just added Exclude/Include switch that you suggested. The default is exclude to ensure backwards compatibility for those upgrading and not checking anything new in the settings. Thanks for the suggestion and please let me know if you have any problems. Also, I have now made the module always ignore the homepage - before I recommended users exclude it on multilanguage sites, but I couldn't think of any reason why it would be needed on any site, so I think this is simpler and cleaner.
-
Admin Search - no unplubished Pages can be searched
adrian replied to Erik Richter's topic in General Support
This should be fixed now: https://github.com/ryancramerdesign/ProcessWire/commit/d45781d5af21e6aa6b838463a2acc4bcecbcc1a4 Can you guys test and confirm? -
Problem with Ajax images upload and SessionHandlerDB
adrian replied to Soma's topic in General Support
I just came across another issue with SessionHandlerDB - I am getting the following error with the latest Tracy dev core when trying to reopen a session. 1406 Data too long for column 'data' at row 1' in SessionHandlerDB/SessionHandlerDB.module:109 I will be looking into this further shortly, but just wondering if this might have something to do with the image upload as well. Maybe the data field simply needs to be changed to mediumtext or longtext, or maybe it's more complicated. I am definitely having some issues though too with the session being closed that only happens when SessionHandlerDB is installed. -
@tkaranka - multi-language is not currently possible, but we do have some functionality for multiple value fields which could be extended to support multilanguage - the catch is that I am not a ML user myself so I am not terribly familiar with it, although I would love to see BCE support it at some point. Either way I am glad it's been a big timesaver for you. @feniks502 - This option is only available if you define separately configurable pages: and then you check this on the Settings tab of the page(s) selected above: But this is only necessary if you them to be able to select the fields to export. You can also define them yourself on the Settings tab of the page, here: Please let me know if it makes sense now!
-
Can you describe the problems you are having - they should be an easy fix.
-
Ah sorry - yes of course that will be a problem for non-logged in users - didn't think that through If you go with dummy templates you'll still need to create a template php file in the site/templates directory to include your acs.php file. I think the easiest option is going to be to simply instruct users of the module to move acs.php to the root of their site. Another idea might be to check f the url contains acs.php and then hook on the pageNotFound to call a function which contains the logic from acs.php, eg: https://github.com/Notanotherdotcom/MarkupSitemapXML/blob/master/MarkupSitemapXML.module#L28 Maybe I am missing something else obvious - it's early and I am groggy!
-
Hi Mélanie and welcome to ProcessWire! Since you are starting a new project, I would definitely go with the devns branch which is the upcoming 3.x version. It is quite close to being released as the new stable version and many of us are using it on production sites, including processwire.com Don't be shy about asking questions as you start to dive in - I am sure you'll love it
-
Glad you sorted out the name problem. The simplest way for you to handle making acs.php url accessible is to instruct users of the module to move the file into the site root. You could try to do this programmatically on install, but the module may not have write permission so not good to rely on this. If the user has to manually move this is obviously more problematic for the user, so the best approach is probably to make a companion helper Process module and attach the process to a hidden page under Home > Admin. There a several example of this approach in the modules directory, but just because I just did this myself recently with Tracy, take a look at this: https://github.com/adrianbj/TracyDebugger/blob/master/ProcessTracyConsole.module You'll see that it adds a page that can be called via a URL and assigns the Process to that page. Also note that the main Tracy module: https://github.com/adrianbj/TracyDebugger/blob/master/TracyDebugger.module#L38 installs this helper module automatically. Hope that helps.
-
Hey Adam - have you noticed the case used in the names of all other modules? Just match that and you'll be fine.