Module "pingationMod" - provides timely notification ping services on the changes on your site. Services for the ping - a service that informs search engines that your site appeared the next publication. As a result, the search engine spiders quickly learn that you have written a new article and visiting the site to its index.
Features of the module:
Hand-sending notifications ping services from admin panel (for Ajax)
-Automatically sends notifications ping services after the publication of news
-Sending notification ping services after news editing
Hand-sending XML sitemap to search engines, such as: Ask.com, Bing, Google and Yahoo from the admin panel (for Ajax)
-Quick navigation to all sections of the module
-Introduction log events
List of changes in version 1.4:
-Added output errors on screen, if the XML site maps do not exist
-Ability to send a site map in Yahoo (for this you need the App ID in the module settings)
-Fixed all known bugs
INSTALL
Installation of the module for DataLife Engine 8.2
========================================
1. Copy all files from the upload folder to the root folder
2. Open the file engine/inc/options.php
find:
array (
'name' => $lang['opt_rules'],
'url' => "$PHP_SELF?mod=static&action=doedit&page=rules",
'descr' => $lang['opt_rulesc'],
'image' => "rules.png",
'access' => $user_group[$member_id['user_group']]['admin_static']
),
'name' => $lang['opt_rules'],
'url' => "$PHP_SELF?mod=static&action=doedit&page=rules",
'descr' => $lang['opt_rulesc'],
'image' => "rules.png",
'access' => $user_group[$member_id['user_group']]['admin_static']
),
Below add:
array (
'name' => "pingationMod",
'url' => "$PHP_SELF?mod=ping",
'descr' => "The module provides for timely notification ping services on the changes on your site",
'image' => "ping.png",
'access' => $user_group[$member_id['user_group']]['admin_static']
),
'name' => "pingationMod",
'url' => "$PHP_SELF?mod=ping",
'descr' => "The module provides for timely notification ping services on the changes on your site",
'image' => "ping.png",
'access' => $user_group[$member_id['user_group']]['admin_static']
),
3. Open file engine/inc/addnews.php
Find:
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] );
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] );
replace with:
   Â
include ENGINE_DIR . '/data/ping.php';
if (isset( $_POST['approve'])Â Â AND $newsdate < $added_time AND $ping['allow_post'] == "1"){
include ENGINE_DIR . '/inc/ping/pingpost.php';
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] . "<br /><font color=green>Ping services were successfully notified about changes on your site</font>" );
}
else
{
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] );Â Â Â Â
}
include ENGINE_DIR . '/data/ping.php';
if (isset( $_POST['approve'])Â Â AND $newsdate < $added_time AND $ping['allow_post'] == "1"){
include ENGINE_DIR . '/inc/ping/pingpost.php';
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] . "<br /><font color=green>Ping services were successfully notified about changes on your site</font>" );
}
else
{
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] );Â Â Â Â
}
4. Open file engine/inc/editnews.php and find:
<td><input type="checkbox" name="approve" value="1" {$ifapp}> {$lang['addnews_mod']}
replace to:
<td><input type="checkbox" name="approve" value="1" {$ifapp}> {$lang['addnews_mod']}<br />
<input type="checkbox" name="ping" value="1"> Send notification of ping services
<input type="checkbox" name="ping" value="1"> Send notification of ping services
Next find:
if( $no_permission ) {
msg( "error", $lang['addnews_error'], $lang['edit_denied'], $_SESSION['admin_referrer'] );
} elseif( $okdeleted ) {
msg( "info", $lang['edit_delok'], $lang['edit_delok_1'], $_SESSION['admin_referrer'] );
} elseif( $okchanges ) {
msg( "error", $lang['addnews_error'], $lang['edit_denied'], $_SESSION['admin_referrer'] );
} elseif( $okdeleted ) {
msg( "info", $lang['edit_delok'], $lang['edit_delok_1'], $_SESSION['admin_referrer'] );
} elseif( $okchanges ) {
below add
   Â
if(isset( $_POST['ping']) AND isset( $_POST['approve']) AND $newsdate < $added_time){
require('ping/editpost.php');
msg( "info", $lang['edit_alleok'], $lang['edit_alleok_1']."<br /><font color=green>Ping services were successfully notified about changes on your site</font>", $_SESSION['admin_referrer'] );
}else{
msg( "info", $lang['edit_alleok'], $lang['edit_alleok_1'], $_SESSION['admin_referrer'] );
}
if(isset( $_POST['ping']) AND isset( $_POST['approve']) AND $newsdate < $added_time){
require('ping/editpost.php');
msg( "info", $lang['edit_alleok'], $lang['edit_alleok_1']."<br /><font color=green>Ping services were successfully notified about changes on your site</font>", $_SESSION['admin_referrer'] );
}else{
msg( "info", $lang['edit_alleok'], $lang['edit_alleok_1'], $_SESSION['admin_referrer'] );
}
5. At the files:
engine/data/ping.php
engine/data/text.txt
engine/data/logs.txt
engine/data/text.txt
engine/data/logs.txt
Put the right to write (CHMOD 777)
6. Put license like in below image and press Check license key. Next press Save module settings
----------------------------------------------
Update
Update module version 1.2 and 1.3 to version 1.4
==================================================
1. Copy all files from the upload folder to the root folder, replacing the old files with new
2. Open file engine/inc/addnews.php
Find the line between
and replace them with
   Â
include ENGINE_DIR . '/data/ping.php';
if (isset( $_POST['approve'])Â Â AND $newsdate < $added_time AND $ping['allow_post'] == "1"){
include ENGINE_DIR . '/inc/ping/pingpost.php';
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] . "<br /><font color=green>Ping services were successfully notified about changes on your site</font>" );
}
else
{
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] );Â Â Â Â
}
include ENGINE_DIR . '/data/ping.php';
if (isset( $_POST['approve'])Â Â AND $newsdate < $added_time AND $ping['allow_post'] == "1"){
include ENGINE_DIR . '/inc/ping/pingpost.php';
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] . "<br /><font color=green>Ping services were successfully notified about changes on your site</font>" );
}
else
{
clear_cache();
msg( "info", $lang['addnews_ok'], $lang['addnews_ok_1'] . " \"" . stripslashes( stripslashes( $title ) ) . "\" " . $lang['addnews_ok_2'] );Â Â Â Â
}
Download
You must register before you can view this text.




Updates
Dle templates English


