Jump to content

bramwolf

Members
  • Posts

    138
  • Joined

  • Last visited

Everything posted by bramwolf

  1. Im feeling extremely retarded by now, but I installed the language support and Dutch pack. Where can I change those two urls?
  2. Hey Martijn, I tried this but I keep getting undefined errors in my console: Uncaught TypeError: Cannot read property 'setDefaults' of undefined jquery.ui.datepicker-nl.js:4 Uncaught TypeError: Cannot read property 'regional' of undefined even though I did target the right element: $.datepicker.setDefaults( $.datepicker.regional[ "nl" ] ); $('#Inputfield_datum').datepicker({ numberOfMonths: 1, showButtonPanel: true, dateFormat : 'dd/mm/yy' }); The form can be found here: http://www.cafepool.nl/reserveren/ Thanks guys
  3. Thanks for your reply man! Atleast now I now that this doesn't work, and why thats the case. Does anybody have a different possible solution?
  4. Hey BitPoet, Thanks for the reply! What I gather from your post is that setlocale has to go before rending the form and that strftime is not going to work since I can't feed it html snippets. so I did this, and later on echoed the form, but this still doesn't work setlocale(LC_TIME, 'NL_nl'); $form = $forms->render('reserveren');
  5. Hey Arjen, Thanks for your detailed explanation I got it to work and it outputted a Dutch version of the current timestamp. However, I'm trying to convert one field of a FormBuilder form to Dutch and I still can't seem to get it to do that. Just using the code without a specific variable or timestamp to convert still outputs the form field in english, and trying to get it to convert all the form data like I tried here, also doesn't work: $form = $forms->render('reserveren'); setlocale(LC_TIME, 'NL_nl'); echo strftime('%e %B %Y om %H:%M', $form); Any ideas how to do this? Thanks for your help so far Gr, Bram
  6. Okay let me try to be a little clearer. I get that I should use both the setlocale and the strftime function codes, but I don't know in which file and at what place I should insert those for this to work. Could you maybe help me with that? thanx
  7. Hey Martijn, I tried setting locale in config.php but not with setlocale and I didn't use strftime. Where, and how would you suggest to use those in order the change the datetime field? Thanks in advance
  8. I think so, this is what phpinfo gave me: _SERVER["HTTP_ACCEPT_LANGUAGE"] nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4,af;q=0.2,de;q=0.2
  9. Hey Guys, I'm super lost with this and am hoping somebody can help me! All I want is for the days of a datetime field used in a form to change from English to Dutch. I've tried change locale in config.php, I've tried installing a dutch language, I've tried ProcessLanguageTranslate but all to no avail, the stupid thing is still in english Could someone please give me a list of steps to follow in order to achieve this? Thanks alot in advance! Gr, Bram
  10. Hey Alan, Actually, both work, although they're different. This is how you would use the doc version: $session->set(test, "test"); echo $session->get(test); // outputs: test Maybe the thing you did wrong was not echoing the get line? I think they left that out of the docs since you can use the variable for multiple operations and not only echo it. for instance, $test_works = $session->get(test) . " worked out fine"; // outputs: test worked out fine Hope this helps
  11. AHA! Thanx man, i did not know that! Maybe it's time to actually read all the docs {:} thanks
  12. I was? I never saw anything that pointed me towards this problem? Is there some specific place I should look for the error? Since i only thing I recall is seeing "The error had been logged because you are logged in as administrator" a few times, but never a specific error other than Internal server error..
  13. Uh, where? I only got a Internal server error displayed in my browser, nothing in the console?
  14. Ah yes!! Thank you Very much I Tried maybe 15 different things next to my code at the top here, But I never applied OutputFormatting, so i kept getting the error. Thanks!
  15. Hey Guys, I've been trying to load a field from a different page, update it's value and save it. that's all,... and i CANT get it to work! Extremely frustrating < $bestelnummer = $fields->get('bestelnummer'); $bestelnummer++; $fields->save($bestelnummer); echo $bestelnummer; Can someone please help this poor little retarded boy out? Thanks guys!
  16. Hey arjen, Thanx for the reply! I already got how I could store that info in for example session variables, but not how I could have my page do that after processing my form. Could you maybe sketch a example of how I could have the info from that form submitted into those variables after submission? Or maybe show me how I could post the data to a different page using the form? Thanx for your help man
  17. Hey Guys, I've been working with Processwire for a while now but mostly only showed the content that was set in the back-end of Processwire by the site admin. Now I would like to store information but I find it hard to figure out where to start. The problem is dat Processwire uses PHP to get and set new values, which is only a server side language. What i want to do is have variables set bases on user behavior. The Case: I'm building a really small site that sells two items. A have a product page where people can insert a quantity of the item in a form input field and than click add to cart. http://www.hayplaybag.com/producten However I have no clue how to convert that information into say, a global variable or a field on the checkout page so that I could read it again on the shopping cart page and present the amount they ordered. How would you guys go about doing such things? I would love to hear your thoughts Thanks! Bram
  18. Hey Apeisa, Yes I do, it's at: http://www.askwadraat.nl/hme4daagse thanks for having a look
  19. Hi Christophe, Thanks for your reply! I pretty much got css covered So naturally I already tried adjusting the height that way, but it has no effect. And the weird behavior is the same on all embedding options. So when using easy embed option A it makes my form 944px high as well :\ Could you maybe think of something else that might cause this? Thanks Bram
  20. Hi Guys! I bought the form builder module and it's great! Much, Much easier than coding all those forms myself But now! I embedded it and even though the form only has about 5 entry lines, the form height is made 944px, while I think it only needs about 500px. Does anyone know where I can change this? I can't find it anywhere, it's not in the css for of the form. This happens when I embed via a line in the text editor and when I do a template embed all the same. Thanks in advance! Bram Wolf
  21. Yes! That's it Much better than my original thought Thanks for your help! Bram
  22. Awesooommeee! Thanks man! That was precicely what I was looking for, never thought to look for that under a page field I created this like shown above with an extra selector to get users with a specific role. Now on the frond end, how do I go about checking these values? something like this? [ sketch programming -> not actual language ] foreach ($page->tags as $tag) { if ($user->name == $tag->name) { if ($tag->value == 1 ) { Show news item } } { something like this? thanx! Gr, Bram
  23. Hey Guys! I might completely miss something but I really can't figure this one out, here's what I want to do: I have a repeater that allows the client to create new news items, but not all items should be available for all users, so I want to tag which users can see the post. At first I created a few check boxes whose's names correspond to the users I want to give access. But for this to work I have to create a checkbox field for each user, and this isn't compatible with the users my client might add in the future. So, what I'm looking for is a way to list users with a specific role inside each repeater item and make them selectable, with for instance check boxes, or a drop down that allows multiple selections. Any ideas of how I should go about achieving this? Thanks in advance Bram
  24. Hey Guys! Thanks for the script Ryan, it works great! The only thing I tried to add is a file upload function. I tried to implement that from different scripts in to this one but with no avail Could anybody help me out? That would be greatly appreciated! This script I'm using is pretty much exactly the one in the quote below. Thanks in advance, Bram Wolf
  25. SOLVED After extensive chat with One.com support I found out that outgoing e-mail from adreses other than the domains will be blocked after about 20 e-mails. So when sending from a adres within the domain resulted in direct delivery.. I want to cry... Is there anywhere I can get a refund for those 4 hours of my life? Thanks for your help though.. Bram Wolf
×
×
  • Create New...