Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: stoska on February 28, 2018, 07:32:20 AM

Title: Read only board
Post by: stoska on February 28, 2018, 07:32:20 AM
Hi,

I'm interested in whether it's possible to do something like this
(https://i.imgur.com/ItTRuiM.png)
when it is stated that the board for redirection then the number of messages and topics is invisible
I put this if "if (! $ board ['is_redirect'])" and everything ok,
do you perhaps know which function I could do the same if I put the board only read only on the permissions profiles,
Is it at all possible?

Tnx
Title: Re: Read only board
Post by: stoska on March 01, 2018, 12:13:27 AM
Bump
Title: Re: Read only board
Post by: Illori on March 01, 2018, 05:10:19 AM
first off please dont bump within 24 hours we are all volunteers.

to me it is not very clear what you want to do. you talk about a redirection board which would never have topics/posts in it, then you talk about a read only board which may have topics and posts in it. so i dont know what you want.
Title: Re: Read only board
Post by: stoska on March 01, 2018, 08:04:01 AM
first off please dont bump within 24 hours we are all volunteers.

to me it is not very clear what you want to do. you talk about a redirection board which would never have topics/posts in it, then you talk about a read only board which may have topics and posts in it. so i dont know what you want.

I want to say when I put it in Modify Boards this
(https://i.imgur.com/1FPDMp2.png)
yes on the board index appears this
(https://i.imgur.com/XNXdbUf.png)
Title: Re: Read only board
Post by: Illori on March 01, 2018, 08:06:02 AM
if it is read only it should still count the number of posts/topics on the board index. if it does not then you need to see if your mods or themes have modified the logic. we have several read only boards here and they show the topic/post count in the board index.
Title: Re: Read only board
Post by: Diego Andrés on March 02, 2018, 12:23:19 AM
He wants to display the total of times those topics have been read when it is a only read board
Title: Re: Read only board
Post by: stoska on March 02, 2018, 12:27:46 AM
He wants to display the total of times those topics have been read when it is a only read board
Yes
Title: Re: Read only board
Post by: Kindred on March 02, 2018, 09:32:10 AM
oh, that is a *BAD* idea...   you're taking an "expensive" query to start with and adding another "expensive" query on top of that....

I guess the biggest question is "why?"
What is the specific use case where this would be useful information?
People don't care about how many times a topic has been read (especially since that number is artificially inflated every time a search engine spider crawls through.)