Topic-icon Easytags for combined social icons?

Active Subscriptions:

None
11 years 5 months ago #49844 by rodster
Hello :rolleyes: .

Wondering HOW to have easytags for all social options at once? so 1 combined easytag for lFB like, twitter etc

I checked www.sourcecoast.com/jfbconnect/docs/social-sharing/easy-tags but didn't find it there.
File Attachment:
The topic has been locked.
Support Specialist
11 years 5 months ago #49859 by alzander
Unfortunately, we don't have a one-tag to rule them all yet. It's on our to-do list though. For now, you'll need to:
* Use multiple easy-tags
* Create an instance of the JFBCSocialShare module and then include it in a module position (or through a module insertion tag or PHP).

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #49867 by rodster
* Create an instance of the JFBCSocialShare module and then include it in a module position (or through a module insertion tag or PHP).

I can only use the template insertion option/do you have an example of this ' combined tag''?
The topic has been locked.
Support Specialist
11 years 5 months ago #49874 by alzander
First, you need to configure the JFBCSocialShare module how you want it to display.
Then, set it's module position to a custom name, like "social-buttons".
If you're wanting to add them to all pages of your site by using the master template file, you can then simply add the following tag to the template wherever you want the modules to load:
<jdoc:include type="modules" name="social-buttons" />
My guess is that you're looking to add it to specific component layouts, in which case you'd want to use the following PHP:
jimport('joomla.application.module.helper');
    // this is where you want to load your module position
    $modules = JModuleHelper::getModules('social-buttons'); 
    foreach($modules as $module)
    {
    echo JModuleHelper::renderModule($module);
    }
Once displayed, you can configure the looks using the JFBCSocialShare module, which should be easier to manage than the individual Easy Tags.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #49879 by rodster
Hi Alazander,

is that the same method as inserting easytags like {JFBCLike href=http://****.com layout=box_count show_faces=true share=true width=300 action=like colorscheme=light ref=homepage kid_directed_site=true} ???

I need the tags to appear in a specific article layout...I have attached the layout file.
www.dropbox.com/s/r302g07z7gc0lo9/default-artist.php.php?dl=0
As you can see on line:336 I have done that with the LIKE button. That works but that needs to be like my 1st attachment (module version)

So can I use the piece of code in this php file?

Cheers/
The topic has been locked.
Support Specialist
11 years 5 months ago #49885 by alzander
You can do it with multiple {JFBCxyz} tags, the JFBCSocialShare module and using some PHP code or probably various other methods. Each one would likely require a little CSS styling if you need it to appear in a specific way with perfect spacing, etc. The JFBCSocialShare module has some settings for margin, border, and other styles, which is why I recommend that. It also means that ones you set it up, you can change most settings from the module parameters, which are easier to configure than updating the Easy Tags.

The choice is yours though on which way you prefer to use.

Alex
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #49890 by rodster
OK..

Created a custom module ' social-buttons-artist' ..configured & enabled it.
added jimport('joomla.application.module.helper');

// this is where you want to load your module position

$modules = JModuleHelper::getModules('social-buttons-artist');

foreach($modules as $module)

{

echo JModuleHelper::renderModule($module);

}

But this does not to do the magic :( I see the code on the page.

PS/since it is a php content file I used this method of course so i can manage via module.
The topic has been locked.
Support Specialist
11 years 5 months ago #49892 by alzander
In the file make sure you're adding the <?php before that code and the ?> after the code. That will execute the commands instead of just displaying them.

Keep us posted on how that goes,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 5 months ago #49905 by rodster

alzander wrote: In the file make sure you're adding the <?php before that code and the ?> after the code. That will execute the commands instead of just displaying them.

Keep us posted on how that goes,
Alex


Hi Alex, done that. it now renders but on the left top part of the page and not below the article where I'd expect.
Note that on this same page I already had the like & share button and that was positioned very well.
So should it be necessary to do extra styling etc to make it align correctly on the page?
The topic has been locked.
Support Specialist
11 years 5 months ago #49908 by alzander
It sounds like you have the JFBCSocialShare module configured to 'float', like we do in the bottom right of this site.

In the JFBCSocialShare module parameters, make sure the "Position" is set to "Fixed" so that it will show wherever the module is placed.

I hope that helps,
Alex
The topic has been locked.