PDA

View Full Version : News module displaying threads to admin only


Designer
07-21-2007, 06:52 PM
Hi guys,

I've got what possibly might be a problem with the way i've set things up but after i recently upgraded vBa my news module stopped working but only for regsitered users, was displaying the threads for guests, admins and any other usergroup but registered.

I've tried messing with the permissions for the relevant forums and i've listed my settings below, can someone just confirm that these are right.

Category where news threads are kept has these permissions set:
Can view forum - No
Can view thread content - Yes
Can view others threads - Yes
Rest are set as no


settings for the news module
Maximum threads to display = 10
Cut-off = 0
Max characters = 0
Enable attachments = all
Apply forum permissions = yes (also tried no)
send to friend=yes
attach tag=no
Allowing html, bb and img

Is that right or am i missing something, I also should mention that i recently installed VbSEO and this problem was apparent after that, but i've tried disabling that and renaming htaccess just to verify that that isnt causing it.

Cheers

Tom

Brian
07-22-2007, 08:06 AM
If I'm thinking correctly, the "Can view forum" setting also needs to be enabled.

Our Sponsors
 

Designer
07-22-2007, 08:32 AM
That's cured the problem, cheers Brian

With that in mind, how would i then set it so that the forum is viewable only to admins from the forum but not vBa as i was planning to hide the actual forum from public viewing and use it for like a site news thing :)

Brian
07-22-2007, 09:05 AM
After thinking about it, the 'Can view forum' permission really shouldn't be the one that's used to check permissions anyways. If you'll look in your includes/vba_cmps_include_bottom.php file for this code:
$vbulletin->bf_ugp_forumpermissions['canview']

And replace with this:
$vbulletin->bf_ugp_forumpermissions['canviewthreads']

Then that will cause the program to check the 'Can view thread content' permission instead, and allow you to set your permissions back the way you had them and block other groups from seeing that forum(s). Note that this change will also be applied in the next release.

Our Sponsors
 

Designer
07-22-2007, 12:57 PM
That's sorted it, thanks Brian

Put the can view permissions back to no for everyone other than admin and it still displays as expected for visitors :)