Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorPieperLy
    • CommentTimeSep 7th 2007
     
    hello,

    i want add ebay relevance ads 2.0 in gallery.php, but dosn't work. now i have google adsense on gallery.php and working fine.

    here is the code with adsense:


    .......

    else{
    if ($level == "picture" && $config["allow_print"]) {
    $output .= '
    <a class="print" href="' . $config["baseurl"] . 'plog-print.php?id='.$id.'">Großes Vorschau Bild drucken</a>';
    }
    }
    $output .= '
    </td>
    </tr>
    <tr>
    <td colspan="2" class="maintext" style="background-color: #FFFFCC">
    <p>

    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxxx";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text";
    google_ad_channel ="";
    google_color_border = "ffffcc";
    google_color_bg = "FFFFcc";
    google_color_link = "0099FF";
    google_color_text = "666666";
    google_color_url = "666666";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </p>
    </td>
    </tr>
    </table>
    </div>';

    if ($level == "picture"){
    // first lets load the thumbnail of the picture at the correct size
    $sql = "SELECT *, UNIX_TIMESTAMP(`date_submitted`) AS `unix_date_submitted`, UNIX_TIMESTAMP(`EXIF_date_taken`) AS `unix_exif_date_taken` FROM `".$TABLE_PREFIX."pictures` WHERE id = $id";
    $result = run_query($sql);
    $row = mysql_fetch_assoc($result);
    // generate a list of all image id-s so proper prev/next links can be created. This should be a
    // fast query, even for big albums.
    $image_list = array();
    $sql = "SELECT id FROM `".$TABLE_PREFIX."pictures` WHERE parent_album = ".$row["parent_album"];

    ......................................................................


    you can see it here: http://www.oldskoolman.de/index.php


    ......................................................................

    now i want relevance ads instead adsense.
    here is the relevance ad code:

    <!-- eBay RelevanceAd -->
    <script language='JavaScript' type='text/javascript'>
    //<-- DO NOT CHANGE -->
    // <!--<[CDATA[
    era_width = '728';
    era_height = '90';
    era_layout = 'img';
    era_color_title = '000000';
    era_publisher='xxxxxx';
    // ]]> -->
    </script>
    <script language='JavaScript' type='text/javascript' src='http://ebayrelevancead.webmasterplan.com/js/show_ads.js'></script>
    <!-- /eBay RelevanceAd -->


    how can i include the relevance ad code correkt in my site?

    sorry for my bad english ;-)

    reagards from germany
    Piep
  1.  
    you don't want to add them to gallery.php...

    you probably want to add them to header.php for the theme you're using.

    right now it looks like you're overlapping the breadcrumbs which you probably don't want to do...

    if you edit header.php you can add another row to the table and insert your code as a new row between the Gallery Title and the breadcrumbs links....
    • CommentAuthorPieperLy
    • CommentTimeSep 7th 2007
     
    hello,

    i dont using a theme, its html with include gallery.php

    on html-site:


    <td class="maintext" >

    <?php the_gallery(); ?>
    </td>

    i want relevance ad direct over the images, so the users can better see the ads.

    thanks for your help
    Piep
  2.  
    yes you are using a theme... if you're using plogger beta 3...

    it should be something like www.yoursite.com/plogger/themes/default/header.php

    that would be the file you would want to add your code to
    • CommentAuthorPieperLy
    • CommentTimeSep 7th 2007
     
    no, isnt beta 3, this is an older ploggerversion...2.4 or so

    Piep
    • CommentAuthordime
    • CommentTimeSep 7th 2007
     
    Why you don't create separate file called, for example, ebay.php and put just this code in it and then include it on place where you are putting relevance code now?
    • CommentAuthorPieperLy
    • CommentTimeSep 7th 2007
     
    what is the different? the problem is, javascript in php. sytax for javascript is different to syntax for php. when i use the original relevance ad syntax for javascript, crashes the gallery.php, when i delete ' " dont work the javascript.

    my knowhow in javascript and php is verry small. i have seen diverse adaptions for cms ( drupal ) and i try adjust for my site, but this dont work.

    oh, oh,... i hope, you understand my german-english
    • CommentAuthordime
    • CommentTimeSep 7th 2007
     
    Well, I thought that maybe problem is when js is in gallery.php, so if you put it in another file there will be no problem. I use Plogger 3 and with that way I put OpenAds code (also js).

    By checking again you eBay code, I see that there is used ' while in AdSense there is " . Maybe this is problem, if you use some visual text editor enter whole code and see if it breaks with current eBay code (since in php, code in html you enter starts with ' and ends with ', for example:

    $output .= '
    <a class="print" href="' . $config["baseurl"] . 'plog-print.php?id='.$id.'">Großes Vorschau Bild drucken</a>';


    This out of ' ' (. $config["baseurl"] . or .$id.) is from php code.)
    • CommentAuthorPieperLy
    • CommentTimeSep 7th 2007
     
    i will test an ebay.php and include in gallery.php....then i post the result.

    thanks for your time
    Piep
    • CommentAuthorPieperLy
    • CommentTimeSep 8th 2007
     
    hello again,

    the problem is probably the tool himself. on mozilla its working fine, on ie6 its work only sporadically. i mailed to ebay.

    thanks to all for your help and sympathy

    regards from germany
    piep