Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. Maybe it would be possible to have the hosting point the dns to another server?
  2. Looks like it can't connect to the db anymore. What sql did you run? This doesnt look like PW is the root of the problem. Have restarted apache and mysql server?
  3. Still I'm not sure I understand, as it seems to be working. What was the problem again? No matter what I try it always works as it should.
  4. In that thread there's a link to http://bugs.mysql.com/bug.php?id=32202
  5. I don't really understand what you're trying to say, but I can have as many levels and segments still work perfect. http://pw2-dev.ch/about/what/again-another/level/test/ ...is a page http://pw2-dev.ch/about/what/again-another/level/test/xxx I get xxx as the $input->urlSemment1 Edit: Just to make sure the segments you're trying doesn't actually resolve to a page? Because if PW finds a page it won't have url segments.
  6. .. but you see the page you're on even when adding /something to the url? If yes it "should" work.
  7. That would be 5 segments... what if you set up the max segment count in config.php? Edit: Maybe not really, as the segments are counted from the page url, I don't know of what would prevent it from working. Any modules installed third party? Anything that messes with page view or render or urls?
  8. I always thouht allow url fopen is only needed when getting a file from external url and not local server path. Isn't it? When I turn off allow_url_fopen I still can add a image from assets/files/ to a page.
  9. It works fine here.
  10. Sure you can. $pages->find('template=user, roles=editor') Or same with $users
  11. Welcome tron1000. If you put stuff in /wire/ core it will get overwritten if you update PW. Custom stuff and plugins belong to the /site/ or /site/modules folder. I guess it's that php files aren't allowed to be accessed inside site or wire folder and blocked by htaccess. In TinyMCE you have a configuration field you can install plugin from within a folder outside. Look for example this thread http://processwire.com/talk/topic/1655-add-bramus-cssextras-plugin-to-tinymce-inputfield/
  12. There is, the parent option add classes to all parents.
  13. And good old Soma has even a module for it: https://gist.github.com/somatonic/2311994
  14. Yes. Then go to the template of those pages and enter name as the alternative list label under advanced tab.
  15. You can't call children on page array only for single pages. Ou and those invisible pages seem to have no title.
  16. Why does it have no effect. I can set it here in config.php.
  17. It must be either the file isn't there or permission problem. The php copy() fails, and I get the same error when give a file that doesn't exist.
  18. Looks like the slash is too much. Config urls return already a trailing slash.
  19. Don't use PW translation for static text on front-end. I highly encourage to use some php vars or yaml to translate. So you can have de.yaml with suche: "Suche" suchen: "suchen" suchresultat: "Suchresultat" suchbegriff_eingeben: "Bitte geben Sie einen Suchbegriff ein." treffer_gefunden: "{s} hat {c} Treffer ergeben:" keine_treffer: "Keine Resultate gefunden" ... And a script in the header that loads and parses the file depending on the language. Example from one of my sites using symphony yaml class: require_once($config->paths->root . "site/libs/yaml/sfYaml.php"); require_once($config->paths->root . "site/libs/yaml/sfYamlParser.php"); // instance a parser object $yaml = new sfYamlParser(); // parse language file $txt = $yaml->parse(file_get_contents($config->paths->root . "site/languages/" . $lang . ".yaml")); Now you can have localized text echo $txt['suche'];
  20. Have you changed the admin url?
  21. I'm sure that's a facepalm issue. Any modules installed? Custom scripts that mess with page view?
  22. Yeah they're the new hardcore splatter movies, lot's of blood and guts.
  23. Thanks for the report, I added a execution time to 120 seconds.
  24. You could use the config options for page secure files... $config->pagefileSecure = true; $config->pagefileSecurePathPrefix = '-'; and make unpublished pages and their files will not be accessible via url. So you could create child pages under the users page with a file field, and leave those pages unpublished. The assets directory will be prefixed with "-" which is restricted by htaccess. But then you can use a passthru script to send the file to the user if certain requirements are given using wireSendFile(); So for example construct the download link to the file like this on a page the user can see. <a href="/download.php?user=1007&file=filename.pdf">Download file</a> and in download.php with something like this for the passthru and user check // bootstrap PW include("./index.php"); // make sure user is logged in if(wire("user")->isLoggedin()){ $file = $_GET['file']; $userid = $_GET['user']; $userpage = wire("pages")->get(wire("user")->id); if($userpage->id != $userid) die("no access"); // make sure it's the user if($filepage = $userpage->child("include=all")){ // since page is unpublished we add include all // get the file from the page $filename = $filepage->images->get($file)->filename; if(!$filename) die("download not found"); // send file to browser wireSendFile($filename, array('exit' => true)); } else { die("no user page found"); } } else { wire("session")->redirect("/somepage/"); }
  25. I think you found a bug, that variable is nowhere defined. It won't really show up unless a duplicate is found and it would at max throw a warning, but still works.
×
×
  • Create New...