Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forumposts not displayed as blogcomments; how to fix?
Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2012 - 2:34 pm

Hi all,

TIA for helping a girl out laugh

I'm on SP5, build 7652. Only recently updated from 4.5.1 build 6401 where I had the same problem: when using bloglinking everything works except for the forumposts - they don't show as blogcomments. The other way around works fine.

The Wiki mentions editing the theme, but not how. And I'm not sure it works the same for SP5.

I'm using the "I Love It!" theme, version, 0.3 byCosmo Themes.

Theme-URL: http://cosmothemes.com/blog/20.....i-love-it/

My comments.php file: http://pastebin.com/250pGsmk

My functions.php file: http://pastebin.com/AABtSGs9

My settings: Image Enlarger

 

 

I have no idea how to fix this and I'm only guessing I need to edit my template. I've tried switching to the default WP-theme but still no forumposts in the comments.

Thank you!!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2012 - 3:37 pm

is this an old wp theme?  using the very old comments style?  by default wp theme, do you mean twenty ten?  that would be the one to test (or twenty eleven)...  would answer my first question...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 8, 2012 - 3:38 pm

There are quite a few details on what is needed in the popup help on the blog linking panel. I would start there.

andy-signature.png
YELLOW
SWORDFISH
Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2012 - 3:51 pm

Mr Papa said

is this an old wp theme?  using the very old comments style?  by default wp theme, do you mean twenty ten?  that would be the one to test (or twenty eleven)...  would answer my first question...

No, it's a pretty recent theme. I acitvated Twenty Eleven (1.3) to see if that would fix it, but alas.

 Yellow Swordfish said

There are quite a few details on what is needed in the popup help on the blog linking panel. I would start there.

 Yes, the help-popups are great! They're the first thing I check when not completely sure about something. It states

If your theme comment templates uses the newer WP 2.7+ wp_list_comments() function, you may need to edit the argument list.

Using Display Mixed in Standard Comment Block
If your comments template does not pass any arguments to the wp_list_comments() function or has a 'type=all' or 'type=comment' argument, the SPF linked topic posts will show up as comments interspersed with the WP comments, sorted by date.
Topic Posts will be sent to the WP function with a type of 'comment'.

That's pretty much what the Wiki said as well, but I'm still not sure how to edit my themefiles. Sorry - I know very little php. Even "If your comments template does not pass any arguments to the wp_list_comments()" is beyond me - sorry!

Line 95 of my comments.php:

                <ol class="cosmo-comment-list cosmo-comment-plain">
                        <?php
                                /* Loop through and list the comments. Tell wp_list_comments()
                                 * to use de_comment() to format the comments.
                                 * If you want to overload this in a child theme then you can
                                 * define de_comment() and that will be used instead.
                                 * See de_comment() in news24/functions.php for more.
                                 */
                                wp_list_comments( array( 'callback' => 'de_comment' ) );
                        ?>
                </ol>

I've asked some people who at least know PHP, but they referred me back here because they don't know WP/SP.

I'm pretty sure it's a pretty basic edit, but when you don't 'speak' PHP that doesn't help much wink

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 8, 2012 - 7:45 pm

well...  a bit sticky here...  your theme is overriding wp and controlling how wp comments are displayed...

and afraid we have no idea what your theme is trying to do to display differently...

but, you can try this:

wp_list_comments( array( 'type' => 'all', 'callback' => 'de_comment' ) );

but afraid that may not work (should be the default)...

if you are not stuck on how your wp theme displays comments, you could just return comment control to wp... change the call to

wp_list_comments();

but again, since we dont know what your theme is doing differently to display comments, just not sure how it will change...

Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2012 - 4:27 pm

Mr Papa said

if you are not stuck on how your wp theme displays comments, you could just return comment control to wp... change the call to

wp_list_comments();

That did the trick! Should have figured that one out for myself embarassed but the Cosmo-code was a bit confusing for me ...

I'll have to do some styling, but it doens't look bad now - just not pretty. Which I can live with, but I'll fix the styling.

Thanky you!!!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2012 - 8:12 pm

finally!  glad we could help.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626