Roych

Members
  • Content count

    43
  • Joined

  • Last visited

Community Reputation

6 Neutral

About Roych

  • Rank
    Jr. Member

Recent Profile Visitors

735 profile views
  1. Hello, I'm having this z-index problem within repeater any ideas how to solve this? I searched the forum but no luck. Outside repeater it works fine! Thank you R
  2. Just found out what is causing it, it's the SounCloudembed Formater. the field only works if the SoundCloud link is present, if you don't enter the SC link but only normal text, then the field is not showing Up. I need this working because sometimes there will be SC embedded and sometimes not. Would be nice if this was all in one Wysiwyg field Any idea how to fix that, maybe. Thank you R
  3. Hello, I'm having some weird problem with textarea(ckeditor) field on my new site that I'm working on. The field is showing only on one template and won't show up on any other. All other fields are working fine. Never had this problem before. Any ideas? Thank you, R
  4. Hello, sorry for late response. I'm using the "ProcessWire 3.0.62 © 2017" and "TextformatterSoundcloudEmbed 1.0.0" from HERE I've gone through the fix's and manage to install the module but somehow it just show's me the link and it's not creating a widget. I'm using ckEditor with added textformater "SoundCloud Embed". The field is in a repeater maybe this is the problem? Or Am I missing something? Thank you R P.S.: I tried it out of repeater and it seems to work. Any idea how to use it in a repeater?
  5. Hello Is there any update on SoundCloud textformatter module? I can't get it to work at all. I can't even install it? If I put it in modules I get error Parse Error: syntax error, unexpected '&' (line 117 of /home/ ----- /site/modules/TextformatterSoundcloudEmbed/TextformatterSoundcloudEmbed.module) Any other module for this or ... Thank you R
  6. Yees its working great now Only had to put the " : " on your code first line. No tracy debugger. Now I have bg image on all my pages and one custom settings page Thank you R
  7. Hello, I need some help with repeater images to show on another pages. I have a page called "settings" a template called "settings" and repeater with image field. I need to show that repeater on different pages, but somehow can't figure it out how to.. I have this atm ... <?php foreach($pages->get('template=settings')->BackgroundImages as $bck): ?> <?php $bckgimage = $bck->bgimage->first(); ?> <li><img data-fade='2000' src="<?php echo $bckgimage->url; ?>" alt="" /></li> <?php endforeach; ?> I searched the forum but no success :\ Any help is appreciated Thank you
  8. Yes, thank you this one is working perfectly Good to know this, wouldn't have found that one out myself. Thank you R
  9. Thank you for help I tried something similar, but had no luck. I tried your code It gave error than I realised one ")" was missing. But still not working, sadly. Nothing shows up. Any ideas? <?php if (date('d-m-Y') == date('d-m-Y', $single->Start_date)): ?> <div class='Danes-text'>TODAY!</div> <?php endif; ?> This is what I have now ... R
  10. Hello, I need you help again with this Everything is working fine but I need to put another line of text like "TODAY" if a date is today. <?php $events = $pages->find('template=calendar-post, limit=8, Start_date>=today, sort=Start_date'); ?> <?php if(count($events)): ?> <?php foreach($events as $single): ?> <!-- Event --> <li> <div class="date"> <span> <span class="day"><?php echo strftime("%d", strtotime($single->Start_date)); ?></span> <span class="month"><?php echo strftime("%h", strtotime($single->Start_date)); ?></span> <span class="year"><?php echo strftime("%Y", strtotime($single->Start_date)); ?></span> </span> </div> <div class="event-content"> <h6><a href="<?=$single->url?>"><?=$single->title?></a></h6> <ul class="event-meta"> <li><i class="fa fa-clock-o" aria-hidden="true"> </i> <?php echo strftime("%H:%M", strtotime($single->Start_date)); ?><sup><?= $out = __("h"); ?></sup></li> <!-- <div class='Danes-text'>TODAY!</div> --> </ul> </div> </li> <!-- /Event --> <?php endforeach; ?> <?php else: ?> <div style="font-size: 14px;margin-top:-15px;color: #63b2f5;"><?= $out = __("No upcoming events at this time!"); ?></div> <?php endif; ?> You can see where I wan't to put in the TODAY text. Can this be done? I tried if elseif else but no luck. Any ideas how can this be done? Thank you in advance R
  11. Hello, I like this but how do I use this within <?php foreach($page->downloadi as $download): ?> <a href="<?=$download->fajli->url ?>">Download</a><?=$download->Content ?> <?php endforeach; ?> I'm using pagetable field for adding my "downloads" Thank you R
  12. I agree completely. But still learning here, hehe. Thank you R
  13. Yes now it is working great. I got it working with my code also "I think". I used my version of code and put if-else inside like you've said and somehow works. <?php foreach($page->Slides as $Slides): ?> <?php $image = $Slides->images->first(); ?> <?php if ($Slides->Link): ?> <li data-transition="<?php echo $page->Slide_Effect; ?>" data-slotamount="7" data-link="<?=$Slides->Link ?>" data-target="_blank" > <img src="<?php echo $image->url; ?>" alt="<?php echo $image->description; ?>"> <div class="tp-caption" data-x="100" data-y="115" data-speed="700" data-start="1000" data-easing="easeOutBack"><h2><?=$Slides->title ?></h2></div> </li> <?php else: ?> <?php $image = $Slides->images->first(); ?> <li data-transition="<?php echo $page->Slide_Effect; ?>" data-slotamount="7" data-target="_blank" > <img src="<?php echo $image->url; ?>" alt="<?php echo $image->description; ?>"> <div class="tp-caption" data-x="100" data-y="115" data-speed="700" data-start="1000" data-easing="easeOutBack"><h2><?=$Slides->title ?></h2></div> </li> <?php endif; ?> <?php endforeach; ?> I will use your code ofc, shorter and probably better. Thank you very much R
  14. Thank you for reply I tried your suggestion but I get Parse Error: syntax error, unexpected 'endif' (T_ENDIF) ... Error. not sure what is wrong here Thank you R
  15. Hello, I need some help as I'm not a coder. I've created a slider from repeater which is working great. I need to make some slides with a link so I have created a "Link" field (also working) but now all my slides have links. The one with the new link is linking right but all others link to root. Basicaly what I need is if field is empty show this else this. ..;) I've tried with this: <?php if($page->Slides->Link): ?> <?php foreach($page->Slides as $Slides): ?> <?php // get the very first image from images list since image field is accepting multiple images (unless you change the value of `Maximum files allowed` under Fields > images > Details tab > Maximum files allowed). $image = $Slides->images->first(); ?> <li data-transition="<?php echo $page->Slide_Effect; ?>" data-slotamount="7" data-link="<?=$Slides->Link ?>" data-target="_blank" > <img src="<?php echo $image->url; ?>" alt="<?php echo $image->description; ?>"> <div class="tp-caption" data-x="100" data-y="115" data-speed="700" data-start="1000" data-easing="easeOutBack"><h2><?=$Slides->title ?></h2></div> </li> <?php endforeach; ?> <?php else: ?> <?php foreach($page->Slides as $Slides): ?> <?php // get the very first image from images list since image field is accepting multiple images (unless you change the value of `Maximum files allowed` under Fields > images > Details tab > Maximum files allowed). $image = $Slides->images->first(); ?> <li data-transition="<?php echo $page->Slide_Effect; ?>" data-slotamount="7" > <img src="<?php echo $image->url; ?>" alt="<?php echo $image->description; ?>"> <div class="tp-caption" data-x="100" data-y="115" data-speed="700" data-start="1000" data-easing="easeOutBack"><h2><?=$Slides->title ?></h2></div> </li> <?php endforeach; ?> <?php endif; ?> Not really working. Any help is appreciated. R