Simple Portal

Support => English Support => Topic started by: Cryptor on September 20, 2012, 01:24:12 PM

Title: Removing time from recent topics block
Post by: Cryptor on September 20, 2012, 01:24:12 PM
I am having problems with the recent topics block.

How can I change the date & time on these ?  I am not sure what file I need to edit in order to remove the date & time from even showing up.

This might be due to my theme but the formatting appears to be done in such a way that depending on the amount information it takes up either one or two lines.
Title: Re: Removing time from recent topics block
Post by: AngelinaBelle on September 20, 2012, 03:54:02 PM
You can find the sp_recent in PortalBlocks.php

And you are correct -- depending on the space you fit the block into, it might take up either one or two lines per entry.
Title: Re: Removing time from recent topics block
Post by: Cryptor on September 20, 2012, 06:19:06 PM
I found
'<br />[', $item['time'], ']
but it seems that whenever I remove this I loose all formatting on my latest topics block and few others as well.

Any idea what section of it I can take out to get ride of the time (even time & date) without messing it all up ?
Title: Re: Removing time from recent topics block
Post by: phantomm on September 21, 2012, 03:28:49 AM
I don't see anything broken after removing
<br />[', $item['time'], ']

Can you show us screenshot how it looks for you after removing that part?
Title: Re: Removing time from recent topics block
Post by: AngelinaBelle on September 25, 2012, 12:43:13 PM
You want to find
'<br />[', $item['time'], ']</span><br />',
and change it so it looks like
'</span><br />',
You do not want to remove that initial ' that is before the <br />, or you will have a php syntax error.

You are actually removing
<br />[', $item['time'], ']

good luck!
EhPortal 1.39.8 © 2024, WebDev