Welcome, Guest. Please login or register.
March 16, 2010, 10:16:22 AM

Login with username, password and session length
Search:     Advanced search
WB 2.8.1 released!
Download and additional information are available here .
110036 Posts in 15897 Topics by 9271 Members
Latest Member: yuxi
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Feedback Module
Pages: [1] 2 3 Go Down Print
Author Topic: Feedback Module  (Read 8546 times)
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« on: February 22, 2008, 08:06:35 PM »

I've wrote a Feedback Module. This module allows the visitors of your website to comment pages directly from the frontend. Spam Protection with Captcha. The administrator/editorial staff will get automaticly an email an may edit, comment or remove the feedback in the backend. Visitors email address is only visible for the administrator.

Actual version 0.22 was tested by the german community, should be stable and will be available at the Addons Repository soon.

You may check my Homepage (German and English) for download or further informations and an Feedback Module example.

Regards
Ralf
« Last Edit: February 27, 2008, 08:27:45 AM by Ralf (Berlin) » Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
Waldschwein
Forum Team
*****
Offline Offline

Posts: 1249



WWW
« Reply #1 on: February 22, 2008, 08:30:26 PM »

Hello!

Really cool module, I haven't seen it now and I think it is one of the "WB should have". It should be made stable when 2.7 and it's new captchas are released, of course you can implement them.

Regards Michael
Logged

Help! What's a survey? Read my blog -> www.zweiwelt.com | " Make no small plans for they have not the power to stir men`s blood." - Niccolo Machiavelli


Get here the new WebsiteBaker logo! It's the only one.
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #2 on: February 22, 2008, 08:51:19 PM »

Hello Michael,

cool  cool - I'm looking ahead for WB 2.7...

Thank you
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
doc

Offline Offline

Posts: 3579


« Reply #3 on: February 23, 2008, 09:22:49 AM »

Hello Ralf,

nice module, great contribution.

Please test the module with more restrict PHP settings (mainly error reporting E_ALL). There are some undefined variables etc. which cause warnings like:
Code:
Notice: Undefined index: fb_action in class.feedback.php on line 941

Once this is fixed, I will upload your module to the Addons repository.

Regards Christian
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #4 on: February 23, 2008, 11:04:49 AM »

Hello Christian,

thank you - the call to undefined $_REQUEST['fb_action'] is fixed, could not detect any further problems (testing E_STRICT / PHP5, ignoring the timezone problem).

Regards
Ralf
« Last Edit: February 23, 2008, 11:27:47 AM by Ralf (Berlin) » Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
doc

Offline Offline

Posts: 3579


« Reply #5 on: February 23, 2008, 11:25:37 AM »

Hello Ralf,

have uploaded your Feedback module v0.23 to the WB Addons repository.
Again thanks for this great contribution.

Regards Christian

P.S.: Can you please remove the download archive of your module from this thread?
« Last Edit: February 23, 2008, 11:27:43 AM by doc » Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #6 on: February 28, 2008, 06:17:51 PM »

Hello,

please upgrade to feedback module v0.24 - this version closes a XSS security vulnerability.

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
rme

Offline Offline

Posts: 3


« Reply #7 on: March 07, 2008, 08:26:08 PM »

Hello Ralf

Thanks for great feedback module. Using v 0.24 and wb 2.6.7

Problem I have is that it works on page, and messages are displayed on page and in admin but are not being emailed to the administrator.

WB mailer works for other forms on site and also the "Forgot Login details" email notification works.

Perhaps I need to put in an "Email From"  for the "Field:Your Email Address" as in the standard email forms, as this seems to be needed for sending to work with my forms. I have wb mailer set-up normally for php mail. I have not changed any settings, and a valid email address is being used when making feedback.

If I need to make any settings for the feedback module, I can not see where to do it.

Also small point, is there a way of displaying the date in English, all other text is in English, but the server date/time seems to stay in German, I did see mention of date problem in the forum.

Hope you can help

Regards
Richard
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #8 on: March 07, 2008, 09:28:25 PM »

