dave
01-01-2003, 05:30 PM
This is going to be hard to describe and I'll do my best.
Using IBF bulletin board system.
This is the php source
$member['email_icon'] = "<a href='{$this->base_url}&act=Mail&CODE=00&MID={$member['id']}'>{$ibforums->skin['P_EMAIL']}</a> ";
What that does is:
['P_EMAIL'] is replaced by:
The Macro:
<img src='style_images/1/p_email.gif' border='0' alt=''>
It displays the email button and the source above tells it what to do when clicked.
This is an example of this that works fine elsewhere where this macro replacement is not involved.
<input type="button" name="email" value="Email" onClick="goToURL('parent','{$this->base_url}&act=Mail&CODE=00&MID={$member['id']}');return document.returnValue" class="navbuttonup">
So somehow I would like to display the input button in place of the image and have it perform the same action.
I hope I described this well enough, being as it involves a php bb and it specific functions.
Thank you for help in advance.
EDIT: FYI the input button works in place of the macro, the link does not work, the answer I seek is how to code it in the php source file as not to cause any parse errors and have the onClick="gotoURL behavior work.
The closest I have come to having it not work and also have no parse erors was changing to this:
$member['email_icon'] = "<a href=\"javascript:onClick='goToURL('parent','{$this->base_url}&act=Mail&CODE=00&MID={$member['id']}');return document.returnValue'\">{$ibforums->skin['P_EMAIL']}</a> ";
and the macro to this:
<input type="button" name="email" value="Email" class="navbuttonup">
This has to be doable somehow it's just beyond my knowledge as of now.
Using IBF bulletin board system.
This is the php source
$member['email_icon'] = "<a href='{$this->base_url}&act=Mail&CODE=00&MID={$member['id']}'>{$ibforums->skin['P_EMAIL']}</a> ";
What that does is:
['P_EMAIL'] is replaced by:
The Macro:
<img src='style_images/1/p_email.gif' border='0' alt=''>
It displays the email button and the source above tells it what to do when clicked.
This is an example of this that works fine elsewhere where this macro replacement is not involved.
<input type="button" name="email" value="Email" onClick="goToURL('parent','{$this->base_url}&act=Mail&CODE=00&MID={$member['id']}');return document.returnValue" class="navbuttonup">
So somehow I would like to display the input button in place of the image and have it perform the same action.
I hope I described this well enough, being as it involves a php bb and it specific functions.
Thank you for help in advance.
EDIT: FYI the input button works in place of the macro, the link does not work, the answer I seek is how to code it in the php source file as not to cause any parse errors and have the onClick="gotoURL behavior work.
The closest I have come to having it not work and also have no parse erors was changing to this:
$member['email_icon'] = "<a href=\"javascript:onClick='goToURL('parent','{$this->base_url}&act=Mail&CODE=00&MID={$member['id']}');return document.returnValue'\">{$ibforums->skin['P_EMAIL']}</a> ";
and the macro to this:
<input type="button" name="email" value="Email" class="navbuttonup">
This has to be doable somehow it's just beyond my knowledge as of now.