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 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 and to get details of version 4.0, 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:


 




simple forum displayes 2 times on page

UserPost

6:46 pm
4 Mar 2007


debora

Guest

1

Hi Andy,

Sorry, I posted this question also in the comments and then realized I had to post here.

I use WP 2.1, the theme Durable and the latest version of simple forum.

Here is my question in the comments:


"Hi Andy,

Thanks for this wp plugin. It’s a great tool!!

I have installed it on my new blog (linksfordesigners.com), but I am afraid I need some help. I am quite new to blogging and not so handy with coding.

I have installed the forum and seems to work well but on the forum page the forum is displayed two times… in the content area and repeated in the footer again. How can I avoid this? 

I really hope you can help me to sort this out :D

Thanks a lot,
Debora"



7:26 pm
4 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

Cute! The plugin uses 'the_content' to display itself within. Somewhere on your page template the content must be used twice. You need to hunt it down in the theme files…

7:34 pm
4 Mar 2007


olandesina

Member

posts 4

3

ok… don't let me alone now! I am going to have a look in the page template and come back to you… I need your help :D

7:36 pm
4 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

Look in there and in the footer and anywhere else that might get loaded for a page to display

7:47 pm
4 Mar 2007


olandesina

Member

posts 4

5

sorry… i am really new to all of this code :)

Could it be this part of the footer? 

<div class="column">
        <h2 id="titleAbout">About</h2>
        <?php query_posts('pagename=about'); ?>
        <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>
        <?php the_content(); ?>
        <?php endwhile; ?>
        <?php else : ?>
        <p>You have no about page, you should add one through the admin interface, or edit 'footer.php' and put some super cool information here!</p>
        <? endif; ?>
    </div>

    <hr />
   
</div>

<div id="footer">


or should i look somewhere else? 

8:24 pm
4 Mar 2007


olandesina

Member

posts 4

6

I was thinking to give a look into the code of the page created from the forum… but where can I find it?

Thx :D 

9:40 pm
4 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

7

I removed the huge piece if code. You've got it above - the_content() - what on earth is that doing in the footer? What's more, if this is allied to a page template why have a 'loop' at all - it is all redundant.

Anyway it looks like you might have a call to the_content() in your main page and another call in the footer and that would explain what you are seeing. And then I'd fire the theme author. Who, by the way, has also buried a commercial link in the footer code (at least I assume that's what it is - I could be wrong) presumably, if I am right, to help boost his google ranking.

8:26 am
5 Mar 2007


olandesina

Member

posts 4

8

Thx :D so the problem is this part in the footer:

<?php the_content(); ?>

I realized it because by disabling the About page the forum is displaying correctly now. 

Ops… I have put the commercial link into the footer :( it's a banner.

Thx a lot for your help :D Will let you know how it goes :D

8:51 am
5 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

9

OK - you're allowed to put commercial links in the footer so I forgive you Smile

I hope you get it sorted. That page template looked most odd for what should be, the simplest template in the pack really 

4:48 pm
5 Mar 2007


Naa

Guest

10

I have the same problem (on the forum page it shows in the right sidebar also), looked into the theme coding and don't see the_content in either the sidebar (mine shows up on my right sidebar) or in widgets (since I'm using widgets, looked at the widgets.php coding too).

5:51 pm
5 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

11

Well something is displaying 'content' in your sidebar. What about excerpts? Anthing showing recent posts? Of course, this would have to include pages as well as posts but that's what happening.

6:14 pm
5 Mar 2007


Naa

Guest

12

I removed the recent comments & active discussions widget from the right sidebar and it's still showing up. Also the forum is not displayed in the center correctly either, wants to go over onto the left sidebar ^_^;;

Let me give you some background.

I'm using WordPress 2.1.2, Simple Forum 1.7 and Dark Ritual 1.0 by Kaushal Sheth (theme)

I think I found the problem… it was the Subscribe2Widget oO; v1.2

http://subscribe2.wordpress.com/tag/widget/

Apparently the author of the widget knows it and doesn't know of a fix.   


6:32 pm
5 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

13

That's bad news. I don't know of anyway either, of me being able to check if I am runnng in the main page template or outside of it or else I could ensure the forum was limited to the main template. But I am not aware of any marker, flag or token that would enable me to do this.

6:36 pm
5 Mar 2007


Naa

Guest

14

Ah well, at least my problem was identified and there is the page itself I can use for people to subscribe so I'm not just limited to the widget.

My site isn't open yet (it's an rpg/fanfic site) but I'm testing it out and so far it's running smoothly and looking good.  Still playing with all the options and getting it set up.

Thanks! 

6:39 pm
5 Mar 2007


Yellow Swordfish

Admin

Peterborough, England

posts 5252

15

Well good luck with that.

Keep looking at the various updates if you use this in the end. I will look into whether it's possible to make it 'template aware'.



Reply to Topic: simple forum displayes 2 times on page

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

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

11 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)