|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
macangelo Smarty Rookie
Joined: 02 May 2009 Posts: 5
|
Posted: Thu Apr 24, 2014 8:42 am Post subject: get url for social media recommendation |
|
|
Hi
I want to create buttons that recommend my web pages. So I have to create a link.
What I tried is this, the basics work, but not the attributes. For example I have a page with this url:
http://mydomain.com/index.php?module=home&page=searchresult&cid=12345
My link for xing would be:
<a href="https://www.xing.com/app/user?op=share;url={$smarty.server.SERVER_NAME}/index.php?module=home&page={$smarty.get.page}&cid={$smarty.get.cid}" target="_blank" title="{if $pg_title neq '' or $pg_catname neq ''}{if $pg_title eq ''}{$pg_catname|escape:'html'} - {else}{$pg_title|escape:'html'} - {/if}{/if}My Webpage"><img src="xing.png" alt="share at xing" /></a>
My link for Facebook would be:
<a href="http://www.facebook.com/sharer/sharer.php?u={$smarty.server.SERVER_NAME}/index.php?module=home&page={$smarty.get.page}&cid={$smarty.get.cid}&{if $pg_title neq '' or $pg_catname neq ''}{if $pg_title eq ''}{$pg_catname|escape:'html'} - {else}{$pg_title|escape:'html'} - {/if}{/if}MyWebpage" target="_blank"><img src="facebook.png" alt="facebook" /></a>
Everything works fine, except no matter on which page I am always and only the start page gets recommended.
Thank you for any help |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|