If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Guestbook-Problem with submit and preview  XML
Forum Index » Support Forum
Author Message
Anonymous



Removing that HTML code did fix my problem. BUT....that did take out the functionality for the picture and the email, and I would reallly like these features on my guestbook. If ANYONE has a solution...please post it. Thanks and good job to the author and to who fixed that bug!
Anonymous



Anyone figure out a solution yet that also allows you to use the picture upload functionality? Thanks!
Anonymous



I have had the same problems as mentioned above, and I came up with 2 solutions. Or rather, the problem for me was actually 2 problems.

Submit function: FOR GODS SAKE, check your php.ini file. There is a line specifying whether HTTP uploads should be allowed. It looks like this (line 387 of 881 in my php.ini on RedHat 7.3):

; Whether to allow HTTP file uploads.
file_uploads = Off

This MUST be "On". Of course. Took me ages to figure out as I couldn't find any entries in my log files.

Preview function: As one Swedish guy allready pointed out, if you use some HTML entities in your $LANG["FormSubmit"] or $LANG["FormPreview"], this will break the preview function.

Also check permissions on directories "tmp" and "public" as these are required to have read+write+execute permissions for owner, group and world. A "chmod 777 temp && chmod 777 public" will do the job. Most FTP programs also support this command, typically available via right-click on files or folders. But the server MUST support this command as well.

Hope this helps.
Anonymous



ShamaN. Thanks for your post, although this just is not working correctly. I did turn HTTP file uploads On in the php.ini file and also restarted apache, but to no avail. I also tried re-adding the code that Farrell suggested to take out, but that still did not allow file uploads. I am about to give up on it and just use the guestbook as is, but would really like that functionality.

--Frustrated
Anonymous



I was working on this problem for 2 weeks and you fixed it, THANK YOU.
Anonymous



Farell wrote:As lot of you, i got the same problem, and i've search a day to become operational this great guestbook (thank to the author).

I hate such situation when a solution run on my computer but not on my online host: i'm at www.free.fr.

So i've search and found a solution, but i can't explain why. So if someone can give me a response, i 'll greatly appreciate it

Resume my solution :
In the folder \templates, you should remove at line 72 of file form.php option enctype="multipart/form-data" in the <form> tag.



Content of line before
<form method="post" action="$GB_PG[addentry]" name="book" enctype="multipart/form-data" onsubmit="return checkForm()">


Content of line after
<form method="post" action="$GB_PG[addentry]" name="book" onsubmit="return checkForm()">



This worked for me thanks!
Anonymous



Thanks FARRELL!! Your the best! i,ve been banging my head against a stone wall trying to get thids bloody thing to work! but it didnt! all it took was 2 lines of advice from you!

I appreciate it1
Anonymous



ShamaN wrote:I have had the same problems as mentioned above, and I came up with 2 solutions. Or rather, the problem for me was actually 2 problems.

Submit function: FOR GODS SAKE, check your php.ini file. There is a line specifying whether HTTP uploads should be allowed. It looks like this (line 387 of 881 in my php.ini on RedHat 7.3):

; Whether to allow HTTP file uploads.
file_uploads = Off

This MUST be "On". Of course. Took me ages to figure out as I couldn't find any entries in my log files.

Preview function: As one Swedish guy allready pointed out, if you use some HTML entities in your $LANG["FormSubmit"] or $LANG["FormPreview"], this will break the preview function.

Also check permissions on directories "tmp" and "public" as these are required to have read+write+execute permissions for owner, group and world. A "chmod 777 temp && chmod 777 public" will do the job. Most FTP programs also support this command, typically available via right-click on files or folders. But the server MUST support this command as well.

Hope this helps.


This worked for me!!!!!

THANKS!!!!!!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum