Hallo,
ich nutze die Lazyest Gallerie und möchte oberhalb der Navigation einen Werbebanner einbinden. Die Funktion im Quellcode habe ich gefunden. Füge ich nun an die richtige Stelle folgendes PHP mit dem enthaltenen Amazon-Widget-Code ein:
PHP
$banner = printf('
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_e73b5c74-74eb-44ed-ac84-2cfe6621b627" WIDTH="468px" HEIGHT="60px">
<PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fhttpwwwjongow-20%2F8009%2Fe73b5c74-74eb-44ed-ac84-2cfe6621b627&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF">
<PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/********&Operation=GetDisplayTemplate" id="Player_e73b5c74-74eb-44ed-ac84-2cfe6621b627" quality="high" bgcolor="#ffffff" name="Player_e73b5c74-74eb-44ed-ac84-2cfe6621b627" allowscriptaccess="always" type="application/x-shockwave-flash" align="middle" height="60px" width="468px"></embed></OBJECT> <NOSCRIPT>
<A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPla********Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT>');*/
erhalte ich die Fehlermeldung:
ZitatWarning[COLOR=#292929][FONT=Arial]: printf() [[/FONT][/COLOR]function.printf[COLOR=#292929][FONT=Arial]]: Too few arguments in [/FONT][/COLOR]/*****/wp-content/plugins/lazyest-gallery/inc/frontend.php[COLOR=#292929][FONT=Arial] on line [/FONT][/COLOR]870
Sobald mehr als ein <>-Tag im printf vorkommt, kommt diese Fehlermeldung. Wie kann ich aber sonst diesen langen Code mit PHP integrieren?