SimplePortal

Customization => Custom Coding => Topic started by: natasa on May 28, 2018, 12:20:18 AM

Title: Board News modification
Post by: natasa on May 28, 2018, 12:20:18 AM
Hello!
I would like to show, on Board News block, name of forum board post belong to, instead of date, poster, number of views and comments.
So, if I post something on "Custom Coding" board, I would like on Board News to be written "Custom Coding" instead of date, poster name, etc.
How can I do that?
Thanks.
Title: Re: Board News modification
Post by: Chen Zhen on May 30, 2018, 12:27:07 PM

Hello natasa,

Your request requires edits to the ../Sources/PortalBlocks.php file.
Attach that file from your forum Sources folder and I will make the changes for you.

Would you like it to just show the board name as a link to that board?

Title: Re: Board News modification
Post by: natasa on June 15, 2018, 06:03:05 AM
Hello Chen Zhen.

I was thinking, it would be nicer to be name of forum board and author name,
something like:

Posted on 'Board name' by 'Author name'

or similar to that,

and 'Board name' and 'Author name' to be links to that board and that author.

Thanks.
Title: Re: Board News modification
Post by: Chen Zhen on June 23, 2018, 12:34:47 AM

I apologize but I haven't been able to get to this until now.
Attached is the file containing the necessary changes.
Title: Re: Board News modification
Post by: natasa on June 23, 2018, 11:57:31 AM
It is working  :thumbsup:
Thank you!!!
SimplePortal 2.3.8 © 2008-2024, SimplePortal