• I am wondering if there is a way to customize the text that shows up when you have a protected entry? I’ve tried looking for it but can’t seem to find it in all the files.
    Thanks,
    Grace

Viewing 7 replies - 1 through 7 (of 7 total)
  • It’s in b2template functions:
    /***** Post tags *****/
    function get_the_password_form() {
    $output = “<form action='” . get_settings(‘siteurl’) . “/wp-pass.php’ method=’post’>
    This post is password protected. To view it please enter your password below:
    <label>Password: <input name=’post_password’ type=’text’ size=’20’ /></label> <input type=’submit’ name=’Submit’ value=’Submit’ />
    </form>
    “;

    Thread Starter gracebytes

    (@gracebytes)

    Yay thanks!

    Welcome. 🙂 I had meant to do change mine a little, so I figured I would while I had it up, searching to help you. So thank you for giving me that push. 😀

    Where is this file located? I can’t seem to find b2template anything. I found various RSS feeds starting with b2, e.g. b2rss, b2rdf, but no b2template. I’m using WordPress 1.0.1.

    b2template no longer exists. The old b2 files were removed when WP 1.0 was released. You should be able to find the get_the_password_form function in /wp-include/template-functions.php if you are using WP 1.0.1.

    I want to add a link into the text to refer users to the original entry of how to request the password, but when I try to replace the text with a link, I get a parse error on that line. I thought a simple would work, but I guess not.
    Let’s say that I want it to direct users to this link http://yourwebsite.com/index.php?p=50 with the link saying “this entry” How would I do that?

    I tried adding a link into the where it had said “This is a protected entry. etcetc” but I get this error. (continuation of my previous post above)
    Parse error: parse error in template-functions.php on line 853
    2/14/2004<h3 class=”storytitle” id=”post-
    Fatal error: Call to undefined function: the_id() in index.php on line 44

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Customizing protected entry text?’ is closed to new replies.