Jump to content

Mike_

Members
  • Posts

    25
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Mike_ reacted to Adriano Faria in Classifieds System   
    For those who have this issue and doesn't want to wait for the next version, open classifieds -> front -> view -> view template and find:
    {{if $advert->container()->forum_id AND $advert->topicid}} Change to:
    {{if $advert->topic()}} Just remember to REVERT the template when you're going to upgrade to 1.0.4.
  2. Like
    Mike_ reacted to Adriano Faria in Classifieds System   
    I see. Thank you. I will reply as soon as I reach my PC to make a few tests. Tks. 
  3. Like
    Mike_ reacted to newbie LAC in (NB41) Enhanced Advertisements   
    HTML
    {{if request.app == 'core' and request.module == 'discover' and request.controller == 'streams' and !isset(request.id)}} Activity Stream After 3 post {{endif}} Selector 
    .ipsStreamItem_contentBlock:eq(2) Position 
    Insert advert after the chosen element(s)  
    HTML 
    {{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums' and request.id}} Advert after first subcategory in category {{endif}} Selector
    .cForumList li[data-forumid]:eq(0) Position 
    Insert advert after the chosen element(s)  
  4. Like
    Mike_ reacted to newbie LAC in (NB41) Enhanced Advertisements   
    Hello,
    1. https://invisionpower.com/forums/topic/429838-nb41-enhanced-advertisements/?do=findComment&comment=2638531
    2. HTML 
    {{if (\IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic')}} {{ try { $topic = \IPS\forums\Topic::loadAndCheckPerms(\IPS\Request::i()->id); $forumId = $topic->forum_id; } catch(\Exception $e) { $forumId = 0; };}} {{if !in_array($forumId, array(14,15))}} Advert before last post {{endif}} {{endif}} Selector 
    article.cPost:last() Position 
    Insert advert before the chosen element(s)  
  5. Like
    Mike_ reacted to newbie LAC in (NB41) Enhanced Advertisements   
    {{if \IPS\Dispatcher::i()->application->directory == 'cms' and \IPS\cms\Databases\Dispatcher::i()->recordId and in_array(\IPS\cms\Databases\Dispatcher::i()->categoryId, array(2, 5))}} code {{endif}}  
×
×
  • Create New...