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

Where do you add BHCB code for Wordpress?

Discussion in 'CPA' started by TheUploader, Jan 2, 2010.

  1. TheUploader

    TheUploader Registered Member

    Joined:
    Dec 30, 2009
    Messages:
    53
    Likes Received:
    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
     
  2. Nihilist

    Nihilist Registered Member

    Joined:
    Oct 11, 2009
    Messages:
    59
    Likes Received:
    75
    Occupation:
    Network Sec / Electronics / IT / Programming
    Location:
    Virginia Beach, VA, USA
    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!
     
  3. queenofbaird

    queenofbaird Newbie

    Joined:
    Dec 18, 2009
    Messages:
    14
    Likes Received:
    3
    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.
     
    • Thanks Thanks x 2
  4. radi2k

    radi2k Junior Member

    Joined:
    Nov 29, 2009
    Messages:
    117
    Likes Received:
    34
    Location:
    Germany
    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.
     
  5. SHOwnsYou

    SHOwnsYou Registered Member

    Joined:
    Jun 21, 2009
    Messages:
    94
    Likes Received:
    94
    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.
     
    • Thanks Thanks x 1