[SOLVED] Social Icons URL's are incorrect

GK User
Thu Mar 17, 2011 3:50 am
It seems that no matter what format you enter the social icon URL's into the template parameters, the url link on the front end is incorrect.

For instance: enter http://www.facebook.com/someone into the Facebook URL parameter and the resulting link is: http://www.yoursite.com/www.facebook.comsomeone

I figured out the offending code is in /templates/gk_musicity/layouts/blocks/top.php but I have no real idea how to fix it.

I did find this thread on the forum however the code is completely different and everything I tried resulted in an error.

Any ideas how to fix? Thanks.
User avatar
Junior Boarder

GK User
Thu Mar 17, 2011 5:05 pm
use the http:// at the front of the address, that usually fixes my problems like this
User avatar
Senior Boarder

GK User
Thu Mar 17, 2011 10:34 pm
I'd already tried the url's with the preceding http:// format and every other variation but no url format seems to work. They all result in the same incorrect URL on the front end; with the base (home) url preceding the desired social network url and the trailing / being removed after the xxx.com.

It's not such a problem for me personally now as I've replaced the template's social icons with another module position and used a 3rd party extension instead. I imagine however, that it might be an issue for some other users.
User avatar
Junior Boarder

GK User
Thu Mar 17, 2011 11:32 pm
I remembered that there is actually a fix for this I think you have to manually edit the params.ini file in your template folder to fix this. Try that
User avatar
Senior Boarder

GK User
Tue Mar 22, 2011 1:52 pm
Hi!
I have the same problem. Did everything as mentioned above - has not helped. How to register url? Please, tell me! :(
User avatar
Fresh Boarder

GK User
Tue Mar 22, 2011 2:09 pm
Please put the http like this: http://
User avatar
Administrator

GK User
Tue Mar 22, 2011 3:04 pm
Thanks for the quick reply.
I prescribe "http:www.facebook.com/...", but still - "Oops! This link appears to be broken"
User avatar
Fresh Boarder

teitbite
Wed Mar 23, 2011 7:08 pm
Hi

Please use the double slash before "http:"
User avatar
Moderator

GK User
Thu Mar 24, 2011 6:56 am
Hi,
like this - //http:www.facebook.com? - Oops! This link appears to be broken.

Please indicate how the reference should look at an example
User avatar
Fresh Boarder

GK User
Thu Mar 24, 2011 7:06 am
Hi,

the Slashes should be right after the http:

Try it like this:

Code: Select all
http://www.facebook.com/...
User avatar
Senior Boarder

GK User
Thu Mar 24, 2011 11:11 am
:( Not obtained. When I put this URL, then click on the "facebook" button, I get redirected to a page -
http://xn--90aiakggl0bl3hwa.xn--p1ai/O/publikacii/krasota/www.facebook.com!!!

1.JPG


2.JPG
User avatar
Fresh Boarder

GK User
Thu Mar 24, 2011 11:14 am
User avatar
Administrator

GK User
Thu Mar 24, 2011 11:17 am
It turned out !!!!!!!!!!!!!!!! :laugh: Thank you SO MUCH!!!!
User avatar
Fresh Boarder

GK User
Thu Mar 24, 2011 11:32 am
Hi

Please open the following file:
../gk_musicity/layouts/blocks/top.php


and replace this code
Code: Select all
<div id="gk-social-icons">
      <?php if($this->getParam('socialIcons1')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons1url'); ?>" id="gk-icons-facebook"><?php echo $this->getParam('socialIcons1text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons2')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons2url'); ?>" id="gk-icons-vimeo"><?php echo $this->getParam('socialIcons2text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons3')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons3url'); ?>" id="gk-icons-twitter"><?php echo $this->getParam('socialIcons3text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons4')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons4url'); ?>" id="gk-icons-delicious"><?php echo $this->getParam('socialIcons4text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons5')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons5url'); ?>" id="gk-icons-buzz"><?php echo $this->getParam('socialIcons5text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons6')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons6url'); ?>" id="gk-icons-digg"><?php echo $this->getParam('socialIcons6text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons7')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons7url'); ?>" id="gk-icons-youtube"><?php echo $this->getParam('socialIcons7text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons8')) : ?>   
      <a href="<?php echo $this->getParam('socialIcons8url'); ?>" id="gk-icons-myspace"><?php echo $this->getParam('socialIcons8text'); ?></a>
      <?php endif; ?>
   </div>


with this one:

Code: Select all
<div id="gk-social-icons">
      <?php if($this->getParam('socialIcons1')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons1url'); ?>" id="gk-icons-facebook" target="_blank"><?php echo $this->getParam('socialIcons1text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons2')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons2url'); ?>" id="gk-icons-vimeo" target="_blank"><?php echo $this->getParam('socialIcons2text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons3')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons3url'); ?>" id="gk-icons-twitter" target="_blank"><?php echo $this->getParam('socialIcons3text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons4')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons4url'); ?>" id="gk-icons-delicious" target="_blank"><?php echo $this->getParam('socialIcons4text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons5')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons5url'); ?>" id="gk-icons-buzz" target="_blank"><?php echo $this->getParam('socialIcons5text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons6')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons6url'); ?>" id="gk-icons-digg" target="_blank"><?php echo $this->getParam('socialIcons6text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons7')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons7url'); ?>" id="gk-icons-youtube" target="_blank"><?php echo $this->getParam('socialIcons7text'); ?></a>
      <?php endif; ?>
      <?php if($this->getParam('socialIcons8')) : ?>   
      <a href="http://<?php echo $this->getParam('socialIcons8url'); ?>" id="gk-icons-myspace" target="_blank"><?php echo $this->getParam('socialIcons8text'); ?></a>
      <?php endif; ?>
   </div>


Important!
Now you just need to add "www.facebook.com" without http://
User avatar
Platinum Boarder

GK User
Thu Mar 24, 2011 11:43 am
:laugh: Cool!
Ability to have another problem! If I insert a URL - http://www.youtube.com - all great, but if I put this - http://www.youtube.com/user/beautymakerRF?feature=mhum - Oops! Google Chrome could not find www.youtube.comuserbeautymakerrf. Slashes disappear!
User avatar
Fresh Boarder

GK User
Thu Mar 24, 2011 12:27 pm
Hi again

We have found another problem but it's already fixed.
Please update template files by following this release.

Cheers ;)
User avatar
Platinum Boarder

GK User
Thu Mar 24, 2011 12:31 pm
mamutov wrote::laugh: Cool!
Ability to have another problem! If I insert a URL - http://www.youtube.com - all great, but if I put this - http://www.youtube.com/user/beautymakerRF?feature=mhum - Oops! Google Chrome could not find www.youtube.comuserbeautymakerrf. Slashes disappear!


Please try updating templates files with version 1.0.2 (last one ;) )
User avatar
Platinum Boarder

GK User
Thu Mar 24, 2011 1:44 pm
:blink: And I have changed nothing! The problem remains!
User avatar
Fresh Boarder

GK User
Thu Mar 24, 2011 2:02 pm
Did you add http:// before url - the bug was connected with filtering the input fields content. After update you have to add full url like: http://youtube.com/watch?yyy
User avatar
Administrator

GK User
Thu Mar 24, 2011 4:12 pm
:woohoo: :laugh: :woohoo: I am so excited !!!!! Thank you very much!
User avatar
Fresh Boarder

GK User
Thu Apr 14, 2011 11:17 pm
Hi, I've the same problem also after upgrading template version.
the url with slash is replaced without slash like that:
http://www.facebook.compagespagename34532/
How can I solve that replacement?
Thanks
User avatar
Fresh Boarder


cron