Jump to content

SiNNuT

PW-Moderators
  • Posts

    1,011
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by SiNNuT

  1. I'm not sure what you want but the module can already be reached via the top navigation by 'Setup->Import Pages From CSV' You could probably also make some easy adjustments to the module file before installing it to make the page go wherever you want. https://github.com/ryancramerdesign/ImportPagesCSV/blob/master/ImportPagesCSV.module#L548 and further, i guess change the $parent variable.
  2. I prefer http://www.uniformserver.com/ for my wamp needs. It doesn't look really sexy but it is lightweight and powerfull. It's easy to setup vhosts, smtp for testing using gmail, hotmail etc. It keeps up with versions really well. http://wiki.uniformserver.com/index.php/Main_Page
  3. Up until now i've never had the need to go beyond simply echo'ing out stuff directly on my template files but it's nice to see people experimenting with other approaches, although it's a bit over my head and i don't quite get this StampTE stuff (looking at https://github.com/gabordemooij/stamp didn't help much but that's just me).
  4. I'm going to give Textadept a run this weekend. Always fun to try a new texteditor.
  5. Locate head.inc in your templates directory, and remove the following line (probably line 67) from it: $children->prepend($homepage); Should do the trick. It's always good to read through the files, they contain a lot of informative comments to get you started.
  6. In < PHP 5.4 you can't use this inside of closures i think.
  7. or $phpDatabaseObject
  8. In wire/config.php there is: $config->http404PageID = 27; So i think you could override that in you site/config.php to reference the page id of your newly created 404 page. But it would be better to solve the strange errors. To be honest i don't have a clue. I don't think this is caused by the fact that you run on a subdir per se, because a lot of people do and it would have come up more often. So it must be something in your platforms configuration. Maybe some .htaccess stuff conflicting with your apache settings? Also, what browser are you using? Is this error also happening on other browsers?
  9. When you clone a repository you 'get' all the branches that are available. In Github for Windows you can then switch between branches. When you switch to the dev branch the dev branch will be represented on your file system. You can switch branches via these buttons in Github for Windows, if i wanted to switch to master i would simply click on the blue bar that says master: When you're behind on commits the sync button will get 'active'. Clicking it will pull in the commits from Ryan's PW repo.
  10. One simple approach could be to code up some Shortcodes for them to use inside a textarea. This way the developer can control the functionality and the client can insert and position stuff with relative ease. The developer should write some clear instructions to go along. Of course, this has it's limitations but if done correctly this can be pretty powerful. <fieldbodytext> <p>some text> [myGallery] // it could use pics attached to a page image field <p>some more text</p> // embed a video using mods.pw/D <p>some more text</p> [myLatestNewsListing] <p>etc.</p> </fieldbodytext>
  11. http://www.debuggex.com/
  12. If you make sure your surname field is only used for users couldn't you just go with a direct sql query in your template? $results = $db->query("SELECT DISTINCT SUBSTRING(surname,1,1) AS letter FROM surnametable");
  13. Or just view via Chrome dev tools or equivalents in other browsers, you probably see nicely structured html.
  14. Nice site! How did you set up the portfolio section filtering? Some kind of urlsegment logic?
  15. For reference; Nico just recently added some checks to his MarkupShortcodes module like so: http://processwire.com/talk/topic/1819-markupshortcodes/?p=32176
  16. I'm a bit out of my depth here Ryan. Maybe there's something funky going on with some of the data in this particular site of Soma. If i look here http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_coercibility IMPLICIT would be the column value and COERCIBLE the literal string, so i thought maybe somehow a utf8 string is being passed as a page name. I don't know what the effects would be, but maybe Soma's error? Maybe i'm thinking too simple. Some imported data maybe, or the stuff that goes into $langpath? Wonder if Soma has gotten any further insights into this error. Some further light reading on this subject: http://airbladesoftware.com/notes/fixing-mysql-illegal-mix-of-collations http://www.bluebox.net/about/blog/2009/07/mysql_encoding/
  17. Ryan, everything seems to be working fine now, so it must have been during those 5-10 minutes that is visited the site. Really like the condensing of markers btw.
  18. Hi horst, great initiative. I'm not sure how far in you are with writing the code but maybe you can take a look at some already existing libs if you run into problems: http://phpimageworkshop.com/ http://imagine.readthedocs.org/en/latest/ http://stefangabos.ro/php-libraries/zebra-image/
  19. "To save space, you may delete this directory (and everything in it): ./site/install/ - it's no longer needed" <---Quoted from the PW install routine
  20. Does the map only work on mobile? Because unless i'm missing something obvious; i don't see a map on the page you linked to? Only a categories bar on the left and a really big white canvas to the right. I only had a really quick look but noticed that the pagination on the http://www.synbioproject.org/topics/ page does not work, or at least, /topics/page2/ seems to show exactly the same content.
  21. I know horst, that's basically what i said. Anonymous functions are often referred to as closures (which is not entirely correct i suppose). Have a look at php docs for preg_replace_callback at the callback parameter and the example. Then at the similar code in Nico's module. You could probably use create_function instead of the closure but maube someone with better PHP knowledge can give better advice.
  22. Oops!! I'm clearly not 1337....dang
  23. I think it's not the preg_replace_callback that is causing the 'problem', but the use of a anonymous function in there. Maybe it could be done using create_function instead but i'm not sure this is desirable.
  24. Next milestone: member number 1137!!111
  25. It would go to far to ask PW to somehow analyze all module code. For PW to be able to check something i guess it's always up to the module author to provide info about the min. required PHP version, if applicable. Perhaps require it in the getModuleInfo part. PW then could always do version_compare against the PHP version available on the system. And maybe show a Pro-Tip urging people to finally update to 5.3+
×
×
  • Create New...