Where do you add BHCB code for Wordpress?

TheUploader

Registered Member
Joined
Dec 30, 2009
Messages
53
Reaction score
26
I have installed BHCB for my movie blog but I do not know where I am suppose to put the JavaScript code. They said it was compatible with Wordpress But I do not know how to integrate it.

Thanks
 
You may want to verify this. But I believe you could use CPALe@d's Wordpress Plugin (found on the Wordpress Plugin Directory) and use that. All it does is insert JS code into whatever posts you specify. Which would, theoretically, serve the same purpose with the use of the JS for BHCB.
Just an idea!
 
I have installed BHCB for my movie blog but I do not know where I am suppose to put the JavaScript code. They said it was compatible with Wordpress But I do not know how to integrate it.

Thanks

You need to install a plugin that allows you to add custom headers to pages and posts in wordpress:

Code:
[COLOR=Yellow]hxxp://wordpress.org/extend/plugins/add-your-own-headers/[/COLOR]
Then you add the javascript include code to whatever post or page you want to add the gateway (you will see a custom header field after you install the plugin)

Code:
[COLOR=Yellow]<script type="text/javascript" src="/wp-content/plugins/bhcb/lock.js"></script>[/COLOR]
Just put the actual script in your plugins folder for wordpress.
 
do you have checked if your wordpress theme is correctly set up? some theme makers forget to add the wp_header(); tag in the header.php file! i would check that first of course. it must be within the "head" tag enclosed in <?php ?>. i hope that helps.
 
If you're using a custom theme, go into your themes directory and select the theme you're using.

To only protect your individual pages (not posts), open the page.php file and insert the <script></script> code there.
To only protect posts, open the single.php file and insert the <script></script> code there.
To protect your entire site, open the header.php file and insert the <script></script> code there.
Finally, to protect just the index page, open the index.php file and insert the <script></script> code there.
 
Back
Top