Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 11:38:22 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149635 Posts in 21099 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: FaqBaker 1.4.1 is slightly buggy  (Read 2219 times)
Ploc

Offline Offline

Posts: 52


« on: July 10, 2007, 01:59:14 PM »

I'm trying the faqbaker module on the last release of WebsiteBaker core in order to check if this module is now utf8 compliant and full compatible with WebsiteBaker core.

Unfortunately, the last release of faqbaker, 1.4.1, is a little buggy. You'll see how I'm trying to create a new category, then a new question with its answer.

1/ Creating a new category :

I create a new category whose name is :

Code:
category with an ' and an é and that's all

Then the admin page displays the category as :

Code:
category with an \' and an é and that\'s all

When I ask the edit page of the category, the category is displayed as :

Code:
category with an ' and an é and that's all

Finally, the faq page on the public website displays the category as :

Code:
category with an \' and an é and that\'s all

I think that there is a missing stripslashes somewhere in the code.

2/ Same test with a question and its answer :

I create a new question whose name and answer are :

Code:
question with an ' and an é and that's all
answer with an ' and an é and that's all

Then the admin page displays the question and the answer as :

Code:
question with an \' and an é ..
admin display answer with an \' and an é and that\'s all ..

When I ask the edit page of the category, the category is displayed as :

Code:
question with an \' and an é and that\'s all
answer with an \' and an é and that\'s all

If I cancel the edition of the question, the faq page on the public website displays the question and the answer as :

Code:
question with an ' and an é and that's all
answer with an \' and an é and that\'s all

If I validate the edition of the question, the faq page on the public website displays the question and the answer as :

Code:
question with an \' and an é and that\'s all
answer with an \\' and an é and that\\'s all

There is also one or two stripslashes missing in the code, and some utf8_decode utf8_encode also...

If anyone is strong enough to fix these bugs, a 1.4.2 release of faqbaker would be greatly appreciated.

Ploc
Logged
Ploc

Offline Offline

Posts: 52


« Reply #1 on: August 11, 2007, 07:58:31 PM »

Since I had no response to my previous post, I think that this module is not maintained any more.

I needed this module for my personal website so I decided to fix the bug myself. Hopefully I succeeded in fixing it the altough I'm not really skilled in php.

The fix is mainly concerning the way strings are displayed in the public interface, and on the admin interface (when displaying or editing category and questions/answers).

You can find the updated module attached to this post. It has been successfully tested on my personnal website (v2.6.5) and on a test fresh install (v2.6.7).

Have fun !
Logged
DGEC

Offline Offline

Posts: 386


WWW
« Reply #2 on: August 14, 2007, 09:53:27 PM »

Thanks for fixing that for those who use it. I may, one of these days.
Hopefully it will be updated officially.
Logged
Ploc

Offline Offline

Posts: 52


« Reply #3 on: August 20, 2007, 07:12:17 PM »

This is another release for module FaqBaker.

The 1.4.3 release is now including french language file !
Logged
doc
Guest
« Reply #4 on: August 20, 2007, 07:39:34 PM »

Hello ploc,

there are ongoing updates to the FAQ module. The forum member thorn has added some bugfixes for German Umlauts and the display of images. This fixes will make the module utf8 complient. In addition thorn fixed another bug. In some cases, it was possible to add a question without a category with the result, that this question couldn´t be edited or deleted anymore.

Further on, all PHP function calls addslashes and striplslashes were replaced witht the WB functions add_slashes and strip_slashes which take into account magic_quotes_gpc settings in php.ini. This is required to prevent possible SQL injection if magic_quotes are off.

Will forward this message to the forum member thorn, who applied the bugfixes, so we could join your and his version (French + bugfixes).

Some of the developers are in vacation at the moment (Germany), so that could take a while. Once the new version is suffiently tested, it will be released (as v1.5) on the Addons Repository.