Hello Richard,

thank you for the feedback  cool

Quote
Perhaps I need to put in an "Email From"  for the "Field:Your Email Address" as in the standard email forms, as this seems to be needed for sending to work with my forms. I have wb mailer set-up normally for php mail. I have not changed any settings, and a valid email address is being used when making feedback.

... in the backend look at the section of the feedback module at each pages where you use it. You will find a input field beside the text "Send email by new comment". Place here the email address the feedback module should use.

You may edit the language file (/feedback/languages/EN.php) and search for 'fb_cfg_info_email' - if you place here the desired email address it will be used as default at each new section of type feedback module.

Quote
Also small point, is there a way of displaying the date in English, all other text is in English, but the server date/time seems to stay in German, I did see mention of date problem in the forum.

This problem will be fixed with the next release.

You may adjust the date/time configuration at your request by yourself. Edit the language file and search for 'fb_feedback_datetim e' - the syntax is described in the php manual. For english date/time you may use: 'F j, Y - h:i A'.

I think I should write some documentation...  rolleyes

Regards
Ralf
« Last Edit: March 07, 2008, 09:35:04 PM by Ralf (Berlin) » Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
rme

Offline Offline

Posts: 3


« Reply #9 on: March 08, 2008, 12:22:50 AM »

Hello Ralf

Many thanks for very fast reply.
 
Great it now works correctly. Sorry if I should have realised that is what that field was for. I thought it was for forwarding on an existing comment !

I look forward to the next release, and presumably it will allow English for the text around the emailed message as well as the date/time, as having now received the feedback emails, I see they are in German as well. No problem for now, the message text is in English anyway. It is only us who are bad at languages.

Regards

Richard
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #10 on: March 10, 2008, 07:41:29 PM »

Hello,

at the Addons Repository you will find Feedback Module v0.26 for Download:

    * fixed: date/time formatting in EN.php
    * changed: moved email body from template to language files to enable easy language support
    * fixed: backend don't show actual email address after changing
    * added: extended captcha support for Website Baker 2.7.x

At my homepage you will find some helpfull remarks for configuring Feedback Module (in English and German language).

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
rme

Offline Offline

Posts: 3


« Reply #11 on: March 10, 2008, 09:14:29 PM »

Thanks Ralf

That's great.

Richard
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #12 on: March 30, 2008, 01:42:49 PM »

Hello,

at the Addons Repository you will find Feedback Module v0.27 for Download:

  • fixed: using calculation captcha under WB 2.7 does not show the operator
  • added: you may now check comments first before they are published. In this case you will get a email with an activation code for simply unlocking. The author wil be informed by email about the publishing
  • added: language sensitive help function for the backend.

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
mathetos

Offline Offline

Posts: 87


i bake and shake... shake 'n bake WB


WWW
« Reply #13 on: April 28, 2009, 11:36:41 PM »

I keep getting this error:

Code:
An error occurs while updating a record

[sql_updateEntry()] You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'll be in AZ!',feedback='I'm sad that I cannot go
on your hike. I will be in AZ ' at line 1

I'm running WB 2.7 on linux server. Any suggestions?
Logged

___________________ ___________________ _
www.autotheography. com
Your Journey ~ His Story
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #14 on: April 29, 2009, 04:09:38 AM »

Hello,

its an error in masking the string:

Code:
feedback='I'm sad that I cannot go on your hike. I will be in AZ '

which should be

Code:
feedback='I\'m sad that I cannot go on your hike. I will be in AZ '

This error never occured before, so I have no good idea for it. In which situation occur this error? Working in the backend?

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
max

Offline Offline

Posts: 23


« Reply #15 on: May 14, 2009, 06:18:35 AM »

I have installed the feedback module , it does appear in the drop down list of modules in admin page but how to get it to show at the pages ? I currently don't see any form at my pages
Logged
gilly

Offline Offline

Posts: 49


« Reply #16 on: June 11, 2009, 09:48:30 AM »

