Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Thread Closed
 
Thread Tools
  #1  
Old 02-01-2008, 12:09 AM
oswegan's Avatar
oswegan Offline
pp veteran
 
Join Date: Jan 2008
Location: Lake Oswego, Oregon
Posts: 58
Kill the Post Comment Redirect Page - Kill! Kill!

Just kidding.

Well, not really.

One thing I really don't like in most pixelpost templates is the annoying gray screen that shows up after you leave a comment.

How do I ditch that sucker?

I am using a version of Simplicious on 1.7.1 You can view it here.

Any help is greatly appreciated - I'm a newbie here.
  #2  
Old 02-01-2008, 12:26 AM
EcoSee Offline
pp veteran
 
Join Date: Nov 2007
Posts: 63
The dreaded grey screen.

I hear you. I'm not a fan of the big blank screen either. You could change that screen by editing the includes/functions_comments.php file from the core. I know the PP developers are not big on the idea of hacking the core files, but I simply added this line of code with the the other meta tag lines at the bottom of that page.


<META HTTP-EQUIV="Refresh" CONTENT="0; URL=<?PHP echo "'$_SERVER[HTTP_REFERER]'>"; ?>

It allows for an instant redirectioon back to the photo that was commented on. Another way to approach this would be to redirect to some kind of thankyou_template.html page that fits the look of your site. But that is more involved than this one line paste!
  #3  
Old 02-01-2008, 12:37 AM
oswegan's Avatar
oswegan Offline
pp veteran
 
Join Date: Jan 2008
Location: Lake Oswego, Oregon
Posts: 58
Re: the gray screen

I know, I always hated it on other photoblogs before I started messing with pp.

Now I have it on my new test site.

Hmmm.
  #4  
Old 02-01-2008, 12:50 AM
dhdesign's Avatar
dhdesign Offline
pixelpost guru
 
Join Date: Mar 2007
Location: Ohio
Posts: 431
This question has been asked several times before - the answer can be found in post #2 of this thread - add one line of code to your comment_template.html somewhere between the opening and closing form tags and your thank you page goes away.
__________________
My photoblog: KP Images
  #5  
Old 02-01-2008, 12:56 AM
oswegan's Avatar
oswegan Offline
pp veteran
 
Join Date: Jan 2008
Location: Lake Oswego, Oregon
Posts: 58
Thanks

You are my hero.
  #6  
Old 02-01-2008, 01:05 AM
oswegan's Avatar
oswegan Offline
pp veteran
 
Join Date: Jan 2008
Location: Lake Oswego, Oregon
Posts: 58
Smile Yipee It Worked!!

I just stuck that code in the Siplicious image_template just before the </form> tag and voila!

Thanks for your help!
  #7  
Old 02-01-2008, 02:07 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Read! Read! Read! The manual (even if it is hidden in the change-log (i'll document it correctly asap))

OR

Search! Search! Search! The forum. The forum knows ALL . . .believe me

Anyway, as the question has been answer, I'll be closing the thread. Enjoy Pixelpost with your clean comment submissions
  #8  
Old 02-01-2008, 06:11 PM
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 added it to the FAQ:
http://www.pixelpost.org/docs/FAQ/Fr...lated#ThankYou
__________________
Uh!log Photoblog
My Addons
Thread Closed


Thread Tools




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

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