1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help customizing blogger blog

Discussion in 'Blogging' started by Lordemma, Aug 14, 2011.

  1. Lordemma

    Lordemma Junior Member

    Joined:
    Jun 29, 2011
    Messages:
    170
    Likes Received:
    11
    Hi guy please I really need your help.I created a blogger blog and emended some you tube videos on it with after jump summary (Read more).I try to lock the videos with content locking from *******.But the problem is instead of locking the video,it lock the page and even my home page is not displaying properly.I want the locker to when a user click on the "read more" botten and the are taking to the post page and not on my home page.
    Guys I really need your help.Please help me.What should I do?
     
  2. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    you need to put a condition in the theme html so that the locker code only runs if a certain page is viewed

    HTML:
    <b:if cond='data:blog.url == "URL of the page"'>
    Locker Script
    
    </b:if>
    
     
    • Thanks Thanks x 1
  3. Lordemma

    Lordemma Junior Member

    Joined:
    Jun 29, 2011
    Messages:
    170
    Likes Received:
    11
    Thank man! i really appreciate.Does it mean I have to do this for each post? Or I should just copy this and put it on my blog template.
     
  4. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    It should go in your theme. If blogger does not let your locker script run from the theme then you might have to put it in a widget instead
     
  5. Lordemma

    Lordemma Junior Member

    Joined:
    Jun 29, 2011
    Messages:
    170
    Likes Received:
    11
    Bro I put it on the blog html ut did not work.
    I added it to the html widget but lock my blog including the homepage.Pls help! I want the script to appear when a user click on the play bottom. Pls help.How is this possible without locking my homepage?
    Thanks man! I really appreciate your effort.
     
  6. Lordemma

    Lordemma Junior Member

    Joined:
    Jun 29, 2011
    Messages:
    170
    Likes Received:
    11
    Bro I put it on the blog html ut did not work.
    I added it to the html widget but lock my blog including the homepage.Pls help! I want the script to appear when a user click on the play bottom. Pls help.How is this possible without locking my homepage?
    Thanks man! I really appreciate your effort.
     
  7. Pekton

    Pekton Regular Member

    Joined:
    Nov 28, 2009
    Messages:
    250
    Likes Received:
    104
    Location:
    upstate ny
    okay so if I understand correctly you want something like this

    Home page with a link to the video --> videopage and when they click on the video then they get the content locked

    so what i would do is have a third page which is a fake videopage, instead of emdedding the video in it just have an image of the video & player . The image will be your link to the real video page & act as the trigger for your locker

    Home --> fake video page --> real video page with locker

    http://www.blackhatworld.com/blackh...-my-800-day-youtube-method-twist-applied.html is a great post by bornformoney
    which uses the fake image idea all though he uses it for a whole page


    So to get the locker to work with blogger you need it in a widget... to get it to only work on the video page you need to have some sort of conditional code that is basically saying If we are on this page then run the locker script

    2 ways to do this


    1. Have the widget appear on each page and in the widget have the conditional thats checks to see if it should run the script or not
    2. Have the widget only appear on the page you want to lock. So here the conditional is checking the page to see if the widget is allowed. The widget automatically runs the script

    if using 1 then my previous code
    Code:
    [COLOR=Red][COLOR=#000080]<b:if cond='data:blog.url == [B][I]"[/I][/B]URL of the page[B][I]"[/I][/B]'>[/COLOR][/COLOR] Locker Script  [COLOR=#000080]</b:if>[/COLOR]
    should work just make sure "URL of the page " is the url of the page you want locked

    If 2 then read through
    http://www.intechgrity.com/conditional-bloggerblogspot/ which explains conditional statements and how to make a widget appear only on certain pages


    hope this helps