I have just installed this module too - works quite well.

I want to have this displayed on every page, so I have created a page in the WB Admin for it (/blocks/feedback.php). I have set it to hidden (so it doesnt show in the menu) and have set the template to blank (otherwise my main tempate will be shown twice which is bad). Then in my website template, I have called this file in, so it is shown on every page.

I have just noticed that the little gif graphic does not work when done like this. No major problem, though and is probably an easy fix. The major problem I am having though is that once you click the link to enter in your feedback, the page it takes you to is a blank page, with no other content other than the feedback inputs. So basically the module is no longer sitting inside my main template anymore. Does that all make sense?

Is this a known bug and are there any possible solutions?
Logged
snoork

Offline Offline

Posts: 266



« Reply #17 on: June 12, 2009, 07:00:37 AM »

Quote
nt show in the menu) and have set the template to blank (otherwise my main tempate will be shown twice which is bad). Then in my website template, I have called this file in, so it is shown on every page.

with the section picker it won't load the template, just the module
« Last Edit: June 12, 2009, 09:02:07 AM by snark » Logged
gilly

Offline Offline

Posts: 49


« Reply #18 on: June 12, 2009, 08:01:41 AM »

with the section picker it won't load the template, just the module

so if thats the case how do I get it to show on every page without manually needing to add a section block on every page?
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #19 on: June 12, 2009, 08:28:44 AM »

Feedback Module is not developed for automaticly use (feedback) at each page, therefore there is no way to implement the Feedback Module within your template or to copy the feedback sections. There is (at the moment) no other way than to add the Feedback Module manually as new section at each page - if you don't do so, the Feedback Module does not add a new record with the correct page_id to its database and will always run into problems...

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
dbs

Offline Offline

Posts: 904


tioz4ever


WWW
« Reply #20 on: June 12, 2009, 11:19:56 PM »

Hi Ralf,

kann man dem Modul noch beibringen, dass die Absätze in Einträgen auch so übernommen werden?
Im Moment gibt das Modul ja nur Fließtext aus.
(konnte das nicht in englisch schreiben)

Gruß dbs
Logged
Ralf (Berlin)
Addons Team
******
Offline Offline

Posts: 800


Don't panic...


WWW
« Reply #21 on: June 14, 2009, 04:33:07 PM »

Quote
kann man dem Modul noch beibringen, dass die Absätze in Einträgen auch so übernommen werden?

Feedback Module does not allow HTML tags to prevent Crosssite Injections.

You may change the class.feedback.php to allow formatting. Search for the function xssPrevent(&$request):

Code:
function xssPrevent(&$request) {
    $request = html_entity_decode($request);
    $request = strip_tags($request);
    $request = trim($request);
    return $request;
  }

and change the code to:

Code:
function xssPrevent(&$request) {
    $request = html_entity_decode($request);
    $request = strip_tags($request, '<p><br>');
    $request = trim($request);
    return $request;
  }

to allow HTML <p> and <br> tags (and all tags you want to enable, just add them in the same manner).

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
dbs

Offline Offline

Posts: 904


tioz4ever


WWW
« Reply #22 on: June 14, 2009, 04:58:31 PM »

Thank you, it works. smiley
But... ich dachte eher an automatisches Erkennen von Zeilenumbrüchen.
Aber vielleicht ist auch genau so gut so wie es jetzt ist.

Gruß dbs
Logged
FrankH

Offline Offline

Posts: 521


WWW
« Reply #23 on: June 15, 2009, 08:12:25 AM »

so if thats the case how do I get it to show on every page without manually needing to add a section block on every page?

You could use the MPForm module instead. Just build a link to a page with this form into your template, and your users have the possibility to  send feedback for every page.
The MPForm module does record the referrer page from where it was called, by the way.
Logged
snoork

Offline Offline

Posts: 266



« Reply #24 on: June 15, 2009, 05:33:50 PM »

maybe I am just blind... is there a way to turn off the capchta in the feedback module?

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

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!