Advertisement:

Author Topic: Read only board  (Read 525 times)

Offline stoska

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
Read only board
« on: February 28, 2018, 07:32:20 AM »
Hi,

I'm interested in whether it's possible to do something like this

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

Offline stoska

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
Re: Read only board
« Reply #1 on: March 01, 2018, 12:13:27 AM »
Bump

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,268
Re: Read only board
« Reply #2 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.

Offline stoska

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
Re: Read only board
« Reply #3 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

yes on the board index appears this

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,268
Re: Read only board
« Reply #4 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.

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,076
  • Gender: Male
  • We know, we'll be coming
    • DiegoCortes on GitHub
    • @comeladrillos on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Read only board
« Reply #5 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

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline stoska

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
Re: Read only board
« Reply #6 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

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,273
  • Gender: Male
    • Kindred-999 on GitHub
Re: Read only board
« Reply #7 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.)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.