If someone wants to do the same here's how I did it. I used code snippets from the tags.php file but if someone has more simplified way to do this please let me know.
Step 1
Open your templates sidebar_modules/tags.tpl-file in text editor and modify this part
Code:
{php}
include_once(mnminclude.'tags.php');
global $main_smarty;
$cloud=new TagCloud();
$cloud->smarty_variable = $main_smarty; // pass smarty to the function so we can set some variables
$cloud->word_limit = tags_words_limit_s;
$cloud->min_points = tags_min_pts_s; // the size of the smallest tag
$cloud->max_points = tags_max_pts_s; // the size of the largest tag
$cloud->show();
$main_smarty = $cloud->smarty_variable; // get the updated smarty back from the function
{/php}
Code:
{php}
include_once(mnminclude.'tags.php');
global $main_smarty;
$range_values = array(604800);
$cloud=new TagCloud();
$cloud->smarty_variable = $main_smarty; // pass smarty to the function so we can set some variables
$cloud->word_limit = tags_words_limit_s;
$cloud->range_values = $range_values;
$cloud->min_points = tags_min_pts_s; // the size of the smallest tag
$cloud->max_points = tags_max_pts_s; // the size of the largest tag
$cloud->show();
$main_smarty = $cloud->smarty_variable; // get the updated smarty back from the function
{/php}
Then save the file to yourtemplate/sidebar_modules-folder as weeklytags.tpl.
Step 2
Open your templates sidebar.tpl-file and find this line
Code:
{if $Enable_Tags eq 'true'} {assign var=sidebar_module value="tags"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} {/if}
Code:
{if $Enable_Tags eq 'true'} {assign var=sidebar_module value="weeklytags"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} {/if}




Linear Mode

