On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




Where to place the code in the page.php

UserPost

10:17 pm
23 Apr 2007


Tony Brooklyn

Guest

 
1

Below is my page.php code.  Please show me where I need to copy and paste your punmail code, for I pasted it all over this page and still do not see it on my wordpress blog. The plugin is activated as well for everypage.

Please advise,

Tony 

 

<?php get_header(); ?>

    <div id="content" class="narrowcolumn">
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
        <h2><?php the_title(); ?></h2>
            <div class="entry">
                <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
        </div>
        </div>
        <?php endwhile; endif; ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

 

10:39 pm
23 Apr 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4629

 
2

Depending upon where you want it to appear it neds to be within the 'loop' (not that a 'loop' is necessary on a page template but that's another matter). Your insertion point starts at the line:

<div class="post"…. etc

and ends at the </div> above the line:

<?php endwhile; endif; ?>

so if you want to put the sub form on EVERY page then somewhere in there you need to place the template tag:

<?php punmail_form(InputLength, StackBelow); ?>

replacing the two parameters with your requirements. You can see from your code where the 'title' is placed and the 'content'.

10:54 pm
23 Apr 2007


Tony Brooklyn

Guest

 
3

Ok, I did what you instructed and I still do not get the punmail subscription on my pages.  I don't understand why.  I can't even get the regular tag for the punmail to work.  I have triple check my install and all is good there.

 Please advise,

Tony 

 

<?php get_header(); ?>

    <div id="content" class="narrowcolumn">
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
        <h2><?php the_title(); ?></h2>
            <div class="entry">
                <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
        </div>
        </div>
        <?php punmail_form(30, false); ?>
        <?php endwhile; endif; ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

 

11:21 pm
23 Apr 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4629

 
4

Off-hand I can think of no reason whatsoever. I've just checked and double-checked the code and it should be fine. I'm using it myself on my plugin pages and that is using the template tag just like this.

The only thing that comes to mind - and this is most unlikely - is that your page.php is not getting called for some reason and that 'pages' are getting displayed on another template. That IS unlikely though. 

When you run a 'page' with the template tag embedded you can take a look at the generated source to see if anything is getting placed in the source. You can give me a link to one of your pages as well but I have to go now so wont be able to look at it immediately. But I am willing in the morning if you like.

11:42 pm
23 Apr 2007


Tony Brooklyn

Guest

 
5

Yes that will not be a problem. http://anthony.limachips.com/wordpress/

 

I was able to get it to show up on a beta of mine but it doesn't notify me when someone post a comment.  Is there any reason for that?  Here is the beta address:

 

http://beta2.prolifix.net/wordpress/&nbsp;

11:16 am
24 Apr 2007


Yellow Swordfish

Admin

Peterborough, England

posts 4629

 
6

The first link you gave me doesn't go to a 'page' and there are no 'pages' listed so I can not take a look at the source. The second link can not be found.

I think you might have the wrong plugin here. The purpose of this plugin is that it allows people to subscribe to be notified when you change the content of a 'page'. It has nothing to do with 'posts' and nothing to do with comments.



Reply to Topic: Where to place the code in the page.php

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 1        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

Yellow Swordfish

RobertB

12 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1775

Posts: 11972

Members:

There are 819 members

There are 749 guests


Yellow Swordfish has made 4629 posts

Top Posters:

Mr Papa - 1256

-Radio- - 481

ovizii - 93

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)