Jump to content

Robert Williams

Clients
  • Posts

    19
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Robert Williams

  1. Hi Ryan

    In the manage tags section, it says "If you use an open tag system, tags may tend to get out of control. This is to help you stop that. You can sort tags by name or by usage"

    I'm using the latest version but there's no option to sort by usage, I can only sort by tag, app or area (there's no directional triangle for usage, so can't sort that column)

    Thanks

    Rob

     

  2. 3 hours ago, newbie LAC said:

    Hello,

    
    {{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums' and request.id == 38}}
        Code
    {{endif}}

     

    Thanks for that, one last question :thumbsup:, could you show me the code I'd use for the above, if I wanted the ad to display at the top of several forums eg 10, 16, 38, 40. I gather I'd need to use an array but I don't know the syntax. Thanks

  3. Hi @newbie LAC, thanks for creating this mod. After moving over from vbulletin, it's been a real struggle to replicate the ads I had before.

    I've placed the banner ad below so that it appears above every topic in forum 38

    1.thumb.png.f7d9d74fd8f969a1329d5607cf58477e.png

     

    using this code which I found earlier on the thread.

    {{if \IPS\Request::i()->app == 'forums' and \IPS\Request::i()->module == 'forums' and \IPS\Request::i()->controller == 'topic'}}
    	{{$forumId = 0; try { $topic = \IPS\forums\Topic::loadAndCheckPerms( \IPS\Request::i()->id ); $forumId = $topic->forum_id; } catch( \Exception $e ) {};}}
    {{endif}}
    
    {{if in_array($forumId, array(38))}}
        code
    {{endif}}

     

    How can I also display it at the top of the page shown below (which displays all the topics in that forum)?

    2.thumb.png.84cab67a87ae49f7551e41dd5b8cdcb3.png

     

    Thanks, Rob

     

     

     

×
×
  • Create New...