Support Forum
There are two code snippets. One for the header.php file and the other goes where the comments are supposed to appear. For my site i added the appear code just above my get comments line in single.php and page.php.
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
It does work - but only on topic posts that have replies. Does not show up on single topic posts.
It's also duplicating after each post. Only once is needed. The best place for it to appear is right after the 1st post content. It is also posting the comment to my FB wall properly.
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
If y'all ever consider a plugin to add this functionality I'm thinking a shortcode added to the tinymce editor would be the cats ass. If someone creates a post and wants optional Facebook comments clicking a button would add a shortcode [fbcomments] at the bottom of the post being created.
During the election i gained a great deal of Facebook trial and error knowledge. Facebookers are hesitant to click a link. But if enticed via the post title, once on the page they were directed to will comment if Facebook comments is installed.
I found Facebookers wouldn't comment using SP even if registration was not required. Thinking this would be a great tool for SP admins wanting to increase their forum use from Facebook members.
A plugin i used to run had the shortcode option [fbcomments] and that worked great putting it under the post text, but was not updated and caused amp pages errors.
My politics forum posts are out ranking WordPress blog posts. https://www.docsplace.org/forum/politics/
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Well just hold on... sorry to ay it is my code form yesterday that is wrong..
I told you to use:
if ($spThisPost->post_index > 1) {
and it SHOULD have been:
if ($spThisPost->post_index == 1) {
(That is two equal signs).
Apologies for that. Misunderstood the instructions. And we can certainly discuss the plugin idea....
YELLOW
SWORDFISH
|
That works. But places fb comments on top of the post.
Would be better under the post if possible.
- Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Sorry Doc - i think you must have just missed me last night by minutes!
If you look at the topic view template we altered the other day, we inserted the code just before the call to:
sp_SectionStart('tagClass=spTopicPostSection', 'post');
Trace the code down the template and you will come to the call to:
sp_SectionEnd('', 'post');
If you move the code to immediately AFTER that section end call, then it will appear after the post instead of before it.
YELLOW
SWORDFISH
|
1 Guest(s)