Unique <head> and </head> for Thank You Page

Once you've installed phpList... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

Unique <head> and </head> for Thank You Page

Postby thewitt » 3:43pm, Thu 16 Apr, 2015

I'm attempting to integrate some script functions from FaceBook's advertising system into my Thank You page for one of my lists.

This script needs to go in between the <head> and </head> tags.

I don't want this to go into the Intro page, only the Thank You page.

Is this possible?

PHPList 3.0.12
thewitt
phpLister
 
Posts: 12
Joined: 8:57pm, Sun 10 Sep, 2006

Re: Unique <head> and </head> for Thank You Page

Postby Dragonrider » 5:35pm, Thu 16 Apr, 2015

You'd need to add a little php script to the Header for your subscribe pages and make it conditional on being the thank you page to show.
According to Stackoverflow something like this should work.

Code: Select all
<?php
if (stripos($_SERVER['REQUEST_URI'], 'thank you')){
     echo '<p>Put your facebook code here</p>';
}
else{
    //Do Nothing
}
?>
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

Re: Unique <head> and </head> for Thank You Page

Postby thewitt » 5:00am, Fri 17 Apr, 2015

Thank you for that.

I was hoping to be able to do something without modifying any code, but it doesn't appear I can inject PHP into the <head> tag in the Subscribe Page editor.
thewitt
phpLister
 
Posts: 12
Joined: 8:57pm, Sun 10 Sep, 2006


Return to Questions and Problems after Installing

Who is online

Users browsing this forum: No registered users and 1 guest