phpfan wrote:...but try as I might, when I send a test message to myself from the standard PHPList editor (that *is* the only way, isn't it?) or to a test mailing list, I get only the [PBTS_XTRA...] tags in the output message. When I preview the message in the pbts_xtra plug-in editor, it looks great, but when I use the standard PHPList functions to send it, something goes wrong.
Template:
Fatal error: Call to a member function on a non-object in /{path}/public_html/elements/admin/plugins/pbts_xtra/pbts_msg.php on line 45
function pbts_writeTemplateSelect( $p_selected_id ){
echo( "\n<select>\n<option>-- ".$GLOBALS['I18N']->get('selectone').'</option>' );
$req = Sql_Query( "select id, title from ".$GLOBALS["tables"]["template"]." order by listorder" );
while ($row = Sql_Fetch_Array($req)) {
echo( sprintf('<option>%s</option>',$row["id"], $row["id"]==$p_selected_id?'SELECTED':'', $row["title"] ));
}// while
echo ('</select> (not enabled yet)');
} // pbts_writeTemplateSelect
[pbts_if condition="defined" name="rel1img"]
[PBTS_XTRA name="rel1mg" type="text" displayname="Release1img" required="no" size="60" rows="1" cols="60" paragraph="never" description="Full Image URL " style=""]
[/pbts_if]
[pbts_if condition="defined" name="rel1img"]
<img src=[PBTS_XTRA name="rel1mg" type="text" displayname="Release1img" required="no" size="60" rows="1" cols="60" paragraph="never" description="Full Image URL " style=""]">
[/pbts_if]
r e l 1 i m g
r e l 1 m g
[pbts_if condition="defined" name="rel1img"]
[PBTS_XTRA name="rel1img" type="text" displayname="Release1img" required="no" size="60" rows="1" cols="60" paragraph="never" description="Full Image URL " style=""]
[/pbts_if]
Text line 1
>
Text line 2
>
Text line3
Return to Contributions: Plug-ins, Add-ons, Mods
Users browsing this forum: No registered users and 1 guest