Verfasst: 24.03.2008 01:35
muss der Link enthalten...target="_blank"
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
muss der Link enthalten...target="_blank"
Code: Alles auswählen
<a href="http://web.de">Outlook Heute</a>
Code: Alles auswählen
<a href="http://web.de" target="_blank">Outlook Heute</a>
Und diese Codezeile öffnet halt im gleichen Fenster - deshalb meine Nachfrage.adclick.php hat geschrieben: header("Location: {$row['url']}");
Code: Alles auswählen
<a href="./adclick.php?id=1"><img src="http://www.naturheilpraxis-terlinden.de/pictures/banner-terlinden.jpg" height="60" width="468" alt="" /></a>
Da hängt der Harken...$adcode[$row['position']] = '<a href="' . $phpbb_root_path . 'adclick.' . $phpEx . '?id=' . $row['ad_id'] . '"><img src="' . $row['image'] . '" height="' . $row['height'] . '" width="' . $row['width'] . '" alt="" /></a>';
Ich verweise aber nochmal auf mein Problem:$adcode[$row['position']] = '<a href="' . $phpbb_root_path . 'adclick.' . $phpEx . '?id=' . $row['ad_id'] . 'target="_blank" "><img src="' . $row['image'] . '" height="' . $row['height'] . '" width="' . $row['width'] . '" alt="" /></a>';
Hi,[BTK] Tobi hat geschrieben:Hallo sts,
Was verstehst du unter PHP Ads? Wie sehen die Dinger aus?
Die Idee noch ein paar Optionen für den Link bei den Banner Ads einzubauen ist gut, das werde ich wahrscheinlich mit der nächsten Version machen.
Code: Alles auswählen
<?php
/* <!-- Openads XML-RPC Tag v2.4.4 -->
*
* As the PHP script below tries to set cookies, it must be called
* before any output is sent to the user's browser. Once the script
* has finished running, the HTML code needed to display the ad is
* stored in the $adArray array (so that multiple ads can be obtained
* by using mulitple tags). Once all ads have been obtained, and all
* cookies set, then you can send output to the user's browser, and
* print out the contents of $adArray where appropriate.
*
* Example code for printing from $adArray is at the end of the tag -
* you will need to remove this before using the tag in production.
* Remember to ensure that the PEAR::XML-RPC package is installed
* and available to this script, and to copy over the
* lib/xmlrpc/php/openads-xmlrpc.inc.php library file. You may need to
* alter the 'include_path' value immediately below.
*/
//ini_set('include_path', '.:/usr/local/lib');
require 'openads-xmlrpc.inc.php';
if (!isset($OA_context)) $OA_context = array();
$oaXmlRpc = new OA_XmlRpc('demo.openx.org', '/delivery/axmlrpc.php', 0, false, 15);
$adArray = $oaXmlRpc->view('zone:14', 0, '', '', 0, $OA_context);
echo $adArray['html'];
?>
Code: Alles auswählen
$adcode[$row['position']] = '<a href="' . $phpbb_root_path . 'adclick.' . $phpEx . '?id=' . $row['ad_id'] . 'onclick="window.open(this.href); return false;" "><img src="' . $row['image'] . '" height="' . $row['height'] . '" width="' . $row['width'] . '" alt="" /></a>';
Code: Alles auswählen
<a href="http://web.de" onclick="window.open(this.href); return false;">Outlook Heute</a>
Stimmt, aber meiner Erfahrung nach mag Goog. lieber ein nicht validen Quelltext als Javasc.4seven hat geschrieben:Hallo sts,
wenn es xhtml 1.0 strict sein soll, darf es auch so aussehen![]()
Code: Alles auswählen
$adcode[$row['position']] = '<a href="' . $phpbb_root_path . 'adclick.' . $phpEx . '?id=' . $row['ad_id'] . 'onclick="window.open(this.href); return false;" "><img src="' . $row['image'] . '" height="' . $row['height'] . '" width="' . $row['width'] . '" alt="" /></a>';
lgCode: Alles auswählen
<a href="http://web.de" onclick="window.open(this.href); return false;">Outlook Heute</a>
4seven