Adding new button, just for posts and encoding issue.
Hi everyone and thanks for your help.
i want to add a button (right next to the quote button) to each post, when a user click on that button he will be transferred to another system that will receive the current page title and postid information.
i tried to edit the 'postbit_legacy' template and added this link:
<a href="mydomain.com/page.php?postId=$post[postid]&postTitle=$post[title] target="_blank">
<img src="$stylevar[imgdir_button]/test.gif" border="0" />
</a>
my problem is that the new button is being displayed in private messages as well.
i have two questions:
1. how can i create a condition that will display the buttons only in posts ?
2. how can i encode the title for sending it in a query string ?
hope i made myself clear.
thanks, Shlomi.
|