You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
How would one go about adding additional social media links? Like Youtube as an example.
Offline
timberguy wrote:
How would one go about adding additional social media links? Like Youtube as an example.
Look in the settings table of the database. Just clone any of the current social media rows and you'll have it automatically there.
For the skin, do the same, just copy the global with the new name and it works automatically.
Offline
Where I want it to appear is in the footer below the facebook include. I don't understand what you mean about getting it to appear in the skin.
Offline
I have edited the Skin Widget under System > Displays > Display Includes > Social media with the below code but when I go to System > Component > Settings > Social Media .... I don't not see the field to enter the linked in path.
Suggestions welcomed!!
<?php
$app = $this->globals('core.app');
$eol = $this->globals('core.eol');
$link_twitter = $this->globals('core_settings.core.link_social_twitter');
$link_googleplus = $this->globals('core_settings.core.link_social_googleplus');
$link_facebook = $this->globals('core_settings.core.link_social_facebook');
$link_linkedin = $this->globals('core_settings.core.link_social_linkedin');
if ((empty($link_twitter)) && (empty($link_googleplus)) && (empty($link_facebook)) && (empty($link_linkedin))) {return 1;}
$widget_name = $this->xhtml_encode($this->globals('core_app.name_skinwidget_social'));
$widget_class = $this->xhtml_encode($this->globals('core_app.class_skinwidget_social'));
if (empty($widget_name)) {$widget_name = 'Follow Us';}
if (empty($widget_class)) {$widget_class = 'skin_widgetclass_SIDEMENU';}
$mobile_active = $this->globals('core.mobile_skinwidget_active');
$ajax_active = $this->globals('core.ajax_active');
if (!(empty($ajax_active))) {
$joomla_active = $this->globals('core_settings.core.joomlaskinstatus');
$mobile_active = $this->globals('core.mobile_display');
if (!(empty($mobile_active))) {
$this->include_namespace('core','skinwidget_setmobilewrapperid','core.skinwidget_social');
} // End of if statement.
} // End of if statement.
if (empty($ajax_active)) {
print '<div id="core_skinwidget_social" class="' . $widget_class . '">' . $eol;
} // End of if statement.
if (empty($mobile_active)) {
print '<div class="skin_widgettitle">' . $widget_name . '</div>' . $eol;
} else {
$wrapper_id = $this->globals('core.wrapper_id');
print '<div class="skin_widgettitle">';
print '<a onclick="toggleMobileMenu(\'' . $wrapper_id . '\',\'' . $widget_class . '_wrapper\',\'core_skinwidget_social_wrapper\');">';
print $widget_name . '</a></div>' . $eol;
print '<div id="core_skinwidget_social_wrapper" class="' . $widget_class . '_wrapper">' . $eol;
$js_docready = 'jQuery(\'#core_skinwidget_social_wrapper\').css({\'display\': \'none\'});';
$this->append_global_array('core.js_docready',$js_docready);
} // End of if statement.
print '<div class="skin_widgetcontent">' . $eol . $eol;
print '<table class="invisible">' . $eol;
if (!(empty($link_twitter))) {
print '<tr><td class="invisible" style="width: 16px; padding: 0px 8px 4px 0px;"><img src="media/core/images/social_twitter.png" ';
print 'width="16" height="16" style="width: 16px; height: 16px; display: block; vertical-align: middle;" alt="Twitter" /></td>' . $eol;
print '<td class="invisible" style="vertical-align: middle; padding: 0px 0px 4px 0px;"><a href="' . $link_twitter . '" title="Twitter" rel="external">Twitter</a></td></tr>' . $eol;
} // End of if statement.
if (!(empty($link_googleplus))) {
print '<tr><td class="invisible" style="width: 16px; padding: 0px 8px 4px 0px;"><img src="media/core/images/social_googleplus.png" ';
print 'width="16" height="16" style="width: 16px; height: 16px; display: block; vertical-align: middle;" alt="Google Plus" /></td>' . $eol;
print '<td class="invisible" style="vertical-align: middle; padding: 0px 0px 4px 0px;"><a href="' . $link_googleplus . '" title="Google Plus" rel="external">Google Plus</a></td></tr>' . $eol;
} // End of if statement.
if (!(empty($link_facebook))) {
print '<tr><td class="invisible" style="width: 16px; padding: 0px 8px 4px 0px;"><img src="media/core/images/social_facebook.png" ';
print 'width="16" height="16" style="width: 16px; height: 16px; display: block; vertical-align: middle;" alt="Facebook" /></td>' . $eol;
print '<td class="invisible" style="vertical-align: middle; padding: 0px 0px 4px 0px;"><a href="' . $link_facebook . '" title="Facebook" rel="external">Facebook</a></td></tr>' . $eol;
} // End of if statement.
if (!(empty($link_linkedin))) {
print '<tr><td class="invisible" style="width: 16px; padding: 0px 8px 4px 0px;"><img src="media/core/images/linkedin_16.png" ';
print 'width="16" height="16" style="width: 16px; height: 16px; display: block; vertical-align: middle;" alt="Linkedin" /></td>' . $eol;
print '<td class="invisible" style="vertical-align: middle; padding: 0px 0px 4px 0px;"><a href="' . $link_linkedin . '" title="Linkedin" rel="external">LinkedIn</a></td></tr>' . $eol;
} // End of if statement.
print '</table>' . $eol;
print '</div>' . $eol;
if (!(empty($mobile_active))) {
print '</div>' . $eol;
} // End of if statement.
if (empty($ajax_active)) {
print '</div>' . $eol . $eol;
} // End of if statement.
?>
Offline