PDA

View Full Version : Remove clicks stats.


jdiofu
11-11-2006, 04:06 AM
Could someone please help me to remove clicks stats from directory?

Thanks

WTM
11-11-2006, 06:17 AM
On which pages?

jdiofu
11-11-2006, 04:59 PM
Hi WTM,

main categories, and subcategories. I also wanted to remove Pagerank and Link Details as well.

(Clicks: 267; Pagerank: 5; Link added: Apr 25, 2006) :: Link Details

Thanks a lot.

Dave Baker
11-11-2006, 05:29 PM
Hello jdiofu,
***Open teplates/yourTemplate/footer.tpl and find code like this***

<div class="statistics">
<div class="box">
<div class="box-caption-right">
<div class="box-caption-left">
<div class="box-caption">{$lang.statistics}</div>
</div>
</div>
<div class="statistics-content">
<table cellpadding="2" cellspacing="2">
<tr>
<td>{$lang.total_num_links}</td>
<td>{$num_links}</td>
</tr>
<tr>
<td>{$lang.total_num_categories}</td>
<td>{if $num_categories}{$num_categories}{else}0{/if}</td>
</tr>
</table>
</div>
<div class="box-footer-right">
<div class="box-footer-left">
<div class="box-footer"></div>
</div>
</div>
</div>
</div>


***Remove or comment it(<!-- ....... -->)***

jdiofu
11-11-2006, 07:16 PM
Thanks Dave,

I guess you've misunderstood of my question. I don't want to remove the Statistics box that located under categories. I want to remove the numbers of link clicks, page rank and link detals.

Dave Baker
11-11-2006, 07:30 PM
:wallbash: Yes, it sometimes happens with me. I'm sorry.
***Open yourTemplate/link-display.tpl and find code***

({$lang.clicks}: {$link.clicks};
{if $config.link_comments}
{$lang.comments}: {$link.comments};
{/if}

{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::

{if $config.mod_rewrite}
{if 'search' eq $tab}
{assign var="link_title" value=$link.title2}
{else}
{assign var="link_title" value=$link.title}
{/if}
<a href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html">{$lang.link_details}</a>
{else}
<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}">{$lang.link_details}</a>
{/if}


***Remove or comment it***

Admin Panel » Configuration » Link Details page » Google PageRank display » disabled

:)

jdiofu
11-12-2006, 06:04 AM
you bet Dave, thanks so much ;-]

Dave Baker
11-13-2006, 03:42 PM
You're welcome! :)

kamy81
03-22-2007, 07:28 PM
Thanks! I was looking for this type of modification and I found it here.
I have applied it to remove (Clicks: ; Pagerank: ; Link added: :: Link Details : Broken link ) and its working . :dance2:

I need to do something more to change for eSyndiCat 2.1.02 as bellow:
* Title will link to link details page with same window.
* In (link-display) Page description will show only 150 characters after that show 3 dot like …
* Left side of the title - here will show small(fit with link) Thumb shots Preview display by Thumbshots.org and it will link to details page with same window
* Hot to remove statistics section from all page

Looking for help :poisk:
I have also attached screenshot Please see.

Tilek E.
03-23-2007, 03:17 PM
Hi kamy81,

Title will link to link details page with same window.
#1. Open link-display.tpl file and find the following code:
<a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{$link.title| escape:"html"}{/if}</a>

#2. Replace it with:
<a href="{$config.base}{$config.dir}{$link.path}{convert_st r string=$link.title}-l{$link.id}.html" class="title" id="l{$link.id}">{if $config.html_tags}{$link.title}{else}{$link.title| escape:"html"}{/if}</a>
_____________________________

In (link-display) Page description will show only 150 characters after that show 3 dot like …
#1. Open link-display.tpl file and find the following code:
<div class="description">{if $config.html_tags}{$link.description}{else}{$link. description|escape:"html"}{/if}</div>
#2. Replace it with:
<div class="description">{if $config.html_tags}{$link.description|truncate:150:"...":true}{else}{$link.description|escape:"html"|truncate:150:"...":true}{/if}</div>

_____________________________

* Hot to remove statistics section from all page
#1. Open index.tpl file. Find and remove the following code:
<!-- statistics box start -->
{include file="box-header.tpl" caption=$lang.statistics style="green"}
<table cellpadding="2" cellspacing="2">
<tr>
<td>{$lang.total_num_links}</td>
<td>{$num_links}</td>
</tr>
<tr>
<td>{$lang.total_num_categories}</td>
<td>{if $num_categories}{$num_categories}{else}0{/if}</td>
</tr>
</table>
{include file="box-footer.tpl"}
<!-- statistics box end -->


That's it. Please feel free to ask.

kamy81
03-23-2007, 04:44 PM
Excellent David Evans :applause:

Its working . You are Brilliant :good:

There is one modification is missing, Is it possible ?
* Left side of the title In (link-display) Page - here will show small(fit with link) Thumb shots Preview display by Thumbshots.org and it will link to details page with same window as attachment screenshot

kamy81
03-23-2007, 06:10 PM
OPS! :wallbash: Sorry to not informed you that you modified for me to show new link only on homepage here: http://www.esyndicat.com/forum/about7256-4.html --And it was working .


After the new modification for: Title will link to link details page with same window.

#1. Open link-display.tpl file and find the following code:
Code:
<a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{$link.title| escape:"html"}{/if}</a>

#2. Replace it with:
Code:
<a href="{$config.base}{$config.dir}{$link.path}{convert_st r string=$link.title}-l{$link.id}.html" class="title" id="l{$link.id}">{if $config.html_tags}{$link.title}{else}{$link.title| escape:"html"}{/if}</a>

After doing that when I click on any new link from home page, It show error "Error: Requested URL not found (404)" it miss / as:
domain.com/Business/EmploymentSouth-Business-Employment-Corporation-l1.html