Daily Lucky Numbers:
1
13
22
29
40
44

Recent posts

#1
General Code/Script Inquiries / Re: Hide content
Last post by Dave - April 15, 2025, 05:30:06 PM
OK I get it now. There is no option in the settings to allow for replies to see the hidden content, but you can set it to use 'Likes' in the current SMF2.1.4.
#2
General Code/Script Inquiries / Re: Hide content
Last post by Dave - April 15, 2025, 05:00:32 PM
Quote from: Duban Black on March 26, 2025, 08:08:43 PMIs there any way to hide the content of a post so that it is only visible to those who reply in the topic?

Something similar to this mod:

https://custom.simplemachines.org/index.php?mod=4013

What's wrong with that mod?
#3
General Code/Script Inquiries / Re: Hide content
Last post by Chen Zhen - April 12, 2025, 12:00:12 AM
You're not explaining what you're trying to accomplish in detail.

Do you want members to have the ability to read the initial (first) post in a topic but can't view any replies unless they have replied to that same topic?

-- or --

Do you want members to have the ability to read the initial (first) post in a topic but can't view any replies by other people and can only view their own replies and any replies from the original topic starter?
#4
EhPortal Support / Re: space between blocks left ...
Last post by deansmar - April 10, 2025, 03:43:41 AM
i have found the code in Portal.css that is responsible for the space between blocks left or right..

find
#sp_main
{
width: 100%;
border-spacing: 5px;
table-layout: fixed;
}

and alter

#sp_main
{
width: 100%;
border-spacing: 3px;
table-layout: fixed;
}
8)
#5
EhPortal Support / Re: space between blocks left ...
Last post by Chen Zhen - April 09, 2025, 06:26:50 PM

It's because that's not the correct class to adjust.
Try adding padding to the ehPortal_cell class.

Find & edit that class from the portal.css file.

Something like this:
.ehPortal_cell {
display: table-cell;
padding: 0em 0.3em;
}

.. I don't know exactly how you want the padding adjusted, so you'll have to use trial & error until you get the desired effect.
#6
EhPortal Support / Re: space between blocks left ...
Last post by deansmar - April 09, 2025, 04:57:08 PM
sorry to say.. the spaceing between blocks left or right remaind the same, no change..
as can be seen in the attachemt
#7
EhPortal Support / Re: space between blocks left ...
Last post by Chen Zhen - April 09, 2025, 01:51:14 PM

You can try using the CSS short hand property for padding for that class to see if it has the desired effect.

Short hand properties are implemented sort of like an analog clock in quarter increments.

  • top, right, bottom, left
  • top|bottom, right|left
  • top, right|left, bottom
  • top|bottom|right|left

So if you want to keep the 0.3em for the bottom, nothing for the top & apply the 0.3em to the left & right then it's like this:

.sp_block_section
{
padding: 0em 0.3em 0.3em;
}

#8
EhPortal Support / space between blocks left or r...
Last post by deansmar - April 09, 2025, 04:54:16 AM
I know there is a chance to alter the space between block vertically

.sp_block_section
{
padding-bottom: 0.3em;
}

But I seem unable to find the padding for left and right.. any help please..
#9
EhPortal Support / Re: Block Title Center
Last post by deansmar - April 06, 2025, 10:04:07 AM
Custom Title Class: centertext

Worked for me... thank you.. 8)
#10
EhPortal Support / Re: Block Title Center
Last post by Chen Zhen - April 05, 2025, 04:33:13 PM

You can use a CSS class or inline style to adjust the positioning of block titles.

Try:

Custom Title Class: centertext

-- or --

Custom Title Style: text-align: center;