Regards Christian
« Last Edit: August 20, 2007, 08:14:18 PM by doc » Logged
Ploc

Offline Offline

Posts: 52


« Reply #5 on: August 20, 2007, 08:12:39 PM »

Great news ! Good job ! No problem for merging my fixes and the ones from Thorn... Maybe for version 1.4.4 or 1.5 (as utf8 is a major enough change) ?
« Last Edit: August 20, 2007, 08:14:15 PM by ploc » Logged
marccouture

Offline Offline

Posts: 216



« Reply #6 on: August 21, 2007, 12:45:19 PM »

While coders are working on the module, I would also suggest looking at default style settings as the module does not display properly under Internet Explorer 7.  When the module is installed on a page as the only content section, it leaves a big space on top (see attached screenshot).  I can't find how to fix this, I've tried several different templates and the problem persists.  As usual, this is not a problem with Firefox...
Logged

Marc C.
Ploc

Offline Offline

Posts: 52


« Reply #7 on: August 21, 2007, 01:07:18 PM »

I think that the problem comes more from the main template than from the faqbaker module template...

Let me show you a working example of faqbaker :

http://lespiedssurterreamap.free.fr/pages/les-pieds-sur-terre/foire-aux-questions.php

I've also tested the module with the standard template, and everything seems to work fine !
Logged
marccouture

Offline Offline

Posts: 216



« Reply #8 on: August 21, 2007, 01:33:34 PM »

OK, I just noticed some errors in the template .css that caused the problem, it's now fixed.  I should have looked at it longer...  Thanks for the tip!
Logged

Marc C.
Ploc

Offline Offline

Posts: 52


« Reply #9 on: August 21, 2007, 03:39:41 PM »

Pas de problème !  smiley
Logged
DssTrainer

Offline Offline

Posts: 8


WWW
« Reply #10 on: August 21, 2007, 03:49:18 PM »

Anyone noticing that dollar signs "$" are being removed from the view with FaqBaker?

I have a question "How much does this cost" and I answer "This costs $800". I see it in the admin area and i even checked the database. But when I view the page in all browsers, I see:
"This costs 00".

It is removing the "$8".. this happens with all characters that follow a $ so I think the PHP is reading it as a variable and replacing it with a null.


Can anyone confirm?
« Last Edit: August 21, 2007, 03:56:00 PM by DssTrainer » Logged

Ploc

Offline Offline

Posts: 52


« Reply #11 on: August 21, 2007, 06:15:08 PM »

Yes I do, I tried it just now and the public page displays :

Code:
This costs 0

It doesn't even display the 00 as it does for you.

I think there is another slight bug...

I also find that moving question up and down relative to other questions does not work very well. It often take two times to do it before it is effective...
Logged
doc
Guest
« Reply #12 on: August 26, 2007, 06:15:44 PM »

Hello,

thanks to the bug fixes introduced by the forum members ploc and thorn, v1.4.5 of the Faqbaker module is available for testing. The bugs reported in this thread are fixed and the French language file added by ploc is contained.

Please test the new release of the FAQBaker module, before it will be uploaded to the Addons Repository.

Again I would like to thank ploc and thorn for it´s apprecitated contributions to WB.

Regards Christian

Removed attachment and released the latest FAQBaker version on the Addons Repository
« Last Edit: August 29, 2007, 04:35:28 PM by doc » Logged
Ploc

Offline Offline

Posts: 52


« Reply #13 on: August 30, 2007, 05:07:16 PM »

FaqBaker 1.4.5 is ok for me, it is running perfectly.

You can update the addon repository.
Logged
SourDough

Offline Offline

Posts: 47


WWW
« Reply #14 on: May 27, 2008, 05:26:25 PM »

I've been playing around with this module and realized that there wasn't a delete.php file included.  I also noticed that the ordering icons were inconsistent with other modules, i.e. all categories and questions had both up and down arrows appearing, so I made some changes in modify.php.

I've attached my changes.


Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!