I've changed some of the php sources to add the following behaviour:
- A new question posted is now invisible to the public.
- The Admin can decide to publish this new question.
If this is a generally wanted feature I can insert the changes into the
main stream or send the diffs.
If neccessary this can be made configurable (is not at the moment) by the admin to
change the default for new questions to be visible (as is in the original version).
Changes up to now:
- Database:
Added a new column in the database of table "faqfragen" named "is_visible" (char(1))
containing either 'Y' or not.
- admin/record.delquestion.php:
Added a new column in the html table of "open questions" after "theme"
with the heading "Make visible".
The column contains a new link, which displays as "yes" or "no", depending on
the visibillity state of the question to toggle this state.
Using the new column "is_visible" in "faqfragen" and a new function (&action=toggle")
to allow the link to work.
Added a new column in the databse of table "faqfragen" named "is_visible" (char(1))
containing either 'Y' or not.
- inc/functions.php:
Count and display the number of invisible records at the end of the html table
and displaying only visible ones.
- lang/:
English and German language files: added some new messages
Visibility of new questions
Moderator: Thorsten
Visibility of new questions
Last edited by gru0 on Mon Apr 25, 2005 6:16 pm, edited 1 time in total.
Hi,
great new feature! You can send me the diffs if you like and I would add it to 1.6!
bye
Thorsten
great new feature! You can send me the diffs if you like and I would add it to 1.6!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Admin feature on/off
Should I add the admin feature to switch this behaviour on/off?
And against which source release should I make the diffs?
Actually I used the stable 1.4.8 and not the developer's version.
And against which source release should I make the diffs?
Actually I used the stable 1.4.8 and not the developer's version.
Hi,
I would need it for 1.5.0-CVS because 1.4.x is only maintainance. But that's no problem. There are only some little changes in this section between 1.4 and 1.5.
You can send me what you have.
bye
Thorsten
I would need it for 1.5.0-CVS because 1.4.x is only maintainance. But that's no problem. There are only some little changes in this section between 1.4 and 1.5.
You can send me what you have.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist