MyBB Community Forums

Full Version: make a random 'pid'?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the subject suggests, I'm wondering if there is a way to make a random pid. The main reason I want this, is to stop users in my forums accessing private threads and posts, by simply going to the url and changing:
showthread.php?tid=1&pid=1#pid1 to something like showthread.php?tid=23&pid=1#pid25.

Even when restricting certain user groups and setting groups to private, users can still access posts and the portal of that thread.

Is there any way to make all posts ID's (pid) completely random, or make it so that if they follow a link, they wont have acccess to view it, like what's suppose to happen?

Thanks in advance ~Trinkle.
If they can access threads and posts by doing that, your permissions are wrong.

https://community.mybb.com/thread-207974.html

This is a staff thread here, can you view it?

I think the first thing you need to do is check the permissions for the forums you've set to be private. The IDs are generated by MySQL, and even if you "randomly generated" one, people would still be able to go directly to it if they knew the ID if your permissions were still wrong.
(2017-02-03, 08:36 PM)Matt Wrote: [ -> ]If they can access threads and posts by doing that, your permissions are wrong.

https://community.mybb.com/thread-207974.html

This is a staff thread here, can you view it?

I think the first thing you need to do is check the permissions for the forums you've set to be private. The IDs are generated by MySQL, and even if you "randomly generated" one, people would still be able to go directly to it if they knew the ID if your permissions were still wrong.

What permissions should I be changing? I've changed the forums so only specifiic people can view the forum and it remains hidden, but you can still view the thread with the link.
Can you screenshot what you have set up?