Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 11-02-2007, 09:15 PM
crazed Offline
forum loafer
 
Join Date: Nov 2007
Posts: 5
Question skip-thank you page? + wp import

i can usually figure things out on my own but it's been a while since i've handled scripts. and i've been searching the forums but nothing. the closest i've found is this this post. which says this:
Quote:
you're aware you can skip the thank-you-page by adding a hidden variable to your page?
but i'm not sure what's the hidden variable the poster was talking about.

and i also need help with wordpress import. (i'm not sure if i have to make a separate thread soo) i've found the add on. but i'm coming up with an error when importing. i'm pretty sure it's because i've stored my images in this setup:

photoblog/
photoblog/people
photoblog/nature/sky
photoblog/nature/animals
photoblog/events

and probably because i also have text in my entries. so anyway to remedy this?
Reply With Quote
  #2  
Old 11-02-2007, 10:47 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
I can answer one of your questions.

Code:
<input type="hidden" name="withthankyou" value="no" />
Reply With Quote
  #3  
Old 11-02-2007, 11:37 PM
crazed Offline
forum loafer
 
Join Date: Nov 2007
Posts: 5
i get that...but where exactly do i place that? i'm using the horizon template and i tried placing it in its comment template. and it's not working. this is what i have:

Code:
form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'>
<textarea name='message' rows='2' cols='40' onfocus="clearBox(this);">Type your comment here.</textarea><br /><br />
<input type='text' name='name' class='input' value='<VINFO_NAME>' id="name"/>&nbsp;&nbsp;&nbsp; <label for="name">Name</label><br /><br />
<input type='text' name='url' class='input' value='<VINFO_URL>' id="url"/>&nbsp;&nbsp;&nbsp; <label for="url">Website URL, if any</label><br /><br />
<input class='input' type='text' name='email' value='<VINFO_EMAIL>' id="email"/>&nbsp;&nbsp;&nbsp; <label for="email">Email (not visible to others)</label><br /><br />

<input name='vcookie' type='checkbox' id="saveinfo" value='set' checked="checked" />
<label for="saveinfo">Save User Info</label><br /><br />
&nbsp;&nbsp;<input type='submit' value='Add' class="comment-button"/>
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
<input type="hidden" name="withthankyou" value="no" />
</form>
thanks
Reply With Quote
  #4  
Old 11-03-2007, 03:47 AM
crazed Offline
forum loafer
 
Join Date: Nov 2007
Posts: 5
sorry for the double post.
i have found this: http://www.pixelpost.org/forum/showthread.php?t=2312 but it still doesn't help.

i was going to decide to let the thankyou page be. but then, when i let it wait out, it gets redirected to a page that says:
"Comment flood protection is enabled. You need to wait 20 seconds before posting another comment.
Click here to go BACK"
instead of going the page where the image is.

i've tried searching here and google too. i really can't figure it out. this is the only thing that's stopping me from actually launching. argh. this is my site: this is my site: http://5pesostory.org if you want to test. thank you in advance.

EDIT: i installed a new one thinking it may be something that i did. but no. problem is still the same. i'm all out of solutions now. :|
EDIT2: i made the comments moderated hoping that the comment flood protection would go away. it's still there. the one that i have is a fresh install. i haven't made any modifications except for the title and uploading one pic to test it.

Last edited by crazed; 11-03-2007 at 06:53 AM.
Reply With Quote
  #5  
Old 11-03-2007, 07:23 AM
crazed Offline
forum loafer
 
Join Date: Nov 2007
Posts: 5
i think i found it:
http://www.pixelpost.org/forum/showthread.php?t=7340
i shall test it later.
if anyone has another solution pls post it. thanks
Reply With Quote
  #6  
Old 11-03-2007, 09:48 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
I had the same issue in a test environment I set up a few days ago. The reason was some weird hex code added in the beginning of some php files.

Step one: add "?errors" or "errorsall" to the URL string in your browser, reload the page and see what happens. Most likely there is some error showing "could not send header information, headers already sent by..."
To see the errors during the forwarding process too, open your index.php and change line 45
error_reporting(0);
to
error_reporting(E_ALL ^ E_NOTICE);
Don't bother about warnings, just look for the errors.

This issue isusually done by some chars or lines in the output before the <?PHP or after the last ?> in any file. YOu cannot locate the file by this error message, because a lot of files are included.

So check each of your Pixelpost files with an editor program, if you find one where there is an empty line in the beginning or the end of the file. Could also be one of the template files with an empty line before the doctype declaration.
Best would be if you have a text editor which can be switched to HEX view. Look carefully if there are some chars before the <?PHP.

Remove them and save the file in Unicode without BOM.
The errors concerning the header issue should be gone now.

Good Luck!
KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #7  
Old 11-03-2007, 02:38 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Quote:
Originally Posted by dwilkinsjr View Post
I can answer one of your questions.

Code:
<input type="hidden" name="withthankyou" value="no" />
Put it into the comment form (at any place between <form ...> and </form> tags).
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #8  
Old 11-03-2007, 06:53 PM
crazed Offline
forum loafer
 
Join Date: Nov 2007
Posts: 5
Quote:
Originally Posted by GeoS View Post
Put it into the comment form (at any place between <form ...> and </form> tags).
well, i tried to multiple times and it doesn't work. i added that line in the horizon & also the simple template with a fresh install and it didn't work. so it can't be something that i did. so i believe that you have to modify something in the core files.

so i changed line 293 of functions_comments.php in order for it to work properly.
from this:
Code:
	if($_POST['withthankyou'] == 'no')	header('Location: ' . $comment_redirect_url);
to this

Code:
if($_POST['withthankyou'] == 'no') header('Location: ' . $_SERVER[HTTP_REFERER]);
well that's what i understood from the details of this post: http://www.pixelpost.org/forum/showthread.php?t=7340

the poster just said to change $comment_redirect_url to $_SERVER[HTTP_REFERER]
i'm not sure if it's ALL instances of $comment_redirect_url. there are 3 lines where $comment_redirect_url can be found in the function_comments.php . and since line 293 has the line "withthankyou" i assumed that's the line i'm looking for.

i'm not that familiar with php codes. the closest i got from actually 'coding' php is through making a template in wordpress. so, everything i did is all just assumptions on my part. and well, it works. i'm just not sure how it would affect in the long run, like if it would break the site or what. so i would need verification from those familiar with pixelpost if this is an okay solution.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:28 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs