Kryptronic Software Support Forum

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.

#1 09-30-2012 22:18:47

timberguy
Member
Registered: 01-14-2008
Posts: 142

Additional Social Media Links

How would one go about adding additional social media links? Like Youtube as an example.

Offline

 

#2 10-01-2012 07:25:24

jj1987
Member
From: Orlando, FL
Registered: 07-14-2008
Posts: 502
Website

Re: Additional Social Media Links

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.



-James Garrett

Offline

 

#3 10-01-2012 07:52:51

timberguy
Member
Registered: 01-14-2008
Posts: 142

Re: Additional Social Media Links

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

 

#4 10-01-2012 11:38:41

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Additional Social Media Links

You could add those manually by editing the 'Skin Widget Social Media' include in admin under System > Displays > Display Includes.


Nick Hendler

Offline

 

#5 12-09-2012 20:14:07

aspiringdesign
Member
Registered: 07-17-2011
Posts: 14

Re: Additional Social Media Links

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

 

#6 12-10-2012 09:51:06

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Additional Social Media Links

You can add that at the top:

Code:

$link_xxx = 'http://xxxx';

Nick Hendler

Offline

 

Board footer