Jump to content

Roych

Members
  • Posts

    389
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Roych

  1. The download link for the module is not available. Not in repository and not in Gitub - Prestashop module Does anyone still have this module please? Thank you R
  2. thank you for helping, but from written above I decided it is maybe really better if I go for pages, so I've changed my approach a little. Thank you very much ? R
  3. Hello I need some help oppening repeater item in another template. I tried to look on forum but couldn't find anything helpful for me. I have repeater items for expl. team on my about page. And I would like to show more info about a single team member like (read more ...) with something like <?=$team->url?> or ... I would create new template for team member. Im showing my repeater list with: <?php foreach($page->ostali_sodelujoci_team as $team): ?> <?php $image = $team->images->first;?> <li class="grid-item post format-standard"> <div class="team"> <a href="URL HERE?" > <img src="<?=$image->url; ?>" alt="<?=$image->description; ?>"> </a> <div class="grid-content"> <h3><a href="URL HERE?"><?=$team->title?></a></h3> <div class="naziv"><?=$team->team_naziv?></div> <nav class="social-icons"> <?php foreach ($team->team_social_repeater as $social): ?> <a href="<?=$social->URLassist; ?>" target="_blank"><i class="fa fa-<?=$social->home_info_blocks_icons; ?>"></i></a> <?php endforeach; ?> </nav> <?php $summary = truncateText($team->body); echo "$summary ...";?> <a href="URL HERE?">Read more</a> </div> </div> </li> <?php endforeach; ?> Can this be done somehow with repeaters? I would really like to stay with repeater here if possible ofc. Any help appreciated ? R
  4. Hello, how can I change the markup for my form from this: to this: Thank you R
  5. Hello, my first time using this module and need some help. I created a new list an setup everything in module settings. But not sure how to create a subscribe form on frontend of my site. Any help is appreciated Thank you R
  6. bump ??
  7. hello this is my first time using this module, work great but I'm not sure how should my year, month templates look like. My php is not so good, would appreciate some help here. I would like to post some articles from that "month, year", maybe a title an image and some short text. my year template name is blog-articlelist-year.php and month blog-articlelist-month.php Thank you very much R
  8. Yep, still using it on some sites and works great. ? love PW ...
  9. Yes this one works great. Thank you very much. ? R
  10. Ok i think I got it if there is something wrong, please correct me. Im just postponing this one for one day. Im using the today code wich is gone the second day and next day this one shows. first day: <?php if (date('d-m-Y') == date('d-m-Y', $single->getUnformatted('Start_date'))) : ?> <div class='Danes-text'>TODAY!</div> <?php endif; ?> Next day: <?php if( date('Ymd', time() + 86400) >= date('Ymd', $single->getUnformatted('Start_date')) AND date('Ymd', time() + 86400) <= date('Ymd', $single->getUnformatted('End_date')) ) { echo "<div class='Dates-text'>ONGOING!</div>"; } ?> it looks like it is working on my test events. ? R
  11. that was fast ? It works, is this maybe possible to combine this with the TODAY also? So if event is only one day it would say TODAY if more than one day ONGOING but the first day would stil say Today. Thank you R
  12. Hello, I'm working on a event calendar and so far everything works fine. But I would like to show some text (Still ongoing!) if an event last more than one day. right now I have a text for events that starts today, but would be great if I could implement this also. Im using this to show TODAY text for my events. I have two datetime fields caled (Start_date and End_date) for start and end of events (normal not publish_from & until). <?php if (date('d-m-Y') == date('d-m-Y', $single->getUnformatted('Start_date'))) : ?> <div class='Danes-text'>TODAY!</div> <?php endif; ?> I would like to somehow combine this with events that last more than one day. I'm not good with php so I need your help. I was playing with the code below, but not sure what I'm doing here ... ? <?php $startDate = date('d-m-Y'); $startDate=date('d-m-Y', $single->Start_date); //echo $startDate; // echos today! $eventDateBegin = date('d-m-Y', $single->Start_date); $eventDateEnd = date('d-m-Y', $single->End_date); if (($startDate > $eventDateBegin) && ($startDate < $eventDateEnd)){ echo "is between"; }else{ echo "NO GO!"; } ?> I hope u understand what I mean. Thank you R
  13. Thank you, made it work using So far so good. ? Thank you R
  14. Hello, This was probably already asked, but can't find something like this on the forum. Im having some problems adding some extra html to the menu. I'm using <?php $menu = $modules->get('MarkupMenuBuilder'); $options = array( 'wrapper_list_type' => 'ul',// ul, ol, nav, div, etc. 'list_type' => 'li',// li, a, span, etc. 'menu_css_id' => 'menu-main-menu-1',// a CSS ID for the menu 'menu_css_class' => 'menu',// a CSS Class for the menu 'submenu_css_class' => 'sub-menu',// CSS Class for sub-menus 'has_children_class' => '',// CSS Class for any menu item that has children 'first_class'=>'',// CSS Class for the first item in 'last_class' => '', 'current_class' => 'active', 'default_title' => 0,// 0=show saved titles;1=show actual/current titles 'include_children' => 4,// show 'natural' MB non-native descendant items as part of navigation 'm_max_level' => 1,// how deep to fetch 'include_children' 'current_class_level' => 1,// how high up the ancestral tree to apply 'current_class' 'default_class' => '',// a CSS class to apply to all menu items ); echo $menu->render(1032, $options); ?> as my menu which is working great, but for the mobile menu I need to add extra <span class="toggler"></span> to the parrent so the html will look like this: <li> <a href="#">Home</a><span class="toggler"></span> <ul class="sub-menu"> <li><a href="#">Sub Menu 1</a></li> <li><a href="#">Sub Menu 2</a></li> <li><a href="#">Sub Menu 3</a></li> <li><a href="#">Sub Menu 4</a></li> </ul> </li> Is it possible to achieve this somehow? Thank you R
  15. Was this solved? Im having the same issue. Everything looks fine but the home page SEO won't update. Even if I post link through Facebook. All othes pages and suppages work fine. Looking through source all is there and looks fine. Any ideas? Thank you R
  16. Hello yes ... ? It works great now. This way I can put double quotes back, so my code is back to original html. Thank you very much ? R
  17. Hello, Im having some problem translating some words in if/else statement. my code: <?php if ($single->fajli->url){ echo " <span <span class='big'>>Velikost: <?= $out = __('Size:'); ?></span><br> <span>{$single->fajli->filesizeStr}</span>"; } else{ echo "<span class='big'><?= $out = __('link:'); ?></span>"; } ?> but expl.: <?= $out = __('Size:'); ?> is not working. It wont show up in frontend nor in my backend, what am I doing wrong? My php is not that good ... I also looked all over the forum but no luck. Thank you R
  18. thanks for answers, I got it. It was a repeater, and had no image in it. I somehow made two of the same repeater field and somehow lost one which had no image in it. I deleted the field and it's fine now. Thank you all R
  19. Hello, What is wrong here, Im getting an error. It works but tracy shows error on first line. <?php foreach($pages->get('/home/')->ozadje_strani as $bck): ?> <?php $image = $bck->bgimage->first(); ?> <img src="<?=$image->url; ?>" alt="<?=$image->description; ?>" /> <?php endforeach; ?> PHP Warning: Invalid argument supplied for foreach() ... Thank you R
  20. Hello, Im back here. All is working nice on a simple site, but I'm working on a Multilanguage site and Page reference field won't show anything on different language, but works normal in default. Im using the <?php echo $single->categories->implode(' ', 'name') ?> for the name of the category (page reference field). Am I missing something or ... Thank you. R
  21. Thank you, forgot about the first post, lol ? R
  22. Hello, I'm having trouble creatin a menu. It wont work I tried all sorts of things here, I just got lost, not sure what to do to make it work. The original HTML looks like this: It looks simple but Im out of ideas ? <ul class="nav navbar-nav"> <li class="dropdown active"> <a href="index.html">Home</a></li> <li class="dropdown"> <a href="index.htm#" data-toggle="dropdown" class="dropdown-toggle js-activated">Contact<b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="room-list.html">Contact 1</a></li> <li><a href="room-detail.html">Contact 2</a></li> </ul> </li> </ul> tried with: 'parent_class' => '', 'current_class' => 'active', 'has_children_class' => 'dropdown', 'levels' => true, 'levels_prefix' => 'level-', 'max_levels' => null, 'firstlast' => false, 'collapsed' => false, 'show_root' => true, 'selector' => 'template!=', 'selector_field' => '', 'outer_tpl' => ' <ul class="nav navbar-nav">||</ul>', 'inner_tpl' => '<ul class="dropdown-menu">||</ul>', 'list_tpl' => '<li%s>||</li>', 'list_field_class' => '', 'item_tpl' => '<a href="{url}" data-toggle="dropdown" class="dropdown-toggle js-activated">{title}</a>', 'item_current_tpl' => '<a href="{url}">{title}</a>', 'xtemplates' => '', 'xitem_tpl' => '<a href="{url}">{title}</a>', 'xitem_current_tpl' => '{title}', 'date_format' => 'Y/m/d', 'code_formatting' => false, 'debug' => false It won't work. and not sure how to put the dropdown <b class="caret"></b> inside also. Please any help is appreciated. Thank you R
  23. Hehe, couldn't agree more, backup already done. ? R
  24. Ok, somehow I've managed to get it working again. Fortunately, I found one old DB on a server that was left from latest upgrade. Did a fresh install, copied site folder and this DB and it worked. With some work and some text copying site is back and working again. Not sure why this happened and hope it wont happen again. New site is now here: http://barbsart.si/new/ Thank you all for helping, couldn't do it without your advices here. R ?
  25. thank you for link, but none of that resolved my issue. Not sure what to do anymore. ?
×
×
  • Create New...