Adding New Icons On SideBar

Social Joomla! template ideal to promote activities and discussion at various levels with JomSocial support.
GK User
Wed Dec 29, 2010 4:28 pm
Hi,

I have made changes to the code to show the link to stumbleupon.com on the social sidebar.

The only problem I am having is the image shows the Flickr image.
I have created a stumbleupon.png and uploaded it to the images folder but how do I get the new button to pick up the stumbleupon image.

Thanks in advance.

Cheers
Richard
User avatar
Fresh Boarder

GK User
Wed Jan 05, 2011 8:11 pm
Hi Guys,

Can anyone help me with this one?

Cheers
Rrichard
User avatar
Fresh Boarder

teitbite
Thu Jan 06, 2011 10:54 pm
Hi

I do not understand what You need. Could You please show this to me on Your site.
User avatar
Moderator

GK User
Fri Jan 07, 2011 12:16 am
Hi,

Our site is http://commculture.com.

The social icons on the right work fine and we have added a new one for "stumbleupon" at the bottom.
It currently shows the same icon as for Flickr but we need it to show the icon for stumbleupon.
Where do we need to put the icon and then where do we need to change the code to display the icon (like the others do).

Hope this explains it better.

Many Thanks
Richard
User avatar
Fresh Boarder

teitbite
Sat Jan 08, 2011 2:21 am
Hi

You need to use this code:

Code: Select all
a#social_icon10 {
    background: transparent url(LINK_TO_ICON) no-repeat 0px 0px;
}


in any css file.
User avatar
Moderator

GK User
Sat Jan 08, 2011 11:54 am
Hi teitbite,

That works a treat.

Thanks for your help.

Cheers
Richard
User avatar
Fresh Boarder

GK User
Sun Feb 06, 2011 4:51 pm
here is how I added YouTube



I entered these:

in template.css.css
a#social_icon10 {background: transparent url('/../templates/gk_quay/images/style2/youtube16.png') no-repeat 0px 0px;}

in panel.php I added this line inside the <div id="social_icons">

<?php if($this->template->params->get("icon6", 1) == 1) : ?><a href="http://www.youtube.com/peerdiligence" class="social_icon" id="social_icon10">YouTube</a><?php endif; ?>

Youtube16.png must be 16pt and a png format.

Thanks in advance,

Kersten
User avatar
Fresh Boarder

GK User
Sun Feb 06, 2011 10:50 pm
Hi Kersten

In //templates/gk_quay/layouts/blocks/panel.php

This is the code I used to add the delicious icon.

<?php if($this->template->params->get("icon7", 1) == 1) : ?>
<a href="http://del.icio.us/post?url=http://<?php echo $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']?>"
class="social_icon" id="social_icon7" target="_blank" title="Delicious">Delicious</a><?php endif; ?>

Hope this helps.

Regards
Richard
User avatar
Fresh Boarder


cron