Share this story icons not sharing!

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Fri Mar 11, 2016 10:47 pm
Reply with quote
Report this post
hello

the links - urls on all social icons have nothing after the u= or url=

so the sharing function is not working.

any hints?
User avatar
Junior Boarder

GK User
Tue Mar 15, 2016 10:26 am
Reply with quote
Report this post
on every k2 item you click you can see at the bottom the social icons as i mentioned after the u= or url= there is not the url of the page Im at .

I checked the demo and on mouse over each social icon after the u= or url= there is another url of the current page.
User avatar
Junior Boarder

teitbite
Tue Mar 15, 2016 12:55 pm
Reply with quote
Report this post
Hi

please edit file gk_news_refreshed/html/com_k2/templates/default/item.php and add this two lines:

Code: Select all
$cur_url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$cur_url = preg_replace('@%[0-9A-Fa-f]{1,2}@mi', '', htmlspecialchars($cur_url, ENT_QUOTES, 'UTF-8'));


after line 13, which should looks like this:

Code: Select all
  $k2ContainerClasses = (($this->item->featured) ? ' itemIsFeatured' : '') . ($params->get('pageclass_sfx')) ? ' '.$params->get('pageclass_sfx') : '';
User avatar
Moderator

GK User
Tue Mar 15, 2016 1:01 pm
Reply with quote
Report this post
ready this dit it thank you
User avatar
Junior Boarder

teitbite
Tue Mar 15, 2016 1:36 pm
Reply with quote
Report this post
Hi

also the print button is not working and the increase decrease fonts button only scales to one amount...


Please tell me an url to Your site. Print works ok for me and as far as I know fort resizer should be disabled.
User avatar
Moderator

GK User
Mon Mar 21, 2016 10:30 am
Reply with quote
Report this post
thank you
User avatar
Junior Boarder

teitbite
Mon Mar 21, 2016 11:21 am
Reply with quote
Report this post
Hi

I'm sorry, but I think it's not working correctly becuase of the extensive modifications done to template. I'm trying to compare the code with the demo where it works fine, but there is just too many elements there. I'm afraid I will not be able to help this time.
User avatar
Moderator


cron