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

Content Lock Pro & WP

Discussion in 'Black Hat SEO Tools' started by miansc, Jan 9, 2012.

  1. miansc

    miansc Regular Member

    Joined:
    Oct 1, 2009
    Messages:
    407
    Likes Received:
    126
    Location:
    Oz, maate
    Hi guys,
    I'm trying to implement my locker into WP posts. I've consulted the manual, it says to put this code into the header of my theme file, header.php. Also contacted support, but being the weekend there they haven't replied yet, and im so fucking anxious to get started you don't understand :p (ive been refreshing my emails every 5minutes for the past day 1 1/2)



    <script type="text/javascript"
    src="http://mydomain.com/clp/locker.js?guid=53333337[/URL]">
    </script>


    This does nothing when inserted, nothing is locked.




    <?php if(is_post( array( 5, 11, 28, 31 ) ) ) { ?>
    <script type="text/javascript"
    src="http://mydomain.com/myfolder/locker.js?guid=24da6fb2923f1924">
    </script>
    <?php } ?>


    Then this, but apparently is_post isn't a wordpress function?

    Fatal error: Call to undefined function is_post() in /home/me/public_html/wp-content/themes/twentyeleven/header.php on line 27




    Thanks
     
  2. sukataetumba

    sukataetumba Senior Member

    Joined:
    May 25, 2010
    Messages:
    1,109
    Likes Received:
    213
    are you trying to show the locker on all posts or pages?

    add me on Skype and I'll help you out for free
     
    • Thanks Thanks x 1
  3. miansc

    miansc Regular Member

    Joined:
    Oct 1, 2009
    Messages:
    407
    Likes Received:
    126
    Location:
    Oz, maate
    yep, each specific post i determine,
    pm'd you, thanks!
     
  4. LongBanana

    LongBanana Regular Member

    Joined:
    Oct 23, 2009
    Messages:
    411
    Likes Received:
    247
    Location:
    Chicago, IL
    If you're trying to do specific posts, then you could try changing the editor to "HTML" mode and put in that code within that. Not sure if it will work, but worth a try.
     
  5. miansc

    miansc Regular Member

    Joined:
    Oct 1, 2009
    Messages:
    407
    Likes Received:
    126
    Location:
    Oz, maate

    Yeah tried that man, doesn't work. I wish it did work like this though, it would make it so much easier.
     
  6. mikkosoporno

    mikkosoporno Registered Member

    Joined:
    Mar 22, 2011
    Messages:
    67
    Likes Received:
    35
    Add the Jquery snippet before the script and try again with clean browser.
     
  7. Griddler

    Griddler Regular Member

    Joined:
    Jul 16, 2011
    Messages:
    305
    Likes Received:
    45
    I think you can put the Code also in a text widget

    EDIT: Sorry don't read that you want it for a specific Post. With a Text widget the whole site is locked
     
    Last edited: Jan 9, 2012
  8. ppcmaster

    ppcmaster Supreme Member

    Joined:
    Dec 26, 2008
    Messages:
    1,492
    Likes Received:
    161
    Occupation:
    Article writing, link wheel, link building, etc
    Location:
    Lowell, MA
    Home Page:
    Did these posts help? Please let me know. I can use that help myself
     
  9. miansc

    miansc Regular Member

    Joined:
    Oct 1, 2009
    Messages:
    407
    Likes Received:
    126
    Location:
    Oz, maate
    I think my wordpress theme already hs Jquery activated

    all good bro, got it working. the text widget is html, would it support JS anyway?


    Basically I deleted my lockers, mucked around with my theme settings.
     
  10. miansc

    miansc Regular Member

    Joined:
    Oct 1, 2009
    Messages:
    407
    Likes Received:
    126
    Location:
    Oz, maate
    Bumping this thread, dont want to create another one.

    my links aren't formatting properly on the locker, instead of showing the link to the ofer it will show mydomain.com/post#13

    any ideas?
     
  11. digoxin2012

    digoxin2012 Newbie

    Joined:
    Jan 24, 2012
    Messages:
    15
    Likes Received:
    0
    find the FAQ at CLP,it is easy to slove