>>  Site Map >>  Forums >>  Operation

Forum module - topics in forum:



Operation - Get help on how each part of PHP-NUKE works



enhancing meta tags for google?

how can i enhance html tags/ meta tags in my phpnuke site?
i searched google for help. it shows enhancing html tags via html editor.

Quote: :

To implement section targeting, you'll need to add a set of special HTML comment tags to your code. These tags will mark the beginning and end of whichever section(s) you'd like to emphasize or de-emphasize for ad targeting.

The HTML tags to emphasize a page section take the following format:
<!-- google_ad_section_start -->

<!-- google_ad_section_end -->


when i inserted it to my index.php, my page becomes blank.



well, on changing meta tags in meta.php; i have changed it already, but result of google ads are still the same.






The code you refer to is for HTML pages. Not for PHP-Nuke. To use google ads in phpnuke one recommendation I can give is to make a block something like the one below:
Code: :
<?php
###Sevens Google Ads Block###
if (eregi("block-Sevens_Google_Ad_Block.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<!---Begin Google Ad Code--->";
$content  .= "<script type=\"text/javascript\"><!--";
$content  .= "google_ad_client = \"pub-3552514787475421\";";
$content  .= "google_ad_width = 468;";
$content  .= "google_ad_height = 60;";
$content  .= "google_ad_format = \"468x60_as\";";
$content  .= "google_cpa_choice = \"CAEaCPE0Qicm8BvfUAU\";";
$content  .= "//-->";
$content  .= "</script>";
$content  .= "<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content  .= "</script>";
$content  .= "<!---End Google Ad Code--->";
?>


I would not use this code as is because it contains the google ad code from this site. it's only ment as a guide.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS