Topic-icon Add some text BEFORE the fb comment box

Active Subscriptions:

None
13 years 2 weeks ago #33287 by Aryentain
Hi guys, i need to display a "comments" text title before the fb comment box (which i enabled in social > content plugin - comment, option "show in article view": bottom) for the regular joomla article view, which file do i need to modify to achieve this? does jfbconnect has an option to insert html before the comment? Thanks in advance!
The topic has been locked.
Support Specialist
13 years 2 weeks ago #33295 by alzander
Hmmm. That's not a request we've had before for the content plugin. The Comments module has an 'introtext' parameter, but the content doesn't.

Adding your own text shouldn't be that difficult. However, you'll need to make sure you re-add it if you ever upgrade, which may be annoying. To add your own custom text, edit the /plugins/content/jfbccontent/jfbccontent.php file. At the very bottom, you'll see:
else 
        { 
            $commentText = '{JFBCComments href=' . $href . ' width=' . $width . ' num_posts=' . $numposts 
                       . ' colorscheme=' . $colorscheme . ' order_by=' . $orderBy . $renderKeyString . '}'; 
        }
Update that too:
else 
        { 
            $commentText = 'ADD YOUR TEXT HERE<br/>{JFBCComments href=' . $href . ' width=' . $width . ' num_posts=' . $numposts 
                       . ' colorscheme=' . $colorscheme . ' order_by=' . $orderBy . $renderKeyString . '}'; 
        }
Test and let us know if that does what you're looking for. If you have any other questions though, just let us know.

Thanks!
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 2 weeks ago #33312 by Aryentain
Many thanks alzander, that made the trick. Many thanks! I guess it's a simple but usefull feature if you want to add a "comments" text prior the comment box.
The topic has been locked.
Support Specialist
13 years 2 weeks ago #33313 by alzander
Glad to hear we could help. If you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck,
Alex
The topic has been locked.