|
[F] canviewthreads and forum list [C-Michael83]
|
|
01-17-2009, 02:49 PM
(This post was last modified: 01-17-2009 02:51 PM by Michael S..)
Post: #1
|
|||
|
|||
|
[F] canviewthreads and forum list [C-Michael83]
Reference: http://community.mybboard.net/thread-431...#pid298546
If you have a forum set for "Can view forum?" to yes but "Can view threads within forum?" to no you can still see the thread list if you enter the forum. Greets, Michael -------------
|
|||
|
01-17-2009, 05:10 PM
(This post was last modified: 01-17-2009 05:10 PM by Ryan Gordon.)
Post: #2
|
|||
|
|||
|
RE: canviewthreads and forum list
Are you sure it's not just because of your admin permissions?
|
|||
|
01-18-2009, 12:20 AM
Post: #3
|
|||
|
|||
|
RE: canviewthreads and forum list
No, because I changed the permissions for the unregistered group. The screenshots were taken as a guest user.
Greets, Michael -------------
|
|||
|
02-15-2009, 02:48 AM
Post: #4
|
|||
|
|||
RE: canviewthreads and forum list
(01-17-2009 02:49 PM)Michael83 Wrote: Reference: http://community.mybboard.net/thread-431...#pid298546For the convenient of others, here's the post: (01-16-2009 04:34 PM)Michael83 Wrote: Revision #4308 ok, I think I found a solution but it's seems crappy, need your opinion: in forumdisplay.php find: (around line 300) PHP Code: // Set here to fetch only approved topics (and then below for a moderator we change this).PHP Code: // Set here to fetch only approved topics (and then below for a moderator we change this).Creativity is a drug I cannot live without. |
|||
|
02-15-2009, 02:52 AM
Post: #5
|
|||
|
|||
|
RE: canviewthreads and forum list
That setting is just so that the user cannot read the thread no?
Because if you click on the thread it usually gives an error. Twinkle Hendleberge thought Earl was pretty cool. Gerry Austin didn't think so, however, so he ran away. My goodness, what is this point of all this? Everything has a point. p.s. you just lost it |
|||
|
02-15-2009, 03:17 AM
Post: #6
|
|||
|
|||
|
RE: canviewthreads and forum list
dvb, that fix won't really do anything/isn't proper
|
|||
|
02-15-2009, 06:04 AM
(This post was last modified: 02-15-2009 06:04 AM by Yumi.)
Post: #7
|
|||
|
|||
|
RE: canviewthreads and forum list
Haven't bothered trying anything, but guessing this is all you need to do:
forumdisplay.php Replace PHP Code: if($fpermissions['canview'] != 1) PHP Code: if($fpermissions['canview'] != 1 || $fpermissions['canviewthreads'] != 1) The fix in the previous thread is causing the lock status, because: PHP Code: if($forum['password'] != '' && $mybb->cookies['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password']) || $permissions['canviewthreads'] !=1)PHP Code: $lightbulb = get_forum_lightbulb($forum, $lastpost_data, $hideinfo); PHP Code: function get_forum_lightbulb($forum, $lastpost, $locked=0)
|
|||
|
02-17-2009, 07:09 AM
(This post was last modified: 02-18-2009 11:53 PM by dvb.)
Post: #8
|
|||
|
|||
RE: canviewthreads and forum list
(02-15-2009 03:17 AM)Ryan Gordon Wrote: dvb, that fix won't really do anything/isn't properAre you sure? on my testing board it fixed the problem... I'll look again later, I don't have the time ATM. But IIRC, I've tried to also prevent the SQL queries from returning results instead of just prevent the output of them (exactly as MyBB does always) and therefore the solution is weird... The solution of Yumi was insufficient IMO because with this solution the user can't view anything in this page, while with my solution the user can't view just the thread listing, this is the proper behavior to the mentioned permissions: (01-17-2009 02:49 PM)Michael83 Wrote: If you have a forum set for "Can view forum?" to yes but "Can view threads within forum?" to no you can still see the thread list if you enter the forum. Update: well, my fix is working but Ryan found a better one
Creativity is a drug I cannot live without. |
|||
|
02-18-2009, 02:59 AM
Post: #9
|
|||
|
|||
| RE: canviewthreads and forum list | |||
|
02-19-2009, 07:44 PM
Post: #10
|
|||
|
|||
|
[F] canviewthreads and forum list
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated. With regards, MyBB Group |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help

![[Image: donation_drive_sig.png]](http://mybboard.net/assets/images/donation_drive_sig.png)


