Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-07-15 16:49:28

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 169
Website

Re: dzd_counter_view: article view counter

That was almost too easy. Thanks.


Mark

Offline

#17 2008-12-07 07:59:38

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

Hi pinky

you must use force=“1” that will put a “0” in the custom field countxx

Cheers

Offline

#18 2008-12-07 11:47:23

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

What happen exactly when you load the article? is there any error message or it s only not doing anything? wich version of txp are you using?

I tested it under txp 4.0.7 right now and it works here is the default template used:

bq.<txp:if_individual_article>
<h1 class=“entry-title”><txp:permlink><txp:title /></txp:permlink></h1>
<txp:dzd_counter_view force=“1” />
<txp:else />
<h3 class=“entry-title”><txp:permlink><txp:title /></txp:permlink></h3>
</txp:if_individual_article>
<p class=“published”><txp:posted /></p>
<div class=“entry-content”>
<txp:body />
<p>Vue :<txp:custom_field name=“countxx” /><br /></p>
</div>
<address class=“vcard author”>— <span class=“fn”><txp:author /></span></address>
<p class=“tags”><txp:category1 title=“1” link=“1” />, <txp:category2 title=“1” link=“1” /></p>
<txp:comments_invite wraptag=“p” />
<div class=“divider”><img src=”<txp:site_url />images/1.gif” width=“400” height=“1” alt=”—-” title=”“ /></div>

NB: The first time you use it it display nothing but if you see the article tab you can see that the countxx field is set to zero.

Cheers

Offline

#19 2008-12-10 08:05:45

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

Hello pinky

something is wrong, but can’t see what?

Like i said before, i tested the plugin under txp 4.0.7 and it works!
The code i use is only adding the tag to default article form!

If you want create an account for me on you site that i can see what is wrong! send me an email at: mesrabah-dz at yahoo.fr

Cheers

Offline

#20 2008-12-10 13:49:45

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

There is no problem on your site except a duplicate txp:article on archive page, the counter is working, you have only to switsh from individual article and list article to see the counter growing (due i think to a caching browser).

Cheers

Offline

#21 2009-03-21 23:36:35

Agogo
Member
From: Sthlm, Sweden
Registered: 2008-11-27
Posts: 31

Re: dzd_counter_view: article view counter

Is it possible with this plugin to display a list of most accessed articles?

I just wanted to make an update about making a list with most accessed articles. If you use this plugin (or any other plugin that uses a custom field as a counter) then making a list with extensive attributes is easy with chh_article_custom. I use this tag for my list:

<txp:chh_article_custom sortby="(custom_7+0)" time="-2 months" listform="list" limit="5" section="mysection" />

Here the sortby uses custom column seven, the time span only shows articles published the last two months, it uses a form called “list”, only shows five articles and exclusively lists articles in the “mysection” section.

Viola!

Offline

#22 2009-09-22 15:17:58

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

A new version is released: Download version 0.3: here adding a custom_field tag that allow to choose wich custom_field the counter use.

Cheers

Offline

#23 2009-09-22 20:27:11

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: dzd_counter_view: article view counter

Thanks, Dragondz!

Please have a look at the file, I just get a blank sheet.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#24 2009-09-23 08:05:26

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

Hum, I have problem with my blog, using file upload work, but the download gives me a blank file, but using ftp I see the file correctly on the server!!

I have a 4.0.6 version of txp but that something queer!!

I updated to 4.2.0, but nothing change, I think it’s a htacess problem, cause when i point directly to the file i get it correclty!

It s not an htaccess issue! it s a plugin aks_header that make the problem, when i desactivate it all goes well!

The link is working now.

Last edited by Dragondz (2009-09-23 09:15:41)

Offline

#25 2018-04-21 09:11:45

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: dzd_counter_view: article view counter

Version 0.4 released, thanks goes to Jakob that improved the plugin to work with textpattern 4.6 and above.

Look at first post for download link.

Offline

Board footer

Powered by FluxBB