Jump to content

Roych

Members
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Roych

  1. Thank you ? Looks fine and no error anymore. ? I have $start twice because if there is only one date today selected my extra text didn't show. R
  2. Hello, I need some help with coding please as Im not very good at it ? I'm working with some custom event calender and I have two datetime fields (Start_date, End_date). I don't want my "End_date" to be mandatory, but I get warning in front end if I don't populate it. How would I fix this. (some if else, or ...?) I'm echoing some extra text if event date is today, or it still lasts (actualy kinda works ?). My code atm: the problem is $end = date('d. m. Y', $single->getUnformatted('End_date')); I guess! Warning I get is: Thank you very much R
  3. Hello, I'm working on a new site and I was trying to import only one page from drupal with csv import. The page got imported but the site got so slow it won't even open the imported page. I can see it in the tree menu I can edit it, but the site just hangs when trying to view it. Actualy the entire site is so slow. First I tried to modify it by changing some text and save, it was saved but site was still slow. I deleted the page but the site still remains slow and it wont open the page where this post was in. I only had two posts one that I did in PW as a test (which was working great) and one imported (after importing site got slow). Any ideas what could be wrong. Only error I got in log is: I don't think that one post would take so much memory size? Thank you for help R
  4. Hello, I need to create a survey for my site and was wondering what would be the best way to start this. Is this somehow posible with FormBuilder, so the answer would depend on selected question. Or is there any simpler solution? Thank you R
  5. Roych

    Twack

    Hi, maybe silly question, but could you tell me how to try out you musical-fabric package (how to install it)? There is only SITE folder inside. Thank you R
  6. Thank you all, got it up and running perfectly. ? R
  7. Hello, elabx I tried your code and it works perfect. I was looking for this so long. You are the best ? Thank you very much R
  8. Hello I need some help with aligning every second post different than the first. First post with image on the left and text on the right and every second with text on the left and image on the right. I have a repeater field with title, image and text. I would like to stick with repeater if possible. I tried to look on the forum and google but no luck as I'm not even sure how this function is called. It would be great if someone already did something similar. Thank you very much R
  9. If I remove echo's it does not show me anything.
  10. @dragan Thank you for the code, I tried it but somehow didn't work for me. So I played with it it a little. It works now but not sure if everything is right as it should be. Thank you R
  11. Good one, this would work, but it is a little to long I would maybe still go with one word if possible. ? So number first then the word. Thank you R
  12. Hello My primary language is Slovenian. The numbers go to 5 from then on it can always be SLIK (Images). I was thinking the translatable string variable so I can translate both languages. But not sure how to set this up. Does it have to be the php "if else" statement or is there some other aproach? I'm kinda lost here. Thank you R
  13. Hello I'm working on some gallery and Im counting images in each album. So I have the number but now I would like to echo the text IMAGE, IMAGES next to the number of images. How would I do this? I need more than just 1 image, 2 images. In our language we also have dual so I need (in slovenian) 1 slika, 2 sliki, 3 slike, 4 slike, 5 slik ...... I have two languages ENG and SLO! Im counting images with: <a href="<?=$album->url; ?>"><div class="imgcount"><?=$album->images->count();?> IMAGES???</div></a> I hope you know what I mean. Im not a coder, not realy sure where to start here. Thank you R
  14. Hello, just a question ... Is this module now free or ...? As I can see you can download a "free" copy of Recurme from the site, but it's not working because you still need a license key. If it is free to try is it possible to get a license somehow? If it is no longer supported not sure if I would pay for it. Thank you R
  15. Hello Maybe this was already asked, but couldn't find it on the forum. I would like to connect two datetime fields together, so when I change the date on expl. "startdate" field the "enddate" field would change to the same date, so I dont have to do it manualy everytime but would still be able to change it aftewards. Hope you understand what I mean. Tried the publishdate but not what I need. Thank you R
  16. Yes I have a hidden website field. R
  17. bump
  18. Hello, Im usin SCF and I'm getting a lot of spam lately, is there any captcha or something else available for this. I'm not a coder so not really sure how to solve this on my own. My code right now is: <?php $scf = $modules->get('SimpleContactForm'); $options = array( 'btnClass' => 'sc_button sc_button_style_filled sc_button_size_medium', 'btnText' => 'Po&#353;lji', 'classes' => array( 'item' => 'sc_form_item sc_form_field label_over' ) ); echo $scf->render($options); ?> Any help is appreciated ? R
  19. Forget about this it is working!!! It was my HTML class that was causing the problem. Hello, Im having some problems with sending forms, I tried everithing but the submit button wont work. Im using this code. <?php $scf = $modules->get('SimpleContactForm'); $options = array( 'btnClass' => 'sc_button sc_button_style_filled sc_button_size_medium', 'btnText' => 'Po&#353;lji', 'classes' => array( 'item' => 'sc_form_item sc_form_field label_over' ) ); echo $scf->render($options); ?> The form looks great also the HTML5 "required" attribute is working when I click on a send button. But the button is just not sending or even giving me some error or something, It looks completely unresponding. Im using the same code on some other site and its working great. My rendered html (view source) looks like this: Any ideas? Thank you R
  20. Hey, no I didn't, sry. I chose a different path that was still working ok. R
  21. Hello, I need some help please. ? With "configuring the menu" and adding some additional stuff to my mobile menu, but not really sure how to do that. I would like my Logo to show in my mobile menu, and I would also like the language switcher there, but cant figure it out. I tried all sorts of things but cant make it work. My html looks like this: In html the logo is there, but when I try tu give it to menubuilder code it is gone. I've tried with: but there is no logo inside. I also tried with both upper codes and added images to them but not working. And second question, I would also like to put language switcher to it, not sure how to combine this ... I hope u understand what Im trying to do. Any help would be appreciated. ? Thank you R
  22. Hello, My first time trying to add form to a modal box. I got it loaded, but after submitting or if there is an error my modal box closes. Is there any way to leave it open until it is succesfully submitted and the success text would also show in the same modal box until I close the modal box myself. Im using the FormTemplateProcessor module for forms. Right now my code is: <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#forma">Buy a Ticket</button> <div class="modal fade" id="forma" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Buy a Ticket</h4> </div> <div class="modal-body"> <?php if ($page->koledar_obrazec) : ?> <?php echo $page->text_k_nakupu_kart ?> <br> <?php $form = $modules->get('FormTemplateProcessor');$form->template = $templates->get('Obrazec-karte-dogodki'); // required $form->requiredFields = array('obrazec_vstopnice_ime', 'obrazec_vstopnice_mail', 'obrazec_vstopnice_naslov', 'obrazec_vstopnice_telefon'); $form->email = 'info@povemodkrito.com'; // optional, sends form as email $form->parent = $page; // optional, saves form as page echo $form->render(); // draw form or process submitted form ?> <?php endif; ?></div> <div class="modal-footer"> <button type="button" class="btn btn-default inverted" data-dismiss="modal">Close</button> </div> </div> </div> </div> I tried to look on the forum, but not sure what to look for exactly as I have never done this before. Any help greatly appreciated. Thank you R
  23. Hello, any update on this or maybe any other module that works. I tried the opened issue above but there is no working solution there or am I missing something. Thank you R
  24. Hey, All the best in 2019! ? Thank you for answers, I will try to work something out and see what's going to come out ? Thank you ? R
×
×
  • Create New...