Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 856
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

block in board and not in topic

Started by MissyNL, May 31, 2012, 09:52:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MissyNL

Hello..

Well.. the titel says it al... what settings do i need to use in order for me to show the block in a board, but not in a topic?

Greetings,

Missy

andy

#1
There is some new documentation being made for custom display options for blocks ... will copy and paste at the end.

The answer to your question is here:
http://simpleportal.net/index.php?topic=10655.msg55386#msg55386

In the block settings page under 'Display Options', you need 'Advanced Options' selected and then in 'Select Boards', check the boards you want  it to show on. After that, in the custom display options just below, you need to stop it displaying on topic pages for those boards by using a statement to negate that.

-~topic





Hope I don't get into trouble showing this here ... documentation in development - useful for users to see though.
Angelina has been hard at work making new documentation.

Custom Display options are available when you check the "Advanced Options" under Display Options in the blocks editor.  They are for those situations where neither the basic Display options nor the places listed when the "Advanced Options" is checked give you enough control over exactly when the block should be displayed.
These rules are all based on the URL of the page you want or do not want the block to show up on. The custom display options gives you some basic options -- all, portal, forum, sforum, allaction, allboards. Then it gives you ways to specify different parts of the page's URL. SMF URLs use a query string. The query string starts with ?. The ? is followed by a parameter. A parameter might be followed by an equals sign (=) and a value. A parameter (and its value, if it has one), can be followed by a semi-colon (;). The semicolon is followed by another parameter, and so on, until the end of the query string.  Some common SMF parameters are action, topic, board, sa.  Some examples of parameters that mods might provide are game, album, etc
The custom display rules let you specify a parameter, optionally a value, and even allow you to say "only if that is NOT the case", if you wish.
Using a parameter
You may use the "basic" parameters -- all, portal, forum, sforum, allaction, allboards.  If you want to be specific, though, you can use the tilde, or wavy, to give a rule for a parameter of your own choosing.
  • ~board -- block will show whenever board appears as a parameter in the query string
  • ~game -- block will show whenever game appears as a parameter in the query string

    Specify a Value
    If you want to show the block only when the parameter has a certain value (board=10.0, album=99, game=uno), then you must use the pipe or idkin character |.  It is standing in for an equals sign (=).
  • ~board|10.0 -- block will show only when board=10.0 appears in the query string.
  • ~game|uno -- block will show only when game=uno appears in the query string
    Negate it
    The minus sign acts as the negator. So if you don't want it to show up when you are starting a new post (topic or reply), or editing your old post, you could use -~action|post.  If you don't want the block to show up for board 12, you could use -~board|12.0.
    Multiple Rules
    You can use multiple rules for one block.  Just separate them with a comma (,).
  • ~board|10.0 -- the block will show up whenever "board=10.0" appears in the query string.  Even when you start a new topic on that board!
  • ~board=10.0, -~action|post -- the block will show up whenever "board=10.0" appears in the query string. Except, it won't appear whenever "action=post" appears in the query string.  So you won't see it when you start a new topic on the board.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


MissyNL

Thank you very much :) This helped alot... 

Also the text that Angelina made is very clear... Thanks :D