Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Template design and Front-End Code (http://www.pixelpost.org/forum/forumdisplay.php?f=20)
-   -   Kill the Post Comment Redirect Page - Kill! Kill! (http://www.pixelpost.org/forum/showthread.php?t=7823)

oswegan 02-01-2008 12:09 AM

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.

EcoSee 02-01-2008 12:26 AM

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! ;)

oswegan 02-01-2008 12:37 AM

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.

dhdesign 02-01-2008 12:50 AM

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. ;)

oswegan 02-01-2008 12:56 AM

Thanks
 
You are my hero.

oswegan 02-01-2008 01:05 AM

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

Thanks for your help!

Dkozikowski 02-01-2008 02:07 AM

Read! Read! Read! The manual (even if it is hidden in the change-log :p (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 :D

austriaka 02-01-2008 06:11 PM

I added it to the FAQ:
http://www.pixelpost.org/docs/FAQ/Fr...lated#ThankYou


All times are GMT. The time now is 07:06 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.