Not signed in (Sign In)

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

    • CommentAuthorpandianbe
    • CommentTimeJun 16th 2008
     
    i Need to display the dynamic title on my collection Page,Albums Page,Picture Page.Please help me the part of Code.
    How can i get keywords,descriptions from collection or Albums or Picture.

    Thanks in Advance :-)
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 16th 2008
     
    • CommentAuthorpandianbe
    • CommentTimeJun 17th 2008
     
    HI Sidthe duck,

    Thanks for your answer.

    i am not asking the option cut free URL.i am going to Put the Adsense Progrm in my every Pages for that am asking you to get the keyword and description option.i need to put the and in my every dynamic pages to generate the correct ads.

    i am expecting some good replies... with code part....
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 17th 2008
     
    pandianbe,

    That link was for a dynamic <title> tag (to show in the head of your browser window). I thought that was the first question you were asking in your first post.

    Regarding the keyword and description, how do you tell AdSense where to look for the keyword and description (I've never actually used AdSense before). And what did you want for your keyword? The caption? I can help you to output the caption and description, but if you could post the code (if any) that you would need to insert those into, I can provide you the code that gets you the options and outputs them in the correct location.
    • CommentAuthorthebluebus
    • CommentTimeJun 17th 2008
     
    sid, you can use this to tell adsense where to look for content. It kind of half works in my opinion

    <!-- google_ad_section_start -->

    <!-- google_ad_section_end -->
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 17th 2008
     
    Okay, so basically you would have to add code similar to this:

    For collections - Open 'collection.php' in the theme folder that you are using and add the following code somewhere:<?php $collection_info = get_collection_by_id($GLOBALS['plogger_id']); ?>
    <!-- google_ad_section_start -->
    <div id="collection_name"><?php echo $collection_info['name']; ?></div>
    <div id="collection_description"><?php echo $collection_info['description']; ?></div>
    <!-- google_ad_section_end -->


    For albums - Open 'album.php' in the theme folder that you are using and add the following code somewhere:<?php $album_info = get_album_by_id($GLOBALS['plogger_id']); ?>
    <!-- google_ad_section_start -->
    <div id="album_name"><?php echo $album_info['album_name']; ?></div>
    <div id="album_description"><?php echo $album_info['description']; ?></div>
    <!-- google_ad_section_end -->


    For pictures - Open 'picture.php' in the theme folder that you are using and add the following code somewhere outside of the picture loop (before or after the if (while(plogger_has_pictures()){ code):<?php $picture_info = get_picture_by_id($GLOBALS['plogger_id']); ?>
    <!-- google_ad_section_start -->
    <div id="picture_name"><?php echo basename($picture_info['path']); ?></div>
    <div id="picture_caption"><?php echo $picture_info['caption']; ?></div>
    <div id="picture_description"><?php echo $picture_info['description']; ?></div>
    <!-- google_ad_section_end -->


    That should do it for the main pages (not "Search", "Slideshow", or the main "Collections" pages though).
    • CommentAuthorpandianbe
    • CommentTimeJun 17th 2008
     
    Hi sidtheduck,

    Thanks for your reply.

    Basically adsense looks keywords,description and some HTML tags to get related ads with the page.

    I need to add the add the HTML Meta tags dynamically.This is not for adsense itself SEO too.

    i hope you clear my point.

    Expect good reply as usual with code part.

    Thanks boss. :-)

    Hi thebluebus,

    Thanks for reply

    This is the comment as you know just to say the developer to find and identify the adsense script.

    Here i am asking you to get well developed SEO compatible dynamic pages related to Picture and album.

    Thanks in advance :-)
    • CommentAuthorpandianbe
    • CommentTimeJun 20th 2008
     



    i need to get this Tags in Each generated collection,album,picture pages realated to its content )it may be Picture or album or collection)

    Using the Meta tags Google crawl our pages.

    Please help me?

    Thanks in Advance :-)
    •  
      CommentAuthorsidtheduck
    • CommentTimeJun 24th 2008
     
    Try this, pandianbe,

    Open 'head.php' in the theme you are using and add the following code to the end of the file:<?php
    switch($GLOBALS['plogger_level']){
    case "collection":
    $collection_info = get_collection_by_id($GLOBALS['plogger_id']);
    $keyword = str_replace(" ", ",", $collection_info['name']);
    $description = $collection_info['description'];
    break;
    case "album":
    $album_info = get_album_by_id($GLOBALS['plogger_id']);
    $keyword = $keyword = str_replace(" ", ",", $album_info['name']);
    $description = $album_info['description'];
    break;
    case "picture":
    $picture_info = get_picture_by_id($GLOBALS['plogger_id']);
    if (!empty($picture_info['caption'])){
    $keyword = $keyword = str_replace(" ", ",", $picture_info['caption']);
    } else {
    $keyword = $keyword = str_replace(" ", ",", basename($picture_info['path']));
    }
    $description = $picture_info['description'];
    break;
    case "search":
    $keyword = isset($_GET['searchterms']) ? str_replace(" ", ",", $_GET['searchterms']) : '';
    $description = "Searching my Plogger gallery";
    break;
    default:
    $keyword = "generic,keywords,here";
    $description = "This is my Plogger gallery";
    break;
    }
    ?>
    <meta name="keywords" content="<?php echo $keyword;?>">
    <meta name="description" content="<?php echo $description;?>">
    Thankful People: carminejg3