2007-12-11, 09:09 PM
Pages: 1 2
2007-12-11, 09:37 PM
Not that i am aware of. How would people reply to other peoples threads if they could only see theirs? Maby i dont understand. There is a mod (i think by DenisTT) that gives you extra options for users on a user by user basis such as cannot modify avitar and a few other options.
What exactly do you want to use it for because there might be another way around it.
What exactly do you want to use it for because there might be another way around it.
2007-12-11, 09:44 PM
Made this a lil' while ago;
Upload into your ./inc/plugins/ folder and activate, go to your settings page and fill in the FIDs seperated by comma.
And do this codechange in forumdisplay.php
Open forumdisplay.php
Find
Add Below
Find
Upload into your ./inc/plugins/ folder and activate, go to your settings page and fill in the FIDs seperated by comma.
And do this codechange in forumdisplay.php
Open forumdisplay.php
Find
$plugins->run_hooks("forumdisplay_thread");
Add Below
if($mybb->settings['vot_status'] != "no")
{
$fids = trim($mybb->settings['vot_fids']);
$fids = explode(",",$fids);
$groups = trim($mybb->settings['vot_groups']);
$groups = explode(",",$groups);
if(in_array($thread['fid'], $fids))
{
if($thread['uid'] != $mybb->user['uid'] && !in_array($mybb->user['usergroup'], $groups))
{
continue;
}
}
}
Find
if(!$threadcount)
Replace By if(!$threadcount || !$threads)
2007-12-11, 09:50 PM
Wheel-World Wrote:Not that i am aware of. How would people reply to other peoples threads if they could only see theirs? Maby i dont understand. There is a mod (i think by DenisTT) that gives you extra options for users on a user by user basis such as cannot modify avitar and a few other options.Moderators and Administrators should be able to see the posts only. Or anyone in a group specified.
What exactly do you want to use it for because there might be another way around it.
LeX- Wrote:Made this a lil' while ago;
Upload into your ./inc/plugins/ folder and activate, go to your settings page and fill in the FIDs seperated by comma.
And do this codechange in forumdisplay.php
Open forumdisplay.php
Find
$plugins->run_hooks("forumdisplay_thread");
Add Below
if($mybb->settings['vot_status'] != "no") { // FIDS $fids = trim($mybb->settings['vot_fids']); $fids = explode(",",$fids); if(in_array($thread['fid'], $fids)) { if($thread['uid'] != $mybb->user['uid'] && $mybb->user['usergroup'] != 4) { continue; } } }
Find
Replace Byif(!$threadcount)
if(!$threadcount || !$threads)
Thanks, Will try that later
2007-12-11, 10:00 PM
pastilles Wrote:Thanks, Will try that later
If you want to permit groups to override, get the new file and get the new filechange (my first post) (its lil' different from the one you've have in that quote) =P By default only admins can see all threads.
2007-12-11, 11:06 PM
hey LeX-, you need to replace
global $db, $mybb;
with global $db, $mybb, $thread;
becuase without this change the users still able to view the thread, if they followed the last post link!2007-12-12, 01:24 AM
Hasn't quite worked.
http://www.letpoliticstalk.com/test/show...hp?tid=455
Can still see the same message when logged in with other user accounts.
Did the changes you mentioned. Any idea?
Thanks for your help
http://www.letpoliticstalk.com/test/show...hp?tid=455
Can still see the same message when logged in with other user accounts.
Did the changes you mentioned. Any idea?
Thanks for your help
2007-12-12, 06:20 AM
Works fine overhere. So the problem relays on your side. And i can't see anything, cause your permissions won't allow me.
Done; Could be a cause why its not working with 'pastilles'.
pepotiger Wrote:hey LeX-, you need to replace
withglobal $db, $mybb;
becuase without this change the users still able to view the thread, if they followed the last post link!global $db, $mybb, $thread;
Done; Could be a cause why its not working with 'pastilles'.
2007-12-12, 10:27 PM
I uploaded the updated file with no luck
http://www.letpoliticstalk.com/test/foru...php?fid=38
You can see now... I have changed the permissions etc. Can you register and test? Thanks
http://www.letpoliticstalk.com/test/foru...php?fid=38
You can see now... I have changed the permissions etc. Can you register and test? Thanks
2007-12-13, 06:18 AM
pastilles Wrote:I uploaded the updated file with no luck
http://www.letpoliticstalk.com/test/foru...php?fid=38
You can see now... I have changed the permissions etc. Can you register and test? Thanks
What are your settings ?
Pages: 1 2