Plogger Support Forum - how to get Dynamic contents? Fri, 29 Mar 2024 11:36:08 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7711#Comment_7711 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7711#Comment_7711 Mon, 16 Jun 2008 08:28:34 +0000 pandianbe How can i get keywords,descriptions from collection or Albums or Picture.

Thanks in Advance :-)]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7717#Comment_7717 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7717#Comment_7717 Mon, 16 Jun 2008 14:52:44 +0000 sidtheduck http://plogger.org/forum/discussion/1827/#Item_4]]> how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7728#Comment_7728 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7728#Comment_7728 Tue, 17 Jun 2008 01:27:32 +0000 pandianbe
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....
]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7736#Comment_7736 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7736#Comment_7736 Tue, 17 Jun 2008 11:32:14 +0000 sidtheduck
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.]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7738#Comment_7738 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7738#Comment_7738 Tue, 17 Jun 2008 11:40:47 +0000 thebluebus
<!-- google_ad_section_start -->

<!-- google_ad_section_end -->]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7745#Comment_7745 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7745#Comment_7745 Tue, 17 Jun 2008 15:59:22 +0000 sidtheduck
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).]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7758#Comment_7758 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7758#Comment_7758 Tue, 17 Jun 2008 22:34:54 +0000 pandianbe
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 :-)]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7817#Comment_7817 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7817#Comment_7817 Fri, 20 Jun 2008 04:05:05 +0000 pandianbe

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 :-)]]>
how to get Dynamic contents? http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7864#Comment_7864 http://www.plogger.org/forum/comments.php?DiscussionID=1954&Focus=7864#Comment_7864 Tue, 24 Jun 2008 12:00:16 +0000 sidtheduck
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;?>">
]]>