Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:02:46 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.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: 1 2 [3] 4   Go Down
Print
Author Topic: Feedback Module  (Read 18426 times)
oeh

Offline Offline

Posts: 190



« Reply #50 on: February 14, 2010, 04:30:41 PM »


thank you for this hint. So the solution should be to force the parser to encode/decode the cyrillic letters.

Please edit class.parser.php from /modules/feedback and complete the to functions:

Code:
 function encodeSpecialChars(&$value) {
      $value = ereg_replace("ä","ä",$value);
      $value = ereg_replace("Ä","Ä",$value);
      $value = ereg_replace("ö","ö",$value);
      $value = ereg_replace("Ö","Ö",$value);
      $value = ereg_replace("ü","ü",$value);
      $value = ereg_replace("Ü","Ü",$value);
      $value = ereg_replace("ß","ß",$value);
      $value = ereg_replace("€","€",$value);
    return $value;
  }

  function decodeSpecialChars(&$value) {
       $value = ereg_replace("ä","ä",$value);
       $value = ereg_replace("Ä","Ä",$value);
       $value = ereg_replace("ö","ö",$value);
       $value = ereg_replace("Ö","Ö",$value);
       $value = ereg_replace("ü","ü",$value);
       $value = ereg_replace("Ü","Ü",$value);
       $value = ereg_replace("ß","ß",$value);
       $value = ereg_replace("€","€",$value);
    return $value;
  }

in the same manner with the codes oeh has posted.

Regards
Ralf



I've added allot of HTML entities to the class.parser.php
Inn all, it is 578 lines.
Al so I've attached a file with just the HTML entities tabe
for use with other parser files.

Give me a howl, if there are any errors wit the new file

Se attached files.

« Last Edit: March 08, 2010, 01:51:17 AM by oeh » Logged

Good bye ;-{(
oeh ;-}>
ereemst

Offline Offline

Posts: 16


« Reply #51 on: March 05, 2010, 07:37:32 PM »

Hi, i have smal question..

i use the Portfolio module to show restaurants in the area of Egmond (http:www.egmondonline.nl choose - eten en uitgaan..

And i want to use the feedback module to give the visitors the chance to give there feedback/review about the restaurant of shop

but because the portfolio module gets its info from a details page if you click on  restaurant  and not in the portfilio catalog witch i have a extra section made for feedback it shows al the feedbacks in every restaurant the same.. i was wandering do you have a solution for it...

what i really want is the same as the topic module has.. but i am nog php expert....

gr. Erik
Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #52 on: March 06, 2010, 05:00:22 AM »

Hello Erik,

there is no solution for this problem. The Feedback Module is bounded to the id of page, where it is shown and it doesnt care frome where the contents will come.

Regards
Ralf
Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #53 on: April 03, 2010, 03:26:41 AM »

Because of a security vulnerability it is highly recommend to upgrade to Feedback Module, Release 0.30!

Download: Feeback Module.

Regards
Ralf
Logged
rimbimbi

Offline Offline

Posts: 29



WWW
« Reply #54 on: April 05, 2010, 10:39:43 AM »

Hallo,

ich hatte im Januar eine ziemlich kritische Sicherheitslücke im Formular Modul (war warscheinlich die die du behoben hast?) gemeldet, aber keinerlei Feedback erhalten. Ich wußte nicht einmal ob ein Ticket erstellt wurde.

Hatte auch einen konkreten Lösungsvorschlag mitgeschickt.

Warum wurde es dann erst jetzt gefixt?

Grüße,
Michael
Logged

kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #55 on: April 05, 2010, 11:04:24 AM »

@Michael:

1) hier geht es um das Feedback Modul und nicht das Formularmodul ...
2) Wenn es sich um ein WebsiteBaker Kernmodul (mit ausgeliefert) handelt, kannst Du auch selber sicherstellen, daß ein Ticket geschrieben wird: http://project.websitebaker2.org/newticket ... solange Du da alle Daten (inkl. E-Mail Adresse) eingibst, wird das auch bearbeitet werden. Alle Tickets kannst Du hier einsehen: http://project.websitebaker2.org/report/7

Gruß

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

rimbimbi

Offline Offline

Posts: 29



WWW
« Reply #56 on: April 05, 2010, 03:32:02 PM »

Ups... wer lesen kann ist klar im Vorteil Smiley sorry...

Hatte die Sicherheitslücke hier gemeldet:
http://www.websitebaker2.org/en/community/security-issues/report-a-security-incident.php

Werde ich dann wohl nochmal machen müssen...
Logged

Waldschwein
Guest
« Reply #57 on: April 05, 2010, 03:56:55 PM »

Hallo!

Entschuldigung, dass ich hier dazwischen funke:
Das Formular ist eingetroffen vor einiger Zeit und wird auch momentan vom Dev-Team bearbeitet. Ich bin nicht der Meinung, dass man sicherheitsrelevant e Sachen in trac breittreten sollte, das fördert nicht gerade das Vertrauen in die Software.  wink
Leider haben die Formulare momentan keine "Rückmeldung" (weil ursprünglich nicht vorgesehen), aber das erfordert erstmal etwas Absprache.
Ich bin der Meinung: Bugs gehören in trac, Sicherheitsprobleme nicht. Aber ich bin kein Dev, ich habe nur die Formulare kopiert...

Gruß Michael
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #58 on: April 06, 2010, 08:30:34 AM »

Isn't this the english part of the forum?

Maybe a mod can move the post to the german thread.

rgds

erpe
Logged

maya

Offline Offline

Posts: 38


« Reply #59 on: April 14, 2010, 09:00:48 AM »

