DigiOz Guestbook Version 1.7 Beta 2 Released!

More
18 years 11 months ago #18 by Pete
Good thinking Ivko. :D

This was actually one of the items on our to-do list. So we can add this as an option in version 1.7. :)

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

  • Anonymous
  • Visitor
  • Visitor
18 years 10 months ago #22 by Anonymous
Replied by Anonymous on topic DigiOz Guestbook Version 1.7 Beta 2 Released!
Hello is there something new about the script to convert from version 1.6, evtl. a beta version? I want to sue the 1.7 version, but i Have to move the old entries.

Regards Ivko
Code:
We are currently working on a script to convert from version 1.6 to 1.7. Will post it here on the forum when it is completed.

Please Log in or Create an account to join the conversation.

  • admin
  • Visitor
  • Visitor
18 years 10 months ago #23 by admin
Hello Ivko:

Here is a first look at the converter script. Currently, it does NOT convert smiley faces inside the messages (takes out all HTML TAGS). To Use, do the following:

1- Download and Install the DigiOz Guestbook 1.7 Beta2 Guestbook.
2- Copy the code bellow in to a file called "convert_17.php".
3- Create a text file called "list_converted.txt" and place it in the same directory as "list.txt".
4- CHMOD "list_converted.txt" to 777 (give it read, write and execute permission).
5- Run it through the URL. The code will display a message when it is done. ONLY RUN IT ONCE. DO NOT REFRESH THE BROWSER.
6- Delete the old "list.txt" from the directory, and rename the "list_converted.txt" to "list.txt". That's it! Now run the guestbook.
Code:
<?php include("gbclass.php"); $fd = fopen ("list.txt", "r"); while (!feof ($fd)) { $buffer = fgets($fd, 4096); $lines[] = $buffer; } fclose ($fd); $countLines = count($lines); //echo $countLines; foreach ($lines as $value) { // Find each part of the entry $value = str_replace("<b>Date:</b>", "|", $value); $value = str_replace("<br><b>From:</b>", "|", $value); $value = str_replace("<br><b>Email: </b>", "|", $value); $value = str_replace("<br><br><b>Message:</b>", "|", $value); $msgArray = explode("|", $value); $tmpDate = $msgArray[1]; $tmpFrom = $msgArray[2]; $tmpEmail = $msgArray[3]; $tmpMessage = $msgArray[4]; $tmpEmail = str_replace('"','"', $tmpEmail); $tmpEmail = str_replace("'","&#39;", $tmpEmail); $tmpFrom = strip_tags($tmpFrom); $tmpFrom = str_replace('"','"', $tmpFrom); $tmpFrom = str_replace("'","&#39;", $tmpFrom); $tmpMessage = strip_tags($tmpMessage); $tmpMessage = str_replace('"','"', $tmpMessage); $tmpMessage = str_replace("'","&#39;", $tmpMessage); if($tmpDate != "" && $tmpFrom != "" && $tmpEmail != "" && $tmpMessage != "") { //echo "DATE: ".$tmpDate."<br>"; //echo "FROM: ".$tmpFrom."<br>"; //echo "EMAIL: ".$tmpEmail."<br>"; //echo "MESSAGE: ".$tmpMessage."<br>"; $a = new gbClass(); $a->setGBVars($tmpDate,$tmpFrom,$tmpEmail,$tmpMessage); @ $fp = fopen("list_converted.txt","a"); flock($fp, 2); $data = serialize($a)."<!-- E -->"; fwrite($fp, $data); flock($fp, 3); fclose($fp); } } echo "Completed!"; ?>

Please note that the above code (while functional) is still under development. However, since you seem to be waiting for some sort of a conversion tool, I am posting this code for you here ahead of its release time.

Please Log in or Create an account to join the conversation.

  • Anonymous
  • Visitor
  • Visitor
18 years 10 months ago #25 by Anonymous
Replied by Anonymous on topic DigiOz Guestbook Version 1.7 Beta 2 Released!
There appears to be a bug with words containing two of the letter 's' together. This only occurs when the word is entered in lowercase. I don't know enough about V1.7 beta 2 yet but I would guess that it might be to do with the BadWord filter.

For example.

class yields cla**
CLASS yields CLASS
mass yields ma**
MASS yields MASS
hassle yields ha**le
HASSLE yields HASSLE

Please Log in or Create an account to join the conversation.

More
18 years 10 months ago #26 by Pete
Hello Norman,

Yes, that is in fact the bad word filter. It needs to be refined a bit more. Thanks for pointing this issue out.

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

  • Anonymous
  • Visitor
  • Visitor
18 years 10 months ago #27 by Anonymous
Replied by Anonymous on topic DigiOz Guestbook Version 1.7 Beta 2 Released!
Yes, I should have done the troubleshooting first :)

I found the word 'ass' in the $gbBadWords array in config.php. Having removed it, problem solved. However, this indicates the weakest in the bad word filter and hence why I asked for a bteer bad word filter under the wishlist topic.

Please Log in or Create an account to join the conversation.

Time to create page: 0.124 seconds
Powered by Kunena Forum