1. YaSiteMap v2.4 utf8 ENG

YaSiteMap v2.4 utf8 ENG

  |   10
YaSiteMap v2.4 utf8 ENG
Module "Yasitemap 2.4" fix

1. Load the contents of the folder on the server uploads (Rename the template folder on your)
2. Select the right 777 on the folder engine/cache/yasitemap
3. Open the file .htaccess find :

# Redirects
RewriteRule ^page/([0-9]+)(/?)$ index.php?cstart=$1 [L]


4. After add :

# Site map articles
RewriteRule ^(.*)page1(/?)+$ /$1 [L,R=301]
RewriteRule ^yasitemap(/?)+$ index.php?do=yasitemap
RewriteRule ^yasitemap/page(.*)/ index.php?cstart=$1&do=yasitemap



5. Open the file engine/engine.php find :

case "addnews" :
    include ENGINE_DIR . '/modules/addnews.php';
    break;


6. After add:

case "yasitemap" :
    include ENGINE_DIR . '/modules/yasitemap.php';
    break;


7. Find:
elseif ($do == 'static') $titl_e = $static_descr;


8. After add :

elseif ($do == 'yasitemap') $nam_e = 'Site map ' .$config['home_title'];


9. Open the file engine/inc/main.php find:

$('#clearsubscribe').click(function() {


10. ABOVE Add:

$('#clearbuttonya').click(function() {
			
    $.get("engine/ajax/adminfunction.php?action=clearcacheya", function( data ){

		$('#cachesize_ya').html('0 b');
		Growl.info({
		 title: '{$lang[p_info]}',
		 text: data
			});

		});
	        return false;
	    });


11. Find :
$cache_size = formatsize( dirsize( "engine/cache" ) );


12 BELOW add:

$cache_size_ya = formatsize( dirsize( "engine/cache/yasitemap" ) );


13. Find:

<div class="row box-section">
    <div class="col-md-3">{$lang['cache_size']}</div>
    <div class="col-md-9"><span id="cachesize">{$cache_size}</span></div>
</div>


14. BELOW Add:

<div class="row box-section">
    <div class="col-md-3">The total size of the cache card:</div>
    <div class="col-md-9"><span id="cachesize_ya">{$cache_size_ya}</span></div>
</div>


15. find :
<button id=\"clearbutton\" name=\"clearbutton\" class=\"btn btn-red\"><i class=\"icon-trash\"></i> {$lang['btn_clearcache']}</button>


16. Replace with :

<button id=\"clearbutton\" name=\"clearbutton\" class=\"btn btn-red\"><i class=\"icon-trash\"></i> {$lang['btn_clearcache']}</button> <button id=\"clearbuttonya\" name=\"clearbuttonya\" class=\"btn btn-green\"><i class=\"icon-trash\"></i> Clear cache site map</button>


17. Open the file engine/ajax/adminfunction.php find:

if ($_REQUEST['action'] == "clearsubscribe") {


18. ABOVE Add:

if ($_REQUEST['action'] == "clearcacheya") {

	if ( $member_id['user_group'] != 1 ) die ("error");

	$fdir = opendir( ENGINE_DIR . '/cache/yasitemap/' );
	while ( $file = readdir( $fdir ) ) {
		if( $file != '.' and $file != '..' and $file != '.htaccess' and $file != 'cron.php' ) {
			@unlink( ENGINE_DIR . '/cache/yasitemap/' . $file );
		
		}
	}
	
	clear_cache();

	$buffer = "Cash card successfully cleared.";

}


19. Open the file engine/inc/addnews.php find:

clear_cache( array('news_', 'related_', 'tagscloud_', 'archives_', 'calendar_', 'topnews_', 'rss', 'stats') );


20. ABOVE Add:

$fdir = opendir( ENGINE_DIR . '/cache/yasitemap/' );
 while ( $file = readdir( $fdir ) ) {
 if( $file != '.' and $file != '..' and $file != '.htaccess' ) {
 @unlink( ENGINE_DIR . '/cache/yasitemap/' . $file );
 }
 }


21. Open the file engine/inc/editnews.php find:

clear_cache( array('news_', 'full_'.$item_db[0], 'comm_'.$item_db[0], 'tagscloud_', 'archives_', 'calendar_', 'rss', 'stats') );


22. ABOVE Add :
$fdir = opendir( ENGINE_DIR . '/cache/yasitemap/' );
 while ( $file = readdir( $fdir ) ) {
 if( $file != '.' and $file != '..' and $file != '.htaccess' ) {
 @unlink( ENGINE_DIR . '/cache/yasitemap/' . $file );
 }
 }


23. Open the file engine/modules/addnews.php find:
clear_cache( array('news_', 'related_', 'tagscloud_', 'archives_', 'calendar_', 'topnews_', 'rss') );


24. ABOVE Add:
$fdir = opendir( ENGINE_DIR . '/cache/yasitemap/' );
 while ( $file = readdir( $fdir ) ) {
 if( $file != '.' and $file != '..' and $file != '.htaccess' ) {
 @unlink( ENGINE_DIR . '/cache/yasitemap/' . $file );
 }
 }


25. Almost done!

CNC enabled module is available on the link your site/yasitemap/ and your site/index.php?do=yasitemap without CNC.

yasitemap.tpl // the template responsible for displaying news

yasitemap_nav.tpl // the template responsible for displaying the title and page design site map

yasitemap.php // withdrawal of news and you can configure the number of publications is displayed on the page

yasitemap_function.php // is responsible for generating the cache

Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+8

Comments 10

MaRZoCHi
MaRZoCHi
V.I.P.
Commented By MaRZoCHi on April 13, 2015 (5:02 am)
Nice module, thanks for sharing. I'll try soon.
N/A 14Forum topics : 0Forum replies : 1Forum likes : 1
AbdelDotPc
AbdelDotPc
Members
Commented By AbdelDotPc on April 13, 2015 (8:07 am)
good module installled
N/A 1Forum topics : 2Forum replies : 3Forum likes : 0
Admindan
Admindan
Members
Commented By Admindan on April 21, 2015 (10:23 pm)
Will this work on DLE 10.0
www.warezhive.com
N/A 7Forum topics : 1Forum replies : 2Forum likes : 0
Inphecthyuz
Commented By Inphecthyuz on April 22, 2015 (11:58 am)
Very very nice tutorial!.
l'll test it on DLE 10.3 and 10.4 and report my feedback, thanks in advance!
N/A 22Forum topics : 1Forum replies : 2Forum likes : 0

Please wait while the pixels get undressed. No peeking ;)
hanzaleh
hanzaleh
Members
Commented By hanzaleh on April 23, 2015 (3:40 am)
thanks alot
i've installed it ,workin well
N/A 11Forum topics : 0Forum replies : 0Forum likes : 0
alexcruz
alexcruz
Members
Commented By alexcruz on September 15, 2015 (7:19 am)
Is this better then integrated DLE Sitemap or its just a HTML sitemap?
N/A 2Forum topics : 1Forum replies : 1Forum likes : 0
MongKol
MongKol
Moderators
Commented By MongKol on September 15, 2015 (10:07 pm)
Quote: alexcruz
Is this better then integrated DLE Sitemap or its just a HTML sitemap?

they are totally different functions and different purposes...this sitemap is not xml for search engine sitemap, it's just module to generate the list of articles in your site for easy views, for example you can compare sometihng like this
http://www.dlestarter.com/sitemap.html (custom module for article list like this module in this module)
http://www.dlestarter.com/sitemap.xml (DLE sitemap to use for search engine like google, yandex, bing, yahoo, ask.com etc)

so they are totally different and being used for different purposes...so none of both are better than another because they are not the same and never been used for same purposes...so don't compare them
N/A 17Forum topics : 0Forum replies : 47Forum likes : 3
alexcruz
alexcruz
Members
Commented By alexcruz on September 16, 2015 (11:06 am)
Thank you for the info, appreciate.
N/A 2Forum topics : 1Forum replies : 1Forum likes : 0
Goudarz
Goudarz
Members
Commented By Goudarz on November 22, 2015 (1:50 pm)
Will this work with 10.6?
N/A 3Forum topics : 0Forum replies : 0Forum likes : 0
escgame
escgame
Members
Commented By escgame on March 22, 2016 (11:10 pm)
How to create sitemap like that:
http://www.dlestarter.com/sitemap.html
N/A 2Forum topics : 0Forum replies : 0Forum likes : 0
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.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.