Try
Code:
<legend><?php echo HEADING_TITLE; ?></legend>
From now on I am guessing as I don't know the mod.
As far as the blank page goes : the link looks kind of wrong.
"http://herdoos.com/shop/index.php?main_page=advise_to_friend&action=process&adlink="
It's the adlink= that obviously should be set to something and hasn't been.
It looks like that is meant to contain the URL of the page to be recommended but doesn't. SO something is going wrong. And when the form is processed MAYBE this is causing the php to fail. It will be in the header_php.php file for the new page, I suspect. But I am shooting in the dark a bit because I don't know the mod.
Looking at the previous bit of code that you posted:
Code:
<div class="centerColumn" id="tellAFriendDefault">
<?php echo zen_draw_form('email_friend', zen_href_link(FILENAME_ADVISE_TO_FRIEND, 'action=process&adlink=' . urlencode($_GET['adlink']))); ?>
the page with the form is trying to get the adlink from a _GET which means that the adlink should be added to the url on the page that the original 'Tell a Friend' button was pressed. Looking at the page source for this page the link looks like this:
Code:
<a href="http://herdoos.com/shop/index.php?main_page=advise_to_friend">TELL A FRIEND</a>
So, no adlink has been appended to the URL here so it doesn't arrive at the form page and it isn't passed out of the form page. (And doesn't appear on the emails either)
OK. So now I have downloaded the MOD and had a look
At the end of the process the user is redirected back to the original page. The line that does that is in header_php.php file and looks like:
Code:
zen_redirect($adLink);
If adlink doesn't exist then this is going to cause problems.
So, because the initial link is not passing a value for adlink the process is going wrong. I am not sure how that link has been created but it needs to have a bit of code to add the value 'adlink' to it.
On a different issue you will want to think about how this works with 'guests'. You might not want this enabled with guests as it allows anyone to send mail (Which might say 'buy your ############ from Dans ############ Shop') to anyone else via the site. Just a thought.
And wow I just discovered that this forum won't even let me use the word for that common drug name that appears in so much spam!