Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 12-06-2004, 09:00 AM
winklebleck Offline
pp regular
 
Join Date: Dec 2004
Posts: 26
Comment popup - reload after comment.

I just spent a good chunk of time trying to get comments popoup to refresh after someone posts.

I tried various onload comands, and could not get any to work.

Assistance???

PS If you (pixelpunk) realyy ran for pres as promised on line 289, I'd vote for you.
Reply With Quote
  #2  
Old 12-06-2004, 09:43 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
ROFL, don't read the code, it's not good for your health

Do you want an immediate re-direct or what are you after?
Have you tried meta-refresh in the comment_template.html ?

// punk
__________________
icq: 66760929
Reply With Quote
  #3  
Old 12-06-2004, 09:49 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
To get an immediate redirect.
Find
Code:
if(($parent_id != "") and ($message != "")) {
	$query = "insert into ".$pixelpost_db_prefix."comments(id,parent_id,datetime,ip,message,name,url)
	VALUES('NULL','$parent_id','$datetime','$ip','$message','$name','$url')";
	$result = mysql_query($query);
	}
Add immediately before the }:
Code:
header("Location: index.php?popup=comment&showimage=$parent_id");
exit;
It should work.

// punk
__________________
icq: 66760929
Reply With Quote
  #4  
Old 12-06-2004, 03:54 PM
winklebleck Offline
pp regular
 
Join Date: Dec 2004
Posts: 26
I explain

I don't have time to test it right now, but what I am looking for is After someone enters a comment, rathere than going to the "thank you blah....." page is refreshes the comments to show what they just added. Whilst testing I was trying to mantain error checking.
Reply With Quote
  #5  
Old 12-07-2004, 04:46 AM
winklebleck Offline
pp regular
 
Join Date: Dec 2004
Posts: 26
tested

I tested the code, no change seemed to be aparent, just stayed at confirmation page.

I tried meta refresh with

Code:
<meta http-equiv="refresh" content="1;url=index.php?popup=comment&showimage=$parent_id'>$lang_comment_redirect">
but it is not replacing the values to create the correct url.

How is it done when the comments are not in a popup window, it shows the added comment instantly?

Scott
Reply With Quote
  #6  
Old 12-07-2004, 07:14 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
It's the same routine without the popup.
The header(Location thing should really work.

Find line 585 in main index.php, add a meta-refresh there and see if that'll work.

// punk
__________________
icq: 66760929
Reply With Quote
  #7  
Old 12-07-2004, 04:49 PM
winklebleck Offline
pp regular
 
Join Date: Dec 2004
Posts: 26
thats where i have it, but it reloads and says "comming soon!"

is the above meta code right? or should it be formatted differently.
Reply With Quote
  #8  
Old 12-08-2004, 07:11 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
If it says "Coming Soon!" I would guess the image id don't get passed back to the script for some reason.

I can look up this "later", today I think I'm rather busy at work, unfortunately.
If you are somewhat savvy you can try and find out why the $parent_id is blank in that particular statement, or if it ain't blank then something is wrong in the url.

// punk
__________________
icq: 66760929
Reply With Quote
  #9  
Old 12-11-2004, 05:49 AM
winklebleck Offline
pp regular
 
Join Date: Dec 2004
Posts: 26
I've been testing, and can't seem to find it.
__________________
| pixelpost |
Reply With Quote
  #10  
Old 02-08-2005, 02:56 AM
greentraveler's Avatar
greentraveler Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 106
winklebleck, Did you ever figure this out?
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:10 AM.

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