Jump to content

kongondo

PW-Moderators
  • Posts

    7,479
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by kongondo

  1. Download it from Github (for reference, you would need to change the branch to 'dev' before downloading)...but here you go https://github.com/ryancramerdesign/ProcessWire/archive/dev.zip
  2. background slideshows? @Reems What 'other' problems did you encounter with the other scripts? Maybe better to state those here and get (hopefully) solutions rather than use a script that constrains you...
  3. About guest, what Adrian meant is that have you by any chance disabled guest view of the pages within the templates of these pages? Look under Access for the templates of the pages that are not working properly...See screenshot below.. Btw, normally not a good idea to publicly expose your php info like that
  4. @Matthew, I feel you. A string of bad luck? Difficult to assume it is all a coincidence. Will you move to another host? Just curious...
  5. Yes. You would need to edit your post using the 'full editor'.....
  6. Have a read here as well for 'Best practices before upgrading' https://github.com/ryancramerdesign/ProcessWire#upgrades
  7. .... Distinguished, Hero, Full member, etc - those come automatically with number of posts (I think)....They are not related to pw-moderator........
  8. Processwire is the tool for building anything ....lots of examples around the forums...
  9. Christian, could you please post your questions relating to Service Pages in that module's forum rather than as their own threads. I'm just getting confused . The forum is here: https://processwire.com/talk/topic/1654-module-pages-web-service-servicepages/ Edited for clarity....
  10. kongondo

    World Cup 2014

    Stolen from the web :
  11. kongondo

    World Cup 2014

    Why on earth have they given Messi the Golden Ball? Surely, should have been either Mueller, Robben or James Rogdriguez!!!! at least...tsk, tsk...
  12. kongondo

    World Cup 2014

    Well done Germany, congrats! Best team of the tournament, all round very good team. See you in 2018!
  13. Let's break this down The name of the repeater: mp3_repeater Having iterated the repeater (foreach), each single repeater instance is assigned the variable: $mp3 $mp3 contains various fields one of which is a file field called: file The field file has its own 'internal' fields such as name, description, etc... Putting this together... $mp3->file->description ...should work. You had a typo in your syntax ($file). Btw, why are you using this? data-src='/processwire/site/templates/audio/$mp3->mp3_url' This should work... data-src='$mp3->file->url'
  14. kongondo

    World Cup 2014

    Congrats Dutch on coming 3rd! ...Brazil? What Brazil?
  15. Is this even possible? A template is tied to a page and its content is mapped to the fields attached to that template. If a page were to use another pages template these relations would be lost....I might be wrong here. Anyway, I don't really get what you are trying to do. Why would you want to use another template at runtime?
  16. Tested. This should work... $p_user = wire('user')->name;// set user name $p_page = wire('pages')->get("title=$p_user");// try to get page with the same with user name $p = $this->modules->get('ProcessPageList'); $p->set('id', $p_page->id);// setting the parent page to user name page Edits: Edited code above to show class/module use context... Also edited some typos in your original code (which I also subsequently copy pasted )
  17. I think $p->set('id', '12345') requires and integer. $p_page is not an id but an object. Try: $p->set('id', $p_page->id) Untested... If that is not the problem, then it is the $pages->find. If you are getting only one page, use $pages->get instead...since you only need one ID..
  18. OK, I'll assume it works then?
  19. Hi Alex, Welcome to ProcessWire and the forums... Not sure what error you are getting but I am guessing the problem is the ->id part. A $pages->find will return and array of pages (i.e. there will be multiple ids); so, you only need $pages->find("age>$minAge"). You can then iterate through them. See examples here: http://processwire.com/api/variables/pages/ Secondly, nothing to do with your error, but you need to sanitize your input values first. In this case, you need to do at least this: $minAge = (int) $input->get['minAge']; The above are quick examples...you might need to sort out your double versus single quotes in the selector...I often forget which is which ...I might have missed something....others will correct if I did
  20. What do you mean by no success? I also see that you haven't rendered your form...i.e. echo $form->render();//or return if in a function...
  21. kongondo

    World Cup 2014

    Very tense game that was. Commiserations my Dutch friends..... As for Argentina (or the Dutch for that matter)....I don't see them going past the Germans. Barring the impossible, the Germans have it! Best team of the tournament IMO.
  22. kongondo

    World Cup 2014

    That's the problem with depending on one player (Neymar)...but yesterday they missed Thiago Silva even more! I still think Germany would have beaten them with these two players around....Brazil never really showed up at this WC and let emotions get in the way too many times...
  23. kongondo

    World Cup 2014

    Yes...it was very painful to watch...I was expecting 1 - 0 or 2 -1 to Germany....not the humiliation we saw!
  24. kongondo

    World Cup 2014

    Uh, what just happened??! German efficiency in overdrive! Well done guys, sorry Brazil!
  25. Mike, Thanks for the article. I haven't finished reading it yet, but it is looking good. I am still on page 1 and noticed this important typo... "...and why we prefer the latter" should be "...and why we prefer the former"
×
×
  • Create New...