PDA

View Full Version : No permission and No Posts message


Cyricx
10-20-2005, 01:24 PM
Okay this has always been a pet peeve of mine...

When you have permission to view a forum, but not view the threads in the forum it gives you this message in the thread list area -

There have been no posts in the last 30 days in this forum.
Try using the controls below to search for any older posts that may exist

Which typically isn't true, there are posts, you just don't have permission to see them...

I'm hella busy on the site to code this myself right now, but I'm betting it would be a popular hack to change that to something likeP

You donot have permission to view threads in this forum!

It might only be a template edit, but too busy to check myself :), anyone up for a quick one?

Andreas
10-20-2005, 01:33 PM
Hmm, there is no "Can view Threads" permission, only "Can view other's Threads" (and "Can view Thread content", but then Threads will be shown).
So if this is set to No, it only searchs for Threads made by viewing User.
If there are none within the given timeframe it displays that there are none - which is correct.

So how should it determine when to show "You do not have permission to view threads in this forum!" when there is no condition for that?

peterska2
10-20-2005, 01:43 PM
ok, taking a peek now.

got it working nice when there are threads in the forum, but if there isn't it's just telling me that i don't have permission. so nearly there but not quite.

Cyricx
10-20-2005, 02:41 PM
I'm thinking like this

if !view thread content and !view others threads

I've got forums that you have to request access to view the threads, but I want the forums known that they are there by them being able to "View Forum" so they know it exists. Basically, the only permission they have is "Can View Forum" everything else is ticked off.

I have a template conditional for that forumid and people not in the usergroup linking to the request access page.

But in the meantime they have that phrase in the thread box that would make someone think that there were no threads to even be viewed in the forum.

peterska2
10-20-2005, 03:17 PM
Ok, this works. It's in beta coz of the issue where it shows no permission when permission is granted but there are no recent posts in the forum

https://vborg.vbsupport.ru/showthread.php?t=98867

Cyricx
10-20-2005, 05:12 PM
Awesome thanks bud :), I didn't have time to see if it was a template possible edit or not :)

Later I'll try to peek at it and see if I can help solve the bug, gotta do a big server move tomorrow though hehe.

peterska2
10-20-2005, 05:17 PM
If you can fix the bug then that would be awesome! :D

Happy to be of help there.