Jump to content

szabesz

Members
  • Posts

    3,015
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by szabesz

  1. Welcome to the ProcessWire Frorum @leegold a Step by step tutorial: http://blog.mauriziobonani.com/tags/#processwire Basic ProcessWire website workflow - Part Four Basic ProcessWire website workflow - Part Three Basic ProcessWire website workflow - Part Two Basic ProcessWire website workflow - Part One
  2. Thanks Adrian! It was just an idea I wanted to share but not really a feature request or so. And also thanks for reminding me of the RuntimeMarkup module!
  3. I'm sorry Anyway, do not spend too much time on it...
  4. Thanks for sharing Adrian! Is it possible to display values from an other language than the default? I would like to inject [page.url] and its counterparts from the other languages into the Title description of a blog page (just what we see in red on the Settings tab, but) it could be a good overview to see something like: /blog/my-nice-article/ /es/blog/mi-buen-articulo/ I'm willing to hardcode the language IDs into it... Another question: what about "custom" php? Or is it out of the scope of the module, because if it is "custom", why not implement it from scratch in the first place?
  5. ...or, you might want to use min-height or min-width, depending on your needs, e.g.: http://www.stucox.com/blog/dont-squash-me-using-min-width-on-fluid-images/ The background image version has the drawback that it is considered to be a design element, and not an image with an alt attribute: http://buildawesomewebsites.com/blog/html-img-tags-vs-css-background-images
  6. How about using bits? You have 24 × 4 = 96 slots, the state of these can be stored in an 2^96 integer in theory. Since PHP does not support such a large integer you might want to break it up into two: 2^48 + 2^48 (a.m. + p.m.) You can get an idea of how to check bits and/or turn them on/off by googling a bit: https://www.google.hu/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=php+bit+flag+check The drawback of this simple storage method is that if you need to adjust the timeframes in the future (say your client wants every 10 minutes instead), you will need to implement a conversion algorithm to change all the already stored values. But if things does not change at all, or highly unlikely to change in the future, then it is simple and efficient way of storing data.
  7. Did you exclude the "caches" table?
  8. I have enabled the compiler just to test it and it works as expected for me.
  9. It should work that way. At least it used to work. I have disabled the compiler completely in all my sites so cannot test it quickly, but I was the first one to raise this issue an Adrian had solved it. If the issue is back, it was not intentional, I think.
  10. Yes I have had, but gave up at least for the time being. Also, I did not figure out how to "register" MySQLComparisonBundle.exe to utilize the advertized "free for non-commercial version".
  11. I had to realize that "sharing" my Mac's webserver over the network the above mentioned way is for accessing the local websites, whereas connecting directly to MySQL from the Parallels Windows machine is a different matter... However, I just could not figure out how to do it, so if you succeed, please share.
  12. Thanks for the info! I will take a look. I'm also a Parallels user which I normally use for IE/Edge testing purposes only. For those interested, I succesfully use SquidMan to connect to my MAMP Pro's server on my Mac from the Parallels virtual machine and/or from other (mobile) devices on my network (actually, all requests will be routed through SquidMan): Set up a permanent local IP for your local dev computer, for instance 192.168.1.10 or take a note of the one assigned to it by DHCP. Open SquidMan and access the application preferences: - In the "General" tab under "HTTP port" enter "8080" - Next, in the "Clients" tab enter a range of allowed devices. - example: 192.168.1.0/24 and/or 192.168.0.0/24 etc... - In the "Template" tab, comment out "http_access deny to_localhost", like this: # protect web apps running on the proxy host from external users # http_access deny to_localhost - Save changes. Launch your web server and SquidMan.app. Your local web sites are now open to visitors. On a Mac you'll need to adjust your network settings to use this proxy for HTTP traffic: - Open the System Preferences panel, click the Network icon. - Create a new 'Location' that uses the Squid proxy. - Set the HTTP proxy to be "localhost", port "8080" and turn on "Web proxy (HTTP)" on the "Proxies" tab. - Next click on "Apply Now". On your Parallels virtual machine / remote (mobile) device connected to your local network you also need to use the proxy: - Go to your network settings. - Optionally, if it is possible to use profiles: create a new Profile that uses the Squid proxy. - Set the HTTP proxy to be your local dev machine's IP with port "8080". For the Parallels virtual machine set networking to "Bridged Network".
  13. Thanks Adrien, "Undefined index: HTTP_MOD_REWRITE" is gone with even in "CGI mode". About CGI mode with MAMP Pro: in v3.3.2 I used to get: non CGI mode: mod_rewrite: 1, mod_security: CGI mode: "Undefined index: HTTP_MOD_REWRITE"... now in v3.3.3: non CGI mode: mod_rewrite: 1, mod_security: *confirmed off CGI mode: mod_rewrite: , mod_security So it does detect them properly when not in CGI mode, but just as you have noted they cannot be confirmed otherwise. It might be a good idea to use a short phrase, something like "probably not installed". What do you think? Also, the status of mod_rewrite seems to be uncertain too. BTW, is it possible to have the Inputfield Fieldsets be closed by default? I keep getting lost when all of them are open, and they are always open even after saving the settings.
  14. Hi @adrian, I've an issue to report: Error: ProcesswireInfoPanel exception 'ErrorException' with message 'Undefined index: HTTP_MOD_REWRITE' in .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/ProcesswireInfoPanel.inc:467 Stack trace: #0 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/ProcesswireInfoPanel.inc(467): Tracy\Bar->Tracy\{closure}(8, 'Undefined index...', '...', 467, Array) #1 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(127): ProcesswireInfoPanel->getPanel() #2 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Bar.php(81): Tracy\Bar->renderPanels() #3 .../site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-master/src/Tracy/Debugger.php(266): Tracy\Bar->render() #4 [internal function]: Tracy\Debugger::shutdownHandler() #5 {main} I get this when my MAMP Pro's PHP mode is set to "CGI Mode" and the "Versions List" is turned on. I have not found too much on this so called "CGI mode", only this: http://documentation.mamp.info/en/MAMP-PRO-Mac/Servers-and-Services/Apache/ As far as I can see, this mode means the cgi_module is used, so I get the error, but when MAMP Pro's "module mode" is used instead, all is fine. According to PHP Info REDIRECT_HTTP_MOD_REWRITE is on, so it seems to be a strange issue to me.
  15. You can use @adrian's Tracy Debugger module to inspect it: It is in the ProcessWire Info panel. If "Versions List" is enabled in the module's settings, then you get a "Versions List" listing in the panel, where "mod_security: 1" should show up if it is enabled or "mod_security: " if ti is not:
  16. Great! You might want to update the post of the (this way almost) complete example as well.
  17. I prefer "locked down" names to IDs, because as a developer I might choose to delete the page in question for whatever reason (e.g. for testing purposes, etc...) so identifying by names makes it easy to substitute the page just in case... EDIT: One more thing against IDs: it is hard to look for its appearances in the codebase, whereas looking for somewhat unique names (I prefer being verbose in this case too) is easy with a decent code editor, even in multiple files.
  18. @SamC Hi, You might find the solution in this thread: Especially @gebeer's solution might be the one you are looking for, if I'm not mistaken.
  19. Thumbs up Adrian! Is it already Christmas?
  20. Oh, I "love" man pages
  21. Thanks in advance Teppo! I am more than happy to help you by testing if you think I can be of any help this way. I'm also busy-busy-busy too, but I can postpone a few things just to spare some time for this. Since I'm sloooowly moving form WP to PW, I'm looking for ways to keep my useful habits As for the "output" part of the RSS, here is a screenshot of the WP plugin (called Simple History) to give you an idea what it can look like in an RSS reader (notice the login/logout noticies too, useful to keep track of users of sites with not too many users/logins):
  22. Hi, I do not think Ryan will have time to support the module (and this is not the right topic for that anyway), however you can take a look at the code to learn form it. I can also recommend the following as staring points to implement forms based on the PW form API:
  23. Thanks for the quick reply! I also noticed that sql dumps are not born to be equal, but I have not yet dived into the subject matter other than realizing that a simple text diff tool in just no enough I'm not planning to compare online to local, but local to local and/or online to online, and only before and after installing modules, or upgrading modules/system. The idea is that one can quickly spot changes without examining any source code, and if I happen to find something to pay attention to, I might want to spend the time to take a closer look at code level. I also found Toad and sqlyog, but they are running on Windows so not the kind I'm longing for. Nevertheless, can any of them be used to quickly see both schema an data changes? A far as camcima/php-mysql-diff is concerned, do not be scared away by Composer. As long as you do not want to create your own projects, there is not too much to learn, just "use it"
×
×
  • Create New...