hi
I like this model and I want to use it in my hebrew language site, but it replace some chars with non hebrew chars.
(ä  ö etc.) I tried to change the class.parser but it its not working for me.
can I get some help?
Thanks
Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #60 on: April 14, 2010, 02:17:17 PM »

I like this model and I want to use it in my hebrew language site, but it replace some chars with non hebrew chars.
(ä  ö etc.) I tried to change the class.parser but it its not working for me.

At the moment the only chance is to mask the chars like in the parser.class.php. There is no better solution available because the parser does not really supports utf8.

Sorry,
Regards
Ralf
Logged
maya

Offline Offline

Posts: 38


« Reply #61 on: April 15, 2010, 07:15:47 AM »

Hi Ralph

thank. do you know were I can find the right chars so i can find the chars in hebrew to try to fix it it?

Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #62 on: April 15, 2010, 08:00:41 AM »

Please have a look here: Hebrew Characters.

Regards
Ralf

Logged
adysnake

Offline Offline

Posts: 2


WWW
« Reply #63 on: June 24, 2010, 12:15:13 PM »

Hi there, tnx for this modul is great.
I have same questions  grin

1. How to stay always displayed these fields:


2. In to mail sent to admin for approval may be include URL pages were added feedback?
« Last Edit: June 24, 2010, 12:21:27 PM by adysnake » Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #64 on: June 25, 2010, 03:59:08 AM »

Hi,

both is not possible with the actual version, Sorry.

Regards
Ralf
Logged
adysnake

Offline Offline

Posts: 2


WWW
« Reply #65 on: June 25, 2010, 09:29:11 AM »

 sad tnx for reply ... i waiting update  rolleyes
Logged
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #66 on: September 07, 2010, 02:44:01 AM »


I've just released Feedback Module 0.31, this version solve two problems:

  • date/time formatting in NL.php
  • replacement of deprecated functions in class.parser.php

Download Feedback Module.

Regards
Ralf
Logged
Hans

Offline Offline

Posts: 565


« Reply #67 on: September 13, 2010, 04:28:50 PM »

Hello Ralf
there is a strange output in the comments. Is it possible to show only the date and time and not the text in the box (attachment) and, of course, how? wink
WB 2.8.1.

Thanks!
Hans
Logged

Hans - Nijmegen - The Netherlands
Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #68 on: September 20, 2010, 06:17:16 AM »

Hello Hans,

sorry, I had some free days...

Please edit the language file i.e. NL.php and look for

Code:
define('fb_frontend_comment_header',                 '<a href="mailto:%s">%s</a> schreef op %s:');
define('fb_feedback_datetime', 'd-m-Y \o\m H:i'); 

you may change to:

Code:
define('fb_frontend_comment_header',                 '%3$s:');
define('fb_feedback_datetime', 'd-m-Y \o\m H:i'); 

to show only the date/time.

Please look at PHP Manual - sprintf()  to understand, how to format the strings.

Regards
Ralf


Logged
snark
Guest
« Reply #69 on: September 20, 2010, 06:49:58 AM »

Why not just modify the languagefile of the guestbookmodule and use that as feedbackmodule?

With the guestbookmodule you have much more functions
Logged
Hans

Offline Offline

Posts: 565


« Reply #70 on: September 20, 2010, 07:26:51 AM »

@Ralf,
thanks for helping. I changed the code and everything works fine now
@snoork, I'll give that a try, thanks.
Hans
« Last Edit: September 20, 2010, 07:40:14 AM by Hans » Logged

Hans - Nijmegen - The Netherlands
D72

Offline Offline

Posts: 253


« Reply #71 on: September 22, 2010, 12:49:13 PM »

I am trying to use the Feedback module as well.
I made some test entries and i noticed that the feedback comments are visible too in the main blog page.
Can i customize the module so the feedback comments arel only visible when people are reading the long story?

My main blog is:
Code:
www.website.com/blog.php

The feedback comments should be only visible at:
Code:
www.website.com/posts/the-long-story-of-an-article.php

Is this possible?
Logged
lt635

Offline Offline

Posts: 36


« Reply #72 on: September 27, 2010, 09:39:49 PM »

Hi,

Thank you for a great module.  I am trying out the feedback module on one of my websites that we are just about to go live with. 

I am having some problems removing/changing some of the text in the language file.  PHP is not one of my strengths so I am hoping somebody can assist me here.

Line 131 approx (using Dreamweaver):
Original text:
Quote
define('fb_frontend_intro',  'Please tell us and all visitors of <strong>%s</strong> <a href="%s">your opinion about this article</a>.');
This is what I have at the moment: 
Quote
define('fb_frontend_intro',  '%s <br /><a href="%s">Click here to give us your feedback</a>.');
How can I remove the %s in red above without breaking the link?  I only want the text to say 'Click here to give us your feedback'.

I appreciate any help with this.

Thanks
Regards
Lene
Logged
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #73 on: September 27, 2010, 09:55:38 PM »

hi, try this:
Code:
define('fb_frontend_intro',  '<!-- Please tell us and all visitors of <strong>%s</strong> --><a href="%s">Click here to give us your feedback</a>.');
Logged

Ralf (Berlin)

Offline Offline

Posts: 1314


« Reply #74 on: September 28, 2010, 05:05:13 AM »

Quote
define('fb_frontend_intro',  '%s <br /><a href="%s">Click here to give us your feedback</a>.');
How can I remove the %s in red above without breaking the link?  I only want the text to say 'Click here to give us your feedback'.

You can tell the Feedback Module to use only the second argument in this way:

Code:
define('fb_frontend_intro','Click <a href="%$2s">here</a> to give us your feedback');

For understanding the sprintf() function and the usage of the arguments please look at the PHP manual.

Regards
Ralf
Logged
Pages: 1 2 [3] 4   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!