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:


 




Displaying Twice? - Need Help

UserPost

7:42 am
22 May 2008


dalbeck

Member

posts 12

1

Hey guys, I want to thank you for an excellent forum for Wordpress, just one question I put together a site for a client, and maybe its a setting or I am not sure but here is the link: http://rohnik.com/forum/


Is it supposed to display the forum up top and at the bottom?

8:13 am
22 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

2

holy wow… that's just not right… I think we have a plugin conflict going on here… It could be a theme issue but because the breadcrumbs are messed up, that usually mean javascript conflict…


could you please list the plugins in use on that site…


also, you might try disabling all the plugins that you can and see if the issue goes away… if so, then start re-enabling them one by one until the issue re-appears… then we can start working the conflict…

8:15 am
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

3

The only time I have seen this before, and I have, it was plugin related.

The forum uses the template tag 'the_content' to render content. Somewhere in your theme or a plugin, 'the_content' is almost certainly getting rendered twice. I have no idea why of course!

3:01 pm
22 May 2008


dalbeck

Member

posts 12

4

Ok Drum Roll please, here are the plugins:


  1. AJAX Login
  2. Calendar
  3. Category Visibility-iPeat
  4. Comment Connection
  5. Contact Form 7
  6. DBC Backup
  7. Easy IMDB
  8. Exec-PHP
  9. GLM's Category Magic
  10. Global Translator
  11. Google XML Sitemaps
  12. IM Online
  13. Members Only (Could unistall if needed)
  14. NexGen Gallery (Really cannot uninstall hope there is a work around)
  15. Private Plus
  16. Profiler
  17. Quotes Collection (Can unistall this as well if needed)
  18. SezWho
  19. Simple Press Forums
  20. SociBook
  21. Star Rating for Reviews (Need this)
  22. Ultimate Google Analytics
  23. Wordpress Download Monitor
  24. WP-Links
  25. WP-Polls
  26. WP-Typography
  27. WP-Security Scan

Ok that is all of my active plugins, I can mange to take off some and get an alternative but I would like to keep the NextGen Gallery which I think I read somewhere taht it might be tempremental, I also need the Star Reviews and Google Analytics / Site Map, Calendar cannot go either. I might be able to find alternatives for some others. Thanks for the help guys!

4:04 pm
22 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

5

There is a known issue with contact form 7… try disabling that and see if it starts working… that plugin needs an update to not have this issue with wp 2.5.x… there are a couple of other compatible contact form plugins listed in the faq forum…


also, make sure you have the latest google sitemap plugin as earlier versions had issues too…


please report back when you try these…

4:09 pm
22 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

6

also, make sure you have the latest version of Alex's NextGen Gallery… he has corrected earlier versions that had a conflict with SPF…

4:18 pm
22 May 2008


dalbeck

Member

posts 12

7

I deactivated all 3 plugins and still no good =/

4:31 pm
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

8

And have you looked at the theme template yet?

4:32 pm
22 May 2008


dalbeck

Member

posts 12

9

not yet, that it what my next step is. I just finished deactivating every plugin and putting them back on. I even missed that I did need to upgrade the NextGen gallery so I did that and still nothing.

4:42 pm
22 May 2008


dalbeck

Member

posts 12

10

This is from my index.php file:


div class=”entry”>

<?php the_content('Read more &raquo;'); ?>

<p class=”postinfo”>
<?php _e('Filed under&#58;'); ?> <?php the_category(', ') ?> &#124; <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
</p>


This is from Single.php:


<div class=”entry”>

<?php the_content(); ?>

<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>


This is from page.php:


<div class=”entry”>

<?php the_content(); ?>

<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>

<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

<!–

<?php trackback_rdf(); ?>

–>

</div>

=====================================

Is this the problem?

5:08 pm
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

11

This can't be the whole template can it?

And the forum should use the 'page.php' template.

I will send you a PM with my email address and then just send me the poage.php template t have a look at please

5:34 pm
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

12

Well it's not the greatest page template I have seen but I don't see anythign obviously wrong with it. I am curious about something calling itself 'obar' which seems to be inserting itself at the nottom of the forum and top of the repeaat.

it's got to be one opf those multitude of plugins you have there

6:03 pm
22 May 2008


dalbeck

Member

posts 12

13

I have an obar.php file, would you like that?


The site is based off of the Digg Word Press theme


The obar.php file makes the layout 3 columns, I just deleted it from the server and I still have the same problem.


Could it have been my installation my MySQL version was incompatible but the install completed.

6:31 pm
22 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

14

keep working with Andy because I think you have several problems… first step is to solve why its appearing twice…


then we can address the other stuff (like breadcrubms all messed up)… which is likely a different conflict/issue…

7:16 pm
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

15

I think the beradcrumbs are going to be another 'nextGen' problem.

This is nothing to do with data, databases, php or to be frank, the forum.

It's either theme or plugin related. has to be. Just for the curiosity, change themes just briefly. Forget how it looks but just see of the forum displays OK.

7:28 pm
22 May 2008


dalbeck

Member

posts 12

16

Yeah changing the theme to wordpress default fixed it. So something is wrong with my theme =(

7:31 pm
22 May 2008


-Radio-

Moderator

Florida - USA

posts 558

17

dalbeck said:


Ok Drum Roll please, here are the plugins:


  1. AJAX Login
  2. Calendar
  3. Category Visibility-iPeat
  4. Comment Connection
  5. Contact Form 7
  6. DBC Backup
  7. Easy IMDB
  8. Exec-PHP
  9. GLM's Category Magic
  10. Global Translator
  11. Google XML Sitemaps
  12. IM Online
  13. Members Only (Could unistall if needed)
  14. NexGen Gallery (Really cannot uninstall hope there is a work around)
  15. Private Plus
  16. Profiler
  17. Quotes Collection (Can unistall this as well if needed)
  18. SezWho
  19. Simple Press Forums
  20. SociBook
  21. Star Rating for Reviews (Need this)
  22. Ultimate Google Analytics
  23. Wordpress Download Monitor
  24. WP-Links
  25. WP-Polls
  26. WP-Typography
  27. WP-Security Scan

Ok that is all of my active plugins, I can mange to take off some and get an alternative but I would like to keep the NextGen Gallery which I think I read somewhere taht it might be tempremental, I also need the Star Reviews and Google Analytics / Site Map, Calendar cannot go either. I might be able to find alternatives for some others. Thanks for the help guys!


There are two plugins I recognise right away #11 and #22 both from Google. These have been known to cause issues, but not the type you are experiencing.


However, Have you checked your header.php file for a link to the_content()?


Looking at the site as a developer, it apears that the first display of the forum is actually IN the header, as the second display looks like it is apearing properly centered in the rest of the formated page.


7:35 pm
22 May 2008


dalbeck

Member

posts 12

18

Here is my entire header.php sorry for posting such long strings of code.


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html xmlns=”http://www.w3.org/1999/xhtml”>

<head profile=”http://gmpg.org/xfn/11″>

<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

<meta http-equiv=”Content-Type” content=”<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>” />

<meta name=”generator” content=”WordPress <?php bloginfo('version'); ?>” /> <!– leave this for stats please –>

<link rel=”stylesheet” href=”<?php bloginfo('stylesheet_url'); ?>” type=”text/css” media=”screen” />

<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo('rss2_url'); ?>” />

<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo('rss_url'); ?>” />

<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo('atom_url'); ?>” />

<link rel=”pingback” href=”<?php bloginfo('pingback_url'); ?>” />

<?php wp_get_archives('type=monthly&format=link'); ?>

<?php //comments_popup_script(); // off by default ?>

<?php wp_head(); ?>

</head>

<body><div id=”container”>

<div id=”header”>

<div id=”menu”>

<ul>

<li><a href=”<?php bloginfo('url'); ?>/” title=”<?php bloginfo('name'); ?>”><?php _e('Home'); ?></a></li>

<li><a href=”<?php echo get_permalink(2); ?>” title=”<?php _e('About'); ?>”><?php _e('About'); ?></a></li>

<li><a href=”<?php echo get_permalink(3); ?>” title=”<?php _e('Links'); ?>”><?php _e('Links'); ?></a></li>

<li><a href=”<?php echo get_permalink(7); ?>” title=”<?php _e('Blog'); ?>”><?php _e('Blog'); ?></a></li>

<?php /*?><li><a href=”<?php echo get_permalink(6); ?>” title=”<?php _e('Downloads'); ?>”><?php _e('Downloads'); ?></a></li><?php */?>

<li><a href=”http://rohnik.com/calendar” title=”<?php _e('Calendar'); ?>”><?php _e('Calendar'); ?></a></li>

<li><a href=”http://rohnik.com/reviews” title=”<?php _e('Reviews'); ?>”><?php _e('Reviews'); ?></a></li>

<li><a href=”<?php echo get_permalink(4); ?>” title=”<?php _e('Media Library'); ?>”><?php _e('Media Library'); ?></a></li>

<li><a href=”<?php echo get_permalink(36); ?>” title=”<?php _e('Message Boards'); ?>”><?php _e('Message Boards'); ?></a></li>

</ul>

</div>
<div id=”pagetitle”>

<h1><?php /*?><a href=”<?php bloginfo('url'); ?>/” title=”<?php bloginfo('name'); ?>”><?php bloginfo('name'); ?></a><?php */?></h1>

</div>

<!–<div id=”syndication”>–><br /> <div id=”searchbox”><?php include (TEMPLATEPATH . '/searchform.php'); ?></div>

<?php /*?><a href=”<?php bloginfo('rss2_url'); ?>” title=”<?php _e('Syndicate this site using RSS'); ?>” class=”feed”><?php _e('Entries <abbr title=”Really Simple Syndication”>RSS</abbr>'); ?></a> &#124; <a href=”<?php bloginfo('comments_rss2_url'); ?>” title=”<?php _e('Syndicate comments using RSS'); ?>”>Comments RSS</a>&nbsp;&nbsp;&nbsp;
</div><?php */?>

</div>

<?php
$showgallery = '';
$showgallery = apply_filters('the_content', $showgallery );
echo $showgallery;

?>

<div class=”pagewrapper”><div class=”page”>

<?php include (TEMPLATEPATH . '/obar.php'); ?>


7:39 pm
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

19

Yep… there it is buyt the looks of it:


<?php
$showgallery = '';
$showgallery = apply_filters('the_content', $showgallery );
echo $showgallery;

?>


7:47 pm
22 May 2008


-Radio-

Moderator

Florida - USA

posts 558

20

The long code was needed - the _content apears as one of the last calls in the bottom of that code… the call being used to insert the gallery in the headder is in turn, calling SPF in the header… it's not so much a problem with NGG… as bad coding to place NGG where it is


We might want to ask Alex if there is a different call that can be made


7:49 pm
22 May 2008


dalbeck

Member

posts 12

21

OK, well I am glad we could all find it, I appreciate all of your help this is indeed one of the friendliest support boards around. What do you guys suggest I do, my client wants that gallery there, that was his top request along with a calendar and forums.

8:55 pm
22 May 2008


dalbeck

Member

posts 12

22

Ok, I fixed it!


I copied the NextGen plugin folder to my hdd, opendint and did a find all / replace all


made the_content –> gallery_content re-uploaded all the files and overwrote them changed the code in the header from the “the_content()” to “gallery_content()”. And all is fine now!


Thanks gusy I hope this helps someone in the future. I appreciate everyone's help you have all been so friendly.

9:16 pm
22 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

23

Neat solution.


9:38 pm
22 May 2008


dalbeck

Member

posts 12

24

Yeah, it has worked for me in the past with a few things, so I figured I would copy the folder to have a backup before I made that change in case it crashed everything, but I lucked out. I would really like to thank Yellow Swordfish for a fantastic plugin / extension to Wordpress and A++ support, also thanks for all the help from -Radio- and Mr Papa! You guys were very friendly and helpful! Like I said hopefully if someone has this same problem again in the furture this “fix” can help them, or if you have itand are having trouble please message me on here and I will try and help you out.

10:57 pm
22 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

25

Okay, now we can move on to fixing the rest of the stuff… you are still having a conflict with contact form 7 (I believe)… notice how the spacing of everything is way off?? look at your breacrumbs… then look at ours here… look at all your blank white space in posts… that is caused by a conflict with contact form 7 where it in effect is chaning \n statements to <br /> statements…


I think that plugin author got caught up in the wp 2.5 shortcode issue and raised the priority of his content replacment (which shouldnt run on every page anyways) and now wpautop is replacing stuff…


To fix the appearance, you will need a different contact form… our faq recommends one highly and some others that work… try disabling that plugin again and look at the appearance (make sure you clear your browser cache) just to make sure my theory is right…




Reply to Topic: Displaying Twice? - Need Help

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

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

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