1
I have Xpress 2.04 (WordPress for Xoops) installed for a blog and would like to add some code that will allow readers to print or email specific pages to friends like what is available in the News and AMS modules.
Noticing that the code is the same in both other modules I thought that simply pasting the code in the correct page would do the trick. I was wrong! I pasted in:
NOTE: I took out the leading <'s and trailing >'s for each line of the following so I could get the code to display in this post.
====================================================
a href="print.php?storyid=<{$story.id}"
imgsrc="images/print.gif" border="0" alt="<{$lang_printerpage}>" />
a target="_top" href="<{$mail_link}>"
img src="images/friend.gif" border="0" alt="<$lang_sendstory}>" />
====================================================
In the wordpress/templates/wprdpress/comments.php file but it doesn’t work and I am not really experienced enough to know how to figure out what is wrong or how to fix it. I suspect perhaps I put it in the wrong file??? Not to mention perhaps a syntax error considering the following.
With the Print function I get the following browser error:
“Page could not be found” with this URL ../wordpress/print.php?storyid=<{$story.id}>
With the Email function I get the following browser error:
Bad Request (Invalid URL)
with this URL ../wordpress/<{$mail_link}>
I would appreciate some guidance