Content Lock Pro & WP

FullStackMike

Regular Member
Joined
Oct 1, 2009
Messages
404
Reaction score
137
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
 
are you trying to show the locker on all posts or pages?

add me on Skype and I'll help you out for free
 
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.
 
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.


Yeah tried that man, doesn't work. I wish it did work like this though, it would make it so much easier.
 
Add the Jquery snippet before the script and try again with clean browser.
 
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:
Did these posts help? Please let me know. I can use that help myself
 
Add the Jquery snippet before the script and try again with clean browser.
I think my wordpress theme already hs Jquery activated

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
all good bro, got it working. the text widget is html, would it support JS anyway?


Did these posts help? Please let me know. I can use that help myself
Basically I deleted my lockers, mucked around with my theme settings.
 
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?
 
Back
Top