[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 1823: Undefined array key 23760
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 1833: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 1833: Trying to access array offset on value of type null
CMS Made Simple Forums • Faq module
Page 1 of 3

Faq module

Posted: Wed Apr 13, 2005 10:28 am
by megabob3
Wiki link
http://wiki.cmsmadesimple.org/tiki-inde ... ed+Modules

Direct download
http://wiki.cmsmadesimple.org/tiki-down ... p?attId=54

Live example
http://www.awakening.it/test/index.php?page=Faq

About style, modify your CSS on this class tags
class="category"
class="question"
class="answer"
class="small"

Bye :)

Re: Faq module

Posted: Wed Jun 01, 2005 1:16 pm
by piratos

Code: Select all

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/php/faq/modulefunctions.php) is not within the allowed path(s): (/opt/web3/) in /opt/web3/html/modules/faqX/faqX.module.php on line 20

Warning: main(faq/modulefunctions.php) [function.main]: failed to create stream: Operation not permitted in /opt/web3/html/modules/faqX/faqX.module.php on line 20

Fatal error: main() [function.main]: Failed opening required 'faq/modulefunctions.php' (include_path='.:/usr/share/php') in /opt/web3/html/modules/faqX/faqX.module.php on line 20
Install 0.10beta3  php 4.31  - try to call the normal admin menu.  path ist set wrong in line 20!!

Re: Faq module

Posted: Fri Jun 03, 2005 4:50 pm
by kingfhb
Is this module in a working state? I installed it with no problem, gave myself permission, and when I click on "Show Categories" or "Add new Faq" ... nothing.

I have some text under the buttons that says "There aresn't FAQ", but thats all. The page displays "There are currently no categories in the FAQ.".

Is there something else that needs to be done for this to work?

Thanks in advance.

Re: Faq module

Posted: Sat Jun 04, 2005 11:21 am
by piratos
Install 0.10beta3  php 4.31  - try to call the normal admin menu.  path ist set wrong in line 20!!
Same problem in beta4

Re: Faq module

Posted: Sat Jun 04, 2005 1:32 pm
by piratos
Click Add New Faq - there you can add a new faq and categories (type simple something in the field).

Re: Faq module

Posted: Sat Jun 04, 2005 4:13 pm
by kingfhb
piratos wrote: Click Add New Faq - there you can add a new faq and categories (type simple something in the field).
That's just it, when I click on Add new FAQ, nothing happens. It just sits there.

Re: Faq module

Posted: Mon Jun 06, 2005 7:25 am
by megabob3
Sorry guys this module was born for 0.9.2 :(

Now i don't have the time for adapting it on 0.10.x

Bye.


If someone wanna do that there is no problem, must advise only me so i can do nothing :p

Re: Faq module

Posted: Mon Jun 06, 2005 2:49 pm
by kingfhb
megabob3 wrote: Sorry guys this module was born for 0.9.2 :(

Now i don't have the time for adapting it on 0.10.x

Bye.


If someone wanna do that there is no problem, must advise only me so i can do nothing :p
Yeah, but I am using 0.9.2 and it still does not work for me. Whenever I click on the buttons in the admin section, nothing happens. Like they do not function at all.

Re: Faq module

Posted: Mon Jun 06, 2005 3:15 pm
by megabob3
kingfhb wrote: Yeah, but I am using 0.9.2 and it still does not work for me. Whenever I click on the buttons in the admin section, nothing happens. Like they do not function at all.
Lol dong!! :p

Sorry :(

Are you using the version from WIKI?? I guess yep. However i will see it in this night and if i have good news for you i will advise you ;)

Bye :)

Re: Faq module

Posted: Mon Jun 06, 2005 5:00 pm
by kingfhb
Fixed it. I opened the modulefunctions.php and changed...

Around Line 124, find...

Code: Select all

echo $module->CreateLink($id, 'faqX', $returnid,'<input type="button" value="Show Categories"/>', array("action"=>"show_cats"));
change to

Code: Select all

echo $module->CreateLink($id, 'faqX', $returnid,'Show Categories', array("action"=>"show_cats"));
and

Around line 131, find...

Code: Select all

echo $module->CreateLink($id, 'faqX', $returnid,'<input type="button" value="ADD NEW FAQ"/>', array("action"=>"new", "Cat"=>$_REQUEST["m1_Cat"]));
change to

Code: Select all

echo $module->CreateLink($id, 'faqX', $returnid,'Add New FAQ', array("action"=>"new", "Cat"=>$_REQUEST["m1_Cat"]));
Done!!!

One thing I did notice however, your code will fault if you have an apostrophe in any of the text (title or Body). Other than that... it works nicely.

Re: Faq module

Posted: Mon Jun 06, 2005 5:13 pm
by kingfhb
Also, one more thing... I think it would be more beneficial to have the answers expand when the FAQ Question is clicked on (sort of like the tree menu), instead of listing them all out and then jumping to the line. Just my opinion, thats all.

Re: Faq module

Posted: Tue Jun 07, 2005 1:52 am
by Ted
I have to remember to take the FAQ module out of the builds.  It's definatly not supported by me or anyone else on the dev team.  Someone imported it into svn and I haven't taken it out yet.

While I'm definatly a fan of Megabob's work, I definatly can't take on any more module support issues.

My new Faq Module (Pifaq)

Posted: Wed Jun 08, 2005 12:02 pm
by piratos
Because this faq don't work by me i made my own - i called it Pifaq (PiratosFaq).

Pifaq has language files as follow:
  • german
  • english
  • french
  • dutch
  • polish
  • dansk
You can see it work here http://piratos.coftware.de

See also in german forum http://forum.cmsmadesimple.org/index.ph ... 051.0.html

DOWNLOAD NOW !! http://piratos.coftware.de/index.php?page=Pifaq

In the adminsection the default - language are automatically used. Ig there is no language file german is in use.
For the output use the parameter  as example language="en_US"  or language="nl_NL"

Please take a look on this thread too http://forum.cmsmadesimple.org/index.ph ... 050.0.html and make your changes.

Re: Faq module

Posted: Wed Jun 08, 2005 9:23 pm
by kingfhb
I like how it looks on your site, HOWEVER, I copied it up to the modules directory and it does not appear in the modules list. I am not running the beta, I am running the latest stable build.

Re: Faq module

Posted: Wed Jun 08, 2005 11:08 pm
by iNSiPiD
Good stuff, Piratos. Simple, yet elegant. Reminds me of another nice module I recently installed...starts with a K. ;)

kingfhb, I don't think it was built to work under 9.x.

NB: There is a duplicate link class in the CSS.