1. Modify sitemap static pages to Google and Yandex

Modify sitemap static pages to Google and Yandex

  |   0
Modification to add static pageson sitemap to Google and Yandex for DLE 9.2


Modify  sitemap static pages to Google and Yandex


DataLife Engine capabilities allow you to create static pages of content but distributed by category and date yet, and static pages that the webmaster when a site can be used to solve numerous problems in expanding the information content and functionality to create resources in the network. But part of the created static pages does not carry the helpful information that should go in search, often in these pages is provided by a service or not unique in terms of search engines,


modification work is clear from the screenshots


Modify  sitemap static pages to Google and Yandex


The default option is to add a sitemap page is active


Modify  sitemap static pages to Google and Yandex


static page ads on the site is included in the sitemap


Module Installation

1- download attachment
Login Required!Only registered users can download files. Please register or Login

2- upload the file "install.php" to root directory

3- run install.php on your site
ex: http://your_site_name/install.php

4- open file engine/classes/google.class.php

looking for:
$result = $db->query( "SELECT name FROM " . PREFIX . "_static" );


replaced by:
Information!You must register before you can view this text. Please register or Login


5- open file engine/inc/static.php
note:there`s many codes similar in this file u must open mind ; )

search for:Add Below:looking for:
$tpl = trim( totranslit( $_POST['static_tpl'] ) );


Add Below:
Information!You must register before you can view this text. Please register or Login


looking for:
$db->query( "INSERT INTO " . PREFIX . "_static (name, descr, template, allow_br, allow_template, grouplevel, tpl, metadescr, metakeys, template_folder, date, metatitle) values ('$name', '$descr', '$template', '$allow_br', '$allow_template', '$grouplevel', '$tpl', '{$metatags['description']}', '{$metatags['keywords']}', '{$skin_name}', '{$thistime}', '{$metatags['title']}')" );


replace to:
Information!You must register before you can view this text. Please register or Login



search for:Add Below:
Information!You must register before you can view this text. Please register or Login



looking for:Add Below:looking for:
$db->query( "UPDATE " . PREFIX . "_static SET name='$name', descr='$descr', template='$template', allow_br='$allow_br', allow_template='$allow_template', grouplevel='$grouplevel', tpl='$tpl', metadescr='{$metatags['description']}', metakeys='{$metatags['keywords']}', template_folder='{$skin_name}', date='{$thistime}', metatitle='{$metatags['title']}' WHERE id='$id'" );


replace to:
Information!You must register before you can view this text. Please register or Login


Warning: Before installing, make sure to backup files when editing and database.
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+5
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.