Quote:
Originally Posted by DotSauce
I am trying to add a "Tweet This" button next to the the Rate/Comment button.
How would I edit links_linkbit template to do this...
Code:
<a href="http://twitter.com/home?status=$linkname: $linkshortdesc $linkurl">Tweet This</a>
I don't know the proper syntax for calling these values. Any help would be appreciated.
|
The links_linkbit template includes a section:
PHP Code:
<if condition="$links_permissions['can_rate_link'] and $linkratebitdropdown">
<tr>
<td align="$stylevar[left]">
$linkratebitdropdown
</td>
</tr>
</if>
which displays the Rate/Comment button (at least if you are using the drop-down option for ratings/comments). Add your code here.
As far as the syntax goes, you should replace spaces by the sequence %20.
E.g.:
PHP Code:
<if condition="$links_permissions['can_rate_link'] and $linkratebitdropdown">
<tr>
<td align="$stylevar[left]">
$linkratebitdropdown
</td>
</tr>
</if>
<tr>
<td align="$stylevar[right]">
<a href="http://twitter.com/home?status=$linkname:%20$linkshortdesc%20$linkurl">Tweet This</a>
</td>
</tr>