特定カテゴリのアイテム詳細にメールフォームを(その3)
[挿入するテキストに、当該アイテムのタイトル/記事作成者などを入れられるか?]echoさせる分を<%title%>と書いてみた。*1だめ・・・。ふぅ。やっぱりphpincludeはnucleusではparseされない。*2途方に暮れて、フォーラムにhelpを書き込んだ後、ググってググってググりまくることにする。あ、めっけ。*3NP_IncludeEXhttp://nucleus.datoka.jp/index.php?itemid=198
ということで、当該スキンのコメント前に、
<?php<%IncludeEX(php+parsed,/home/xxxx/public_html/nucleus/wsmail.php)%>?>
と挿入した。この時点でのwsmail.phpの内容
<?phpglobal $catid; if($catid == 16) {?><a name="atdform"><h2>「<%itemtitle%>」参加申込メールフォーム</h2></a><?php }?>
また、テンプレートのアイテム本文の最下部に
<?php<%phpinclude(/home/xxxx/public_html/nucleus/wsmail_tml.php)%>?>
と入れた。wsmail_tml.phpの内容
<?phpglobal $catid; if($catid == 16) {?>※<font color=red>講習会参加申込メールフォーム</font>は<a href="#atdform">こちら<a>です。<?php }?>
0コメント