News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

FAQ (Frequently Asked Questions) mod

Started by All Colours Sam, June 20, 2011, 08:19:18 PM

Previous topic - Next topic

TheListener

Hey MAS

I've been thinking.

Now I have finally started using the mod is there a way questions can be placed in a particular order.

Example:

I have written two questions but want the second to be in place of the first.


All Colours Sam

you can sort them by ID, the question you want to appear first,   will be created first, the second one will be the second.

you can also sort it by name,  just include something like 1  in the first and 2 on the second on their respective titles.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

All Colours Sam

#62
OK, here's a test package for the 1.1 version release with categories and all that other stuff added.

Please report any glitch you may find.

To install this just uninstall the old one, DO NOT click in the "Remove all data associated with this modification. [Details]"  check box, then install the new one.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

TheListener


All Colours Sam

The mod was tested by Spuds  and I could safely said its stable enough, however,  I'm sure issues will arrive as people use this in ways We couldn't think of :P

BTW thanks for showing the copy stuff ;)
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

TheListener

Copy stuff?

There will always be one user whom wants something more added.

thxx1138

Hi there,
thank you for this mod and the new category option.

The categories can't be edited or deleted from the smf acp. Editing/deleting them in the database seems to work fine though.

All Colours Sam

@ thxx1138 Hi, whats seem to be the issue?   you can edit/delete/create categories directly from the SMF admin panel.

@Brack1   the  copyright link ;)
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

thxx1138

No, i can't.
No changes are saved (changing a category name, deleting a category) when i'm using the smf admin panel (as stated before).
It's not a great deal breaker because making these changes in the smf_faq_categories table seems to work without breaking something.

I tried this with a fresh installation of smf gold and your mod.

All Colours Sam

Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

thxx1138

After trying to edit a categories name i get these three errors:
- see screenshot1 -

After trying to delete a category i get the same errors:
- see screenshot 2 -

To be sure that the changes i made in the the smf_faq_categories table by hand aren't causing this i made a fresh install with smf gold and your module and tried to edit/delete the 'default' category but got the same errors.

All Colours Sam

#71
mmm, looks like I forgot to globalize $GetCats variable, my bad.

try the attached file.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Bugo


thxx1138

Editing categories works now, but deleting them doesn't.
Error log: see screenshot

All Colours Sam

mm, that is weird, I don't recall missing globals as that are pretty visible and common errors.


use this one, hopefully this will be the one.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

thxx1138

Quote from: Miss All Sunday on July 26, 2011, 11:39:27 AM
use this one, hopefully this will be the one.

It IS the one ;).
Everything works fine now. Thank you for your hard work.

Bugo

After removal of this mod in the database are saved unnecessary data.

All Colours Sam

The customization approval guidelines  does not force you to uninstall the hooks you use.

This is actually a good thing about hooks, even if you upgrade or completely overwrite all SMF files, the mod will still be working.


with that said, this mod does give the user the option to remove the Tables this mods creates:

faq
faq_categories
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

PS4DEV

How can other users post a faq ?? for example normal users ??

All Colours Sam

This mod uses permissions, the one I attached here:

http://www.simplemachines.org/community/index.php?topic=438980.msg3119417#msg3119417

Does have permissions to edit/create/delete faqs

Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Advertisement: