Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Blog Linking Problem. Can't get forum comments to show up in blog comments. Thanks For Any Help
Avatar
jawaulk
Member
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2012 - 7:58 pm

Hello I am having an issue getting my forum posts to show up in my blog comments.

I have gotten my blog posts to show up in the forum without any problems that portion works great.  But when I try to go the other way I can not seam to get it and don't understand code enough to figure it out.

I want to use "Display mixed in standard comment block" for the comments to appear.

This is what I have in my comments.php

echo '<ul id="comments-list">';
 wp_list_comments('type=all&callback=theme_comment');
 echo '</ul>';

I have searched around and blindly messed around with the wp_list_comments() with no luck.  I did get the forum comments to show once but then the blog comments did not show and the forum comments had no CSS style.

So can anybody help me. and let me know what I can change or add to get my forum comments to show up in my blog? I am hoping it is just a simple change to the wp_list_comments() function.

Thank you in advance for any help it is greatly appreciated.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2012 - 8:31 pm

can you remove that callback as a test??  its calling a non wp routine to handle comments... and it might not be firing all the normal wp hooks and actions...

Avatar
jawaulk
Member
Free Members
sp_UserOfflineSmall Offline
Mar 6, 2012 - 8:46 pm

I tried that but unfortunately it removes the css for the comments and they just get inserted as ugly text.  This is an Artisteer theme if that makes any difference.

Also when I remove the callback the forum posts show up but the comment link  says "Leave a comment" instead of the number of comments. when I click on that I can see the comments but the post still says "0 responses to ****" 

Is there a way to maybe just add forum into that line somehow like type=forum,all&callback=theme_comment ??

I am clueless when it comes to syntax and commands.

and thanks for the supper fast reply. you really are on top of things Mr. Papa

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 7, 2012 - 6:12 am

perhaps creating a template tag to just simply display forum posts as comments is not such a bad idea and I can certainly raise that for discussion and perhaps inclusion on a future update.

The current system works by appending topic posts to the standard WP 'comments' object so it does require some standard use of the WP API.

So it seems standards have been ignored here. Have you tried using the code you suggested but changing the option to display topic posts as a separate block? Might be useful to know if that actually works.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jawaulk
Member
Free Members
sp_UserOfflineSmall Offline
Mar 7, 2012 - 12:27 pm

I tried:

type=forum,all&callback=theme_comment

with, display topic posts as a separate block.  It did not display any forum posts.  I also tried just plain old type=all with display as separate block and it did not look any different then when I used type=all with display mixed in.  Why in the world cant the Artisteer programmers stick to standards. This is not the first time I have ran into problems specific to artisteer.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 7, 2012 - 12:45 pm

I do suspect this is the issue. Sadly there are an awful lot of themes out there that do not take fully into account the requirements of WP plugins.
My own personal recommendation would be to bypass the callback function and do your own thing which would mean adding on the styling - which I do appreciate is a pain. Although I suppose my first recourse would be to ask the theme author for some help. After all the WP comments data object should be the standard used.
If it is of any help you can tell them that we use the wp filter 'comments_array' to ad our content - something which does not appear to have been called when it should. They should be able to help you get that into place I would have thought.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jawaulk
Member
Free Members
sp_UserOfflineSmall Offline
Mar 7, 2012 - 12:55 pm

Thanks Yellow Swordfish.

When you say "bypass the callback function and do your own thing" I have no clue what so ever on how to add the styling back in that the callback function takes care of. So not only is it a pain but impossible for me with my limited knowledge. The only way I would be able to accomplish that is if somebody gave me the exact code to copy and past into my file.

Oh well guess I am going to ask around some more on the Artisteer forum and see if they can help.

Thanks for your time Yellow Swordfish.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 7, 2012 - 2:27 pm

I understand and sympathise with your reluctance although it's probably not that hard.

i would be most interested in any response you get from the theme authors as adding in that hook would be the simplest and best solution.

andy-signature.png
YELLOW
SWORDFISH
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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625