squeeze page integrated in Wordpress blog?

18 replies
  • WEB DESIGN
  • |
Hi guys,

I have the following problem: I want the landing page of my wordpress blog to be a squeeze page. HOWEVER, I want my sidebar, header and nav menu to be visible AND I want the squeeze page not to show up anymore when some one has already signed in.

Here's an example: www. doubleyourdating . com

Any tips?

thanks!!
Ivan
#blog #integrated #page #squeeze #wordpress
  • Profile picture of the author rufaswan
    Are you using WordPress? If you are, then you can use this if-else switch to change your home page.

    Code:
    if ( $user_ID )
        // display home page for signed in members
    else
        // display squeeze page for guest members
    Since you want to change only the home page, you'll need to make a custom page template as your home page and put your code there. Set it as your static front page and you are done.

    - Rufas
    {{ DiscussionBoard.errors[4615003].message }}
    • Profile picture of the author DrLegend
      Hi,

      well, actually by "signed in" members I mean signet into my opt-in to my mailing list, which is in Aweber. So, I guess your tick won't work.

      Again I refer to the example of David Deangelo's (= Eben Pegan) site above. It should be similar to it. When you sign in to his newsletter, you don't get the squeeze page anymore.

      thanks!
      Ivan
      {{ DiscussionBoard.errors[4615124].message }}
  • Profile picture of the author ArwenTaylor
    I'm not sure how that would be accomplished, especially since Aweber is a completely separate program from WordPress and operates independently. The site programming may be flagging people's computers using a cookie that tells the site they have signed up to the email list. However, once the person cleans their browser history and cookies, they will start seeing the squeeze page again.
    Signature
    Internet Business Blog
    Cheap, high quality PLR articles: Latest PLR Pack - Gift Baskets
    {{ DiscussionBoard.errors[4615549].message }}
  • Profile picture of the author rufaswan
    I see, now this can be tricky. Since the list of subscriber isn't stored on your server, you'll have to request it using AWebar API.

    Now the tricky part - how do you know the user has opt-in? How do you have the value to check with the list returned from AWebar? What happens if he/she using a shared computer, as in public library? You'll need some kind of data, like a session to keep track. From your example, they add in a special parameter onto the URL.

    Did you get this address after subscribe as well?
    http:// www . doubleyourdating . com/ ?sbid=flyLZ

    If that's the case, after subscribed, they just redirect you to the page with this special parameter and use $ _GET['sbid'] to pass along the session data to each and every other page. Just by removing the "?sbid=flyLZ" part, you'll see back the squeeze page again.

    - Rufas
    {{ DiscussionBoard.errors[4615694].message }}
    • Profile picture of the author ranilluardo
      Hello rufaswan,

      Thanks for the zip file...

      By the way,

      Is there a way to create an if/then statement using this PHP cookie script to say

      Problem 1:

      IF
      (the url in the address bar contains special parameter like this ==> ?sbid=flyLZ)
      Action IF Statement Code 1: display the following code inside the main content page
      Action IF Statement Code 2: display the following code inside the sidebar of the page
      Action IF Statement Code 3: display the following code inside the footer of the page


      ELSE
      (if the url in the address bar DOES NOT contain special parameter like this ?sbid=flyLZ)
      Action ELSE Statement Code 1: display the following code inside the main content page (hide Action IF Statement Code 1)
      Action ELSE Statement Code 2: display the following code inside the sidebar of the page (hide Action IF Statement Code 2)
      Action ELSE Statement Code 3: display the following code inside the footer of the page (hide Action IF Statement Code 2)


      Problem 2:

      I get this...
      "If that's the case, after subscribed, they just redirect you to the page with this special parameter and use $ _GET['sbid'] to pass along the session data to each and every other page. Just by removing the "?sbid=flyLZ" part, you'll see back the squeeze page again."

      but,

      The problem is, given the subscriber already subscribed to my Aweber and redirected to h t t p:// www . MySampleWordpressBlogURL . com/postN.html ?sbid=flyLZ as an example.

      In wordpress platform, HOW and WHERE to add this code(if/else statement script given)? having this special parameter $_GET['sbid'] to pass along the session data to each and every other page?
      {{ DiscussionBoard.errors[7146861].message }}
  • Profile picture of the author ArwenTaylor
    I did not subscribe but by the looks of that URL you posted, they are doing exactly what I suspected. They are flagging the computer by putting a cookie in the browser. Once the cookies are cleared or the person uses another computer, they will start seeing the opt in page again.
    Signature
    Internet Business Blog
    Cheap, high quality PLR articles: Latest PLR Pack - Gift Baskets
    {{ DiscussionBoard.errors[4615777].message }}
    • Profile picture of the author DrLegend
      Thanks guys,

      yes Arwen you are completely right! One needs to use cookies. But I don't have enough experience with this to implement it properly. I guess I'll have to do some research

      Any suggestions are welcome!

      thanks,
      Ivan
      {{ DiscussionBoard.errors[4616599].message }}
  • Profile picture of the author rufaswan
    It is very simple. To set a cookie, you can use PHP setcookie function, like this:

    Code:
    < ?php setcookie('test-cookie', 'okay', time() + 24*60*60 ); ? >
    And to call it back

    Code:
    < ?php
    isset($ _COOKIE['test-cookie'])
        // display home page for signed in members
    else
        // display squeeze page for guest members
    ? >
    The problem is where to set it. If you offer something to download, you can put it on the download page. Or you can give a special URL that basically tells your site to set a cookie when they visit it. Something like that.

    - Rufas
    {{ DiscussionBoard.errors[4617639].message }}
    • Profile picture of the author DrLegend
      Thanks man!

      so if I understand it correctly: the first line should go on top of my thank you page (since I give them something they can download).
      And the sedond pair of lines I put on the landing page.

      right?

      Ivan
      {{ DiscussionBoard.errors[4619048].message }}
  • Profile picture of the author rufaswan
    Yes. The first code is to set a cookie. The second code is to check if there is such a cookie. If they didn't visit your download page = no cookie = show squeeze page. I'm sure your download page is protected, right?

    - Rufas
    {{ DiscussionBoard.errors[4619491].message }}
    • Profile picture of the author DrLegend
      Hm, how do I protect my download page?
      {{ DiscussionBoard.errors[4623918].message }}
  • Profile picture of the author rufaswan
    The very least you can do is to put

    <meta name='robots' content='noindex,nofollow' />

    in between <head> and </head>. This will prevent the page from listing on the search engine result page.

    - Rufas
    {{ DiscussionBoard.errors[4625107].message }}
    • Profile picture of the author DrLegend
      I think I got the hang of it now. THANKS!
      {{ DiscussionBoard.errors[4626718].message }}
      • Profile picture of the author DrLegend
        hm, none of that php stuff is working. I guess I'll have to hire a programmer soon
        {{ DiscussionBoard.errors[4628704].message }}
  • Profile picture of the author rufaswan
    I set a small example for you.

    First, go to this page. You should see the message "Cookie not found".

    http://scripts.wpcitadel.com/drdragon/hello.php

    Now go to this page to set a cookie

    http://scripts.wpcitadel.com/drdragon/dl.php

    Go back to the first URL again and you'll see the message changed.

    You can download the source code here

    http://scripts.wpcitadel.com/drdragon/drdragon.zip

    If you need anything, drop me a call. My contact is there as well.

    - Rufas
    {{ DiscussionBoard.errors[4638521].message }}
    • Profile picture of the author ranilluardo
      HELP: Please reup the zip link. ( scripts.wpcitadel.com/drdragon/drdragon.zip )

      Been looking for the same script too but unfortunately, once i click on the link scripts.wpcitadel.com/drdragon/drdragon.zip I'm redirected to error page so failed to download the zip file which I really needed to test it to my site ASAP.

      Hope you will find time to share again the code and It's a great pleasure to stumble this forum post guide/advice of yours.

      Positive response is highly appreciated.

      All the best,

      Ranil
      {{ DiscussionBoard.errors[7138089].message }}
  • Profile picture of the author rufaswan
    Hi Ranil,

    Sorry about the link. I just moved to another host and didn't setup that subdomain for the site. Here is the file:

    http://wpcitadel.com/scripts/drdragon/drdragon.zip

    It is a very simple script. I'm sure you can understand them.

    - Rufas
    {{ DiscussionBoard.errors[7141074].message }}
  • Profile picture of the author rufaswan
    Use this for a start:

    Function Reference/add query arg « WordPress Codex

    Put the code into "functions.php" of your theme file. Create one if your theme don't have it.

    From there, the rest is about editing the theme files to handle the extra query string. To show different main content page, modify the "index.php". To show different sidebar, modify "sidebar.php". To show different footer, modify "footer.php", etc...

    Should be pretty straight forward.

    - Rufas
    {{ DiscussionBoard.errors[7152513].message }}

Trending Topics