Jump to content

sakkoulas

Members
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sakkoulas

  1. ok i think i did it, i have only one problem my button appears in all InputTextFields,is there a way to show my button in the InputeTextField that i want? i use the addHookAfter('InputFieldText::render'). thanks
  2. hi can anyone help me with a module that i want to build. the total idea is to use some external image manager program add load images inside my page without upload them inside my page. so my page will be lite and if my images database become to big ι can move it in a new server and everything will work fine. is that possible? i think inside page to have a field maybe url FIeld with a button, and on click will popup iframe of (ajaxplorer or maybe some other programme) that is it inside my root. so i can see files and images of ajaxplorer. the second step is when i select a file inside (ajaxplorer or maybe some other programme) i will get the url inside my urlField. i have look many modules but i can't find how they create the button inside the page. thanks.
  3. Hi Pw i am trying to build a module to display the images list as grid. i have a situtation where images field has 100 images and it s hard to order sow many images in a list so i want the images to be in grid instead of list so now is 1 image 2 image 3 image 4 image 5 image ... and i want 1image 2image 3image 4image 5image 6 image .. i have figured that if i delete the axis: 'y', inside wire/modules/Inputfield/InputfieldFile/InputfieldFile.js and add this css .InputfieldFile.InputfieldImage.ui-widget { display:inline-block ; width: 32% ; padding-right:10px ; margin-bottom:25px ; vertical-align:top ; } it works so i want to build a module with this attributes what hook i have to use?
  4. hi hnns you mean something like this http://processwire.com/blogtest/archives/ this is pw blog profile and you can findit here http://modules.processwire.com/modules/blog-profile/
  5. hi ryan is it wrong if i embed templates-admin/default.php header code inside my page? for example, i have create a new page inside admin with a custom template i have made and inside this template i have include the attached file. for now everything seems to work ok admin-head.php
  6. thanks ryan this is some words in greek ΝΕΕΣ ΕΠΙΧΕΙΡΗΣΗΣ
  7. i have the same problem with doolak with greek characters. is there any solution; thanks
  8. I ended up with this $categoryUrl = $_SERVER["REQUEST_URI"]; $categoryToRender = explode("/", $categoryUrl); $category= $pages->find("categories.name=$categoryToRender[2]");
  9. thanks diogo This is what I was looking for
  10. thanks guys. diogo, How did I miss this? all morning i'm searching the forum for a post like this thanks again
  11. Hi everyone, i am a little confused is it possible for a widget to show the id of the page that render it? so the widget can have a selector that filters results by the id of that particular page? thanks.
  12. thanks ryan, the $config->protectCSRF = false; didn't work for me, the problem came up, i think, after Centos or parallel plesk micro update. today, until now, works fine.
  13. hi today i can't login in processwire, i get intenal server error every time i restart the server, it works for a while, but then it shows again internal server error one time in admin area i get this error... i have try the solutions that i found in forum but they didnt work any idea? thanks
  14. sorry! maybe some other member can help you like soma or diogo
  15. hi wishbone i don't know if this helps you but the same error is described here http://processwire.com/talk/topic/2765-problem-with-command-line-scripts/?hl=%2Bexception%3A+%2Bconnect+%2Berror+%2B2002
  16. Hello everybody i don't know if this is a dumb idea, but is it possible (or it is not necessary) to test the response speed of selectors. for example $pages->get('/page/')->children('date>=$date'); $pages->find('template=name, date>=$date'); $pages->get('/page/')->find('date>=$date') which of those three selectors is faster, sorry again if this is dumb question. thanks
  17. hi Marco Angeli http://modules.processwire.com/modules/maintenance-mode/ http://processwire.com/talk/topic/2475-quick-tip-for-testing-on-live-website/
  18. i use dd/mm/yyyy date format and H:i time format and working fine
  19. hi wanze, i have a problem with this module. When i use english characters is working fine and it exports successfully the pdfs. But with the greek chars i get question marks. is there any solution for this; i have search the tcpdf examples but i can't make it to work thanks.
  20. hi, can i have some help please; every time I save the form as page, with random date selected, page saves the current day, this is my code $out = ''; $form = $modules->get("InputfieldForm"); $form->action = "./"; $form->method = "post"; $form->attr("id+name",'subscribe-form'); $field = $modules->get("InputfieldText"); $field->label = "Ονοματεπώνυμο"; $field->attr('id+name','name'); $field->required = 1; $form->append($field); // append the field to the form $field = $modules->get("InputfieldEmail"); $field->label = "E-Mail"; $field->attr('id+name','email'); $field->required = 1; $form->append($field); // append the field $field = $modules->get("InputfieldDatetime"); $field->label = "Ημ/νια"; // $field->value = $input->post->date; $field->attr("id+name","datetime"); // $field->attr("readonly", "readonly"); $field->required = 1; $form->append($field); $field = $modules->get("InputfieldSelect"); $field->label = "Ώρα"; $field->attr("id+name","time"); $ttoday = strtotime(date('Y/m/d')); $tday_end = strtotime( "23:59:59" ); $searchDate = wire('pages')->get('/orders/')->children("date>=$ttoday, date<=$tday_end"); foreach ($searchDate as $s) { $currentTime = substr($s->date,11,5); $closedTimes[] = $currentTime; } $random = $closedTimes; $start = "08:00"; $end = "15:00"; $tStart = strtotime($start); $tEnd = strtotime($end); $tNow = $tStart; while ($tNow <= $tEnd) { $newdate = date("H:i", $tNow); if (in_array($newdate, $random)) { } else { $dateTnow = date("H:i", $tNow); $dates[] = $dateTnow; } $tNow = strtotime('+30 minutes', $tNow); } foreach ($dates as $d) { $field->addOption($d,$d); } $field->required = 1; $form->append($field); $field = $modules->get("InputfieldText"); $field->label = "Τηλέφωνο"; $field->attr('id+name','phone'); $field->required = 1; $form->append($field); // append the field to the form $submit = $modules->get("InputfieldSubmit"); $submit->attr("value","ΟΚ"); $submit->attr("id+name","submit"); $form->append($submit); if($input->post->submit) { $form->processInput($input->post); $email = $form->get("email"); if($email && (strpos($email->value,'@hotmail') !== FALSE)){ // attach an error to the field // and it will get displayed along the field $email->error("Sorry we don't accept hotmail addresses for now."); } if($form->getErrors()) { // the form is processed and populated // but contains errors $out .= $form->render(); } else { $sName = $form->get("name")->value; $sEmail = $form->get("E-Mail")->value; $sDate = $form->get("datetime")->value; $sTime = $form->get("time")->value; $tr = new Page(); $tr->template = $templates->get("order"); $tr->parent = $pages->get("/orders/"); $sEmail = $sanitizer->email($form->get("email")->value); // $sDate = $sanitizer->datetime($form->get("datetime")->value); $tr->of(false); $tr->name = $sName; $tr->title = $sName; $tr->body = $sEmail; $tr->date = strtotime('d/m/Y',$sDate).' '.$sTime; $tr->time = $sTime; $tr->save(); $out .= " $name> "; } } else { // render out form without processing $out .= $form->render(); }
  21. are you looking for something like this; foreach($page->images as $image) { $large = $image->width(500); $thumb = $image->size(100, 100); echo "<a href='$large->url'><img src='$thumb->url'></a>"; } details here
×
×
  • Create New...