× Joomla Facebook Connect support forum

Topic-icon Add To Template Files

Active Subscriptions:

None
15 years 3 months ago #7734 by fb_604962362
How can I add your modules to JSPT profile templates (profile.index.php)?
The topic has been locked.
Support Specialist
15 years 3 months ago #7745 by alzander
Replied by alzander on topic Add To Template Files
Most of the modules have tags that you can use for them, like { JFBCLike} (no spaces). You can insert these directly into template files or modules to be output, and the JFBCSocial (or system) plugins will replace the tags with the correct module. For more information about the available tags, see:
www.sourcecoast.com/extensions/jfbconnec...ation-guide?start=11

If that doesn't work, you would need to add the Joomla code to actually fetch any modules for that position and show them. You can do so like:
jimport( 'joomla.application.module.helper' );
$modules = JModuleHelper::getModules( 'jspt_group1');
$attribs['style'] = 'xhtml';
foreach ($modules as $module)
  echo JModuleHelper::renderModule( $module, $attribs );
With that, you can simply assign whatever modules (not just JFBC ones) to the jspt_group1 module position (you'll need to type this in to the position assignment box, it won't be in the drop-down), and those modules will automatically appear on the page.

Hope this helps, but if not, let us know. We're slowly moving all the JFBC modules to have tags for easier insertion, just so you know :)

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7750 by fb_604962362
Replied by fb_604962362 on topic Add To Template Files
Thanks Alex! The PHP code you provided seems to work out perfect!
The topic has been locked.
Support Specialist
15 years 3 months ago #7756 by alzander
Replied by alzander on topic Add To Template Files
Brandon,
Glad to hear that worked! We always like to hear that, and hopefully you gained a little knowledge in the process :)

If you'd like to vote, or review, our extension or support at the Joomla Extension Directory, we'd appreciate it, though it's certainly not required:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, good luck, and let us know if you have any other questions!
The topic has been locked.