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

In preparation for the release of the first beta of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Page Update Notification on the sidebar

UserPost

9:09 pm
25 Jan 2007


Apel

Guest

1

Hallo
I wounder what shell i do to have the Page Update Notification in the sidebar like you have on your homepage?
/Apel

9:18 pm
25 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

I just used the template tag (not the post tag) because it’s a special sidebar that I only use with my plugin pages.

But.. the problem is that the sidebar has to be displayed within the post ‘loop’ as the plugin requires that. I did this by defining a special sidebar and ‘including’ the sidebar template after the ‘post’ variables had started their funky stuff.

Bit of a cheat really :)

6:30 am
26 Jan 2007


Apel

Guest

3

Hallo again…

1. What do you men “used the template tag”

2. I am and old beginner and i dont understand all that things and i haveing some problem whit the language.

3. Now i have install the plugin in plugin folder and activate. I have a page and it works when i put the e-mail adress in it. But when i test to write a new page i dont have any “update-email” tell me have i forget somthing.

/Apel

9:57 am
26 Jan 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

I don’t think I can explain any more clearly than the readme file that goes with the plugin. You have two options. You either place the ‘post tag’ within the content of the page - which then apples only to that page. Or, you can place the ‘template tag’ in your themes page template which means it will then display and apply to ALL pages. And don’t forget that for notifications to actually be sent, you need to turn them on in the Management panel.

So which tag have you placed where?

11:59 pm
11 May 2008


Marcus

Guest

5

Yellow Swordfish said:

I just used the template tag (not the post tag) because it’s a special sidebar that I only use with my plugin pages.

But.. the problem is that the sidebar has to be displayed within the post ‘loop’ as the plugin requires that. I did this by defining a special sidebar and ‘including’ the sidebar template after the ‘post’ variables had started their funky stuff.

Bit of a cheat really :)


Hi,


I just used the template tag… I do understand that.


But what do you mean that sidebar has to be displayed within the post loop. What is the “special sidebar” or “sidebar template” which is included after the post variables.


I comprehended from the Punmail Read Me file that only the template tag

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

has to be included into sidebar.php within loop. Is this correct? Or simply the “special sidebar” or “sidebar template” is synonym for the expression tag template.


p.s. I wish to place the subscribe panel into Sidebar only once.


10:37 am
12 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

6

Oh dear - this was a while back! And I have changed quite a lot snce then. By 'special sidebar template' I just meant I had defined and created a second sidebar template in my theme that I only used for those particular pages. Which meant also, of course, a separate page template as well.

7:58 pm
12 May 2008


Marcus

Guest

7

Yellow Swordfish said:

Oh dear - this was a while back! And I have changed quite a lot snce then. By 'special sidebar template' I just meant I had defined and created a second sidebar template in my theme that I only used for those particular pages. Which meant also, of course, a separate page template as well.


First thank you a lot for your response.


A little confused so let me ask you once again but from the start please


I've installed Punmail v2.5. From Punmail Read Me I have comprehended that there are two ways how to work with the plugin.


1/ via tag <!–punmail–>in the text content of your post/page for every post/page separately

2/ via template tag <php punmail_form(InputLength, StackBelow); ?> for all posts/pages but repeatedly visible for every post/page.

But I wish insert the form into sidebar only once for all posts/pages. So what should I do. Follow the procedure ad 2/ which means that I have to insert the template tag into sidebar.php within loop?


Or there is the third procedure which allows to insert the form into sidebar? In that case there is no instruction for that in the Punmail Read Me file which is distributed within Punmail v2.5 from the 19th March 2008.


Thank you.


Marek

8:24 pm
12 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

8

OK. Let's see if I can deal with this. The most important point is that what you want to do is not supported by the code as it stands. It was also well over a year ago and I honestly do not remember exactly what I did!


I know I created a separate sidebar template file that would only be used on the pages I wanted the form to appear. It also has to be understood that the version of this plugin I was using at that time ONLY worked with WP 'pages'. It did NOT work with 'posts'. So this technique will also only work with pages - there has to be only one 'id' being displayed.


The normal place to call the sidebar is outside of the WP 'loop'. But a QP 'page', being a single entity does not really have a 'loop' because only one item is being displayed. So as long as the special sidebar template is being invoked after the page ID is determined it will inherit that ID and allow the form to work as it should.

If you page template has code such as:


if ( have_posts() ) : while ( have_posts() ) : the_post();


(which by thre way, it doesn't need for the same reason that there is only a single id involved) then it is OK to call the sidebar AFTER that line of code has run because it will pnly be called once. It then gets the page ID abnd the form will work.

11:50 pm
12 May 2008


Marcus

Guest

9

Thank you a lot for the explanation.


Oops. I thought that will be simplier. As a beginner I am not sure to get over.


However thank you for your time.


Marek




Reply to Topic: Page Update Notification on the sidebar

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: 12 + 1        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

13 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

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


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