I have been using the archive script on various forums and really
like it. In SE terms I think it's very good and it's certainly very helpful - so thanks!
I know it's quite an old script so am not sure if it is still being
supported but I have however just found a big fault and wondered
if anyone could help with it?
Whilst the script only shows those categories of the forum that
are publically viewable - it still shows postings from within private/restricted sections.
To explain with an example:
Ok say in phpBB you have set up a Private category for certain
members called: Closed Room. You have set the permissions
correctly in phpBB so that it only shows to those members
that have been authorised to view it.
With the Archive script index page you will see all the other
categories of the forum but would not see the Closed Room as it is
not publically viewable.
Now if there was a posting in the category Closed Room with a
title "my first posting here" and posting number 1200 you will
find that there is a page in the archive called:
However it should not show that posting as it is a private section.
Now you won't be able to navigate to it from within the archive
script but it is there and is picked up by Google.
Basically what i'm saying is that the script is letting postings in
restricted sections be displayed. This became apparent to me
when postings in a private moderators category were found
Was this meant to be like that? Is there a way to block postings
from certain restricted categories from appearing in the archive??
I do like the script and would like to continue using it but have
had to take it down at the moment until I can resolve this.
Thank you very much, Steve, for this bug report.
It is certainly an issue that we will try to solve as soon as possible. Reply with quote
SJD New Programmer
Joined: 18 Sep 2006 Posts: 3
Many thanks for the reply - I don't suppose you have been able to find a solution to this yet have you?
Looking at the script it looks like the problem lies when the posts are pulled from the phpBB database. At this point it could check the forum_id data that is listed on the posts record.
I had thought that one way to get round this is to add another part to the sql query that pulls the postings from the phpBB database. Say you could specify a couple of forum id numbers that relate to the private sections in a config file - then when it searches for the postings it also checks forum_id against those numbers listed in the config file??