No. of Page Views

12 posts by 4 authors in: Forums > CMS Builder
Last Post: January 7, 2010   (RSS)

Is it possible to display the number of times a particular page or a listing has been viewed using CMS builder? Example: This ad has been viewed "X" times.

Re: [WEVOLUTIONS] No. of Page Views

By Chris - December 10, 2009

Hi WEVOLUTIONS,

Please see this forum post:

[url http://www.interactivetools.com/forum/gforum.cgi?post=63132;search_string=hit%20count;#63132]http://www.interactivetools.com/forum/gforum.cgi?post=63132;search_string=hit%20count;#63132[url]
All the best,
Chris

Re: [gkornbluth] No. of Page Views

Will this work for CMS Builder v1.22?

If not can I upgrade to the latest version?

And will this upgrade affect my current listings because I have over 1000 listings that cannot be interfered with.

Re: [WEVOLUTIONS] No. of Page Views

Not sure about 1.22 but if you haven't upgraded recently, there are lots of great improvements available in the newer versions. Check the change logs to see what they are and if they'll affect your current design.
http://www.interactivetools.com/upgrade/changelog.php#cmsbuilder

For peace of mind, I 'd mock up the new section editor and viewer to play with the concept before implementing it in your existing editor.

The call increments the count in a totally new text field that you create just for that purpose, so it doesn't affect existing fields or data.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] No. of Page Views

By Chris - December 18, 2009

While upgrading shouldn't break anything, it's highly recommended that you backup your files and database just in case.

Please let me know if you have any questions.
All the best,
Chris

Re: [gkornbluth] No. of Page Views

Thank you very much. Counter works great. Just as I wanted.

Re: [gkornbluth] No. of Page Views

By Codee - December 31, 2009 - edited: January 5, 2010

Question on this details page counter solution:

Can the counter be set to ONLY show to the record owner (and admin of course)...for example, in a classifieds listing site, the lister knows how many people have visited that ad but the public doesn't? Also, can one be set to show a total of all visits to all the items listed by a person?

Thanks

Re: [equinox69] No. of Page Views

I think so.

I just got the web site membership plugin and it talks about the ability to view a certain code on a page only after user login, using: <?php if (current_user): ?>
only logged in user will see this...
<? php endif ?>


I haven't played with it yet, but it seems that this, along with the user access set to author for that section only might be a direction to explore.

Best,

Happy New Year

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] No. of Page Views

Hi,

Well, this approach almost works. The call does not seem to be "author" sensitive, however I did find a workaround.

You can set up a separate (text or check box) field in the user accounts editor and assign it a value for that particular class of users. Then test with:

<?php if ($CURRENT_USER['your_field'] == "your_value"): ?>Current user will be able to see this<?php endif ?>

Only user(s) who have that value entered/selected in their user record will be able to view the protected information on the web page.

Maybe one of the IT gurus can tell us how to accomplish displaying fields to only a current user who is also the author of a record (or admin).

Til then....

Best,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php