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 login or register.

* Who's Online

  • Dot Guests: 994
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Custom Display Options only for topics  (Read 5087 times)

0 Members and 1 Guest are viewing this topic.

Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Custom Display Options only for topics
« on: April 15, 2012, 12:23:03 PM »

For example, if I have board=66.0 and topics on that board:

topic=1.0
topic=2.0
topic=3.0

Is it possible (and how) to show block on topic pages but not on board 66?
Thanks!

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #1 on: April 15, 2012, 01:11:32 PM »
Yes... you can show a block on a particular topic using the advanced options - custom display setting in the block edit.

Try looking at this:
http://simpleportal.net/index.php?topic=10997.msg56677#msg56677

And searching for 'custom display options blocks'

There is a help popup on the block edit page. If you enter the right custom syntax it will display only on the topics you select. Give it a try.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #2 on: April 15, 2012, 01:39:36 PM »

Thanks igirisjin for quick reply.

I know that I can put it like:

~topic|1.0,~topic|2.0,~topic|3.0

but when you have, for example, 50 or more themes it is exhausting.

My question is:
can I put block on all themes of one board at once, but only not on board page itself?

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #3 on: April 15, 2012, 11:22:44 PM »
Theme selection should not make any difference to blocks displayed anyway?
If I change my themes the blocks are still there the same.

Quote
can I put block on all themes of one board at once, but only not on board page itself?

You want it on all topic pages of a board but not on the board index page?

I guess to do this you can select it to show on the board (select board in advanced options).
Then use Idkin (|)  (exact value) with Negator (-) in custom display to stop it showing on the board index page only.


I couldn't find the answer and the documentation doesn't have anything I can find. I think a page with examples needs making - many questions like yours.

I know it can be done - keep trying! Another support staff will know the answer.

This didn't work on my site but something like this - syntax is incorrect. Try something similar and it will stop display on board index.
I selected the board in advanced options then tried to stop it displaying on just the index page but showing on all the board topics - without success - even without ~ it stopped displaying on all topics.
Quote
-board|66

I guess you could also do it for topics using the custom action for the link through that board only.
Sorry I can't be of more help.

« Last Edit: April 16, 2012, 12:56:02 AM by igirisjin »
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #4 on: April 16, 2012, 01:17:43 AM »

Thanks again igirisjin.
You are right, I thought topics and not themes.
And I tried a lot of combinations, but no success  :thumbsdown:

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #5 on: April 16, 2012, 01:23:05 AM »
Same ... tried so many and driving me insane  :P

Cant negate just the board index - all topics also off.
Or try and get topics to show block through that board.

I'm sure it can be done. They need a detailed examples page for these kinds of problems.
Wait a couple of days - one of the others knows the answer.

Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #6 on: April 18, 2012, 08:47:02 AM »
Good news!

Our 'master' developer  Sinan gave this answer - and it works - I tested. The Custom display option is cleverly designed to take php as well. Just copy and paste this into  the box with the board ID. This displays a block in topics belonging to the board, but not display on the board index page. You do not even need to select the board in the Advanced options .... as long as the you change the 'board_id' to the actual number.



Code: [Select]
$php global $context; return (!empty($context['current_board']) && $context['current_board'] == board_id && !empty($context['current_topic']));
If your board ID number is 66? then this:

Code: [Select]
$php global $context; return (!empty($context['current_board']) && $context['current_board'] == 66 && !empty($context['current_topic']));

I think more advanced custom display options are supposed to be in the next big version (2.4).
Let us know if this works for you and mark off solved if ok.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #7 on: April 20, 2012, 04:50:28 AM »

It is working for SMF 2.0.2 and SP 2.3.5 but not for SMF 2.0.1 and SP 2.3.3  :dead:
I think that problem is in SP version?

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #8 on: April 20, 2012, 05:18:30 AM »
For security reasons as well as bug fixes you should always upgrade.

Im not sure if this works only with versions after yours but I tested it on my site and it does work.

There are recent posts about easy ways to upgrade ... I suggest you read this:

http://simpleportal.net/index.php?topic=11083.msg57176#msg57176

Easily done!

The list of backup files in the Packages/backup/ folder give you the order mods were installed - reserve it.
« Last Edit: April 20, 2012, 05:20:57 AM by igirisjin »
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #9 on: April 20, 2012, 07:20:30 AM »

I upgraded on SMF 2.0.2 and SP 2.3.5, but have problem with Custom Title Style for blocks - colors and images do not cover whole title background, but just little left part.

I tried to test it on my test site (SMF 2.0.2 and SP 2.3.5) and get same result: Custom Title Style is not working like it suppose to?

So, I go back on SP 2.3.3.

Anyway, code you gave me is working for SP 2.3.5, but not for SP 2.3.3 (unless there is problem with my mods or something like that).

I'll do some more tests on that Custom Title Style problem  :0.

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #10 on: April 20, 2012, 10:30:43 PM »
Catbg problem should be fixed in 2.3.5 so no need to copy portal css to your theme or make other changes. But hard to understand your description - theme, version and screenshot would be best.
Did you use a fresh/clean unmodified template when you installed the new version of SP?

Similar to this?
http://simpleportal.net/index.php?topic=9079.msg47906#msg47906
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #11 on: April 21, 2012, 06:37:09 AM »
Quote
Catbg problem should be fixed in 2.3.5 so no need to copy portal css to your theme or make other changes.

That problem is solved.

Here is what I am talking about:
I put in block
Custom Title Style: background: #B3D2E7;

In SP 2.3.3 I get #B3D2E7 color as title background.
In SP 2.3.5 I get what you can see on screenshot.

It is SMF Default Theme - Curve, SMF 2.0.2 and SP 2.3.5
« Last Edit: April 21, 2012, 06:39:10 AM by natasa »

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #12 on: April 22, 2012, 01:22:04 AM »
You are using new theme files now? You replaced old theme with no old portal css files and modified code in themes etc?
Or you are using old them files?
You can give a link to site?

As far as I know all these corner theme display problems are fixed if you are using a new, unmodified theme and SP 2.3.5.
I do not know all the details well so can only advise changing the theme files for new ones and trying again.
If that doesn't work, maybe one of the other people here can help.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #13 on: April 22, 2012, 05:48:31 AM »

This is test site, and everything is new.
And it is not old problem with corners, it is problem with Custom Title Style option  :-X




Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #14 on: April 22, 2012, 07:18:11 AM »
Then I dont understand ... I thought it was the title corner/edge that is light blue, that is a problem.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline natasa

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Female
    • Bastica
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Custom Display Options only for topics
« Reply #15 on: April 22, 2012, 07:30:22 AM »

Whole title background should be light blue, and not just corner.

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Custom Display Options only for topics
« Reply #16 on: April 22, 2012, 07:35:14 AM »
If its a new board then this is different from previous questions about a board with 2.0.1 and 2.3.3 - of course, that cant be this test board  -same...?

And this corner/background problem is on a clean newly installed site?
Perhaps a link to your site is best to check.

If you have done everything mentioned I do not know what the problem is. Without a link, a list of all mods and themes, it would be difficult to say what the problem is - maybe someone else can help.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running