• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 count visits in custom pages

masterchief

Well-known member
#1
When you crate a page node, there is option to turn on 'log and count visits to this page'. Is there a template to include this feature when making custom pages?

regards
 

Brogan

XenForo moderator
Staff member
#2
What kind of custom page?

If it's external to XenForo then you will need to write some custom code to do that.
 

masterchief

Well-known member
#3
What kind of custom page?

If it's external to XenForo then you will need to write some custom code to do that.
I am using templates to create the page, looking for XF resource to add couting and logging of visits.
Code:
<xen:sidebar>
    <xen:include template="sidebar_online_users" />
    <xen:include template="forum_stats" />
</xen:sidebar>
<xen:include template="share_page" />
 

Jeremy

Well-known member
#6
The code is more complex than a function call and requires custom development. Something I cannot do from a phone. There is no "resource" to do what he wants.
 

masterchief

Well-known member
#7
XenForo is full of undocumented resources.. we have autoresponses in conversations directing the conversation to external websites, websites using XenForo integration to validate users as current members of this website. I like it, dont get me wrong.. just want to be made avail to the info like everybody else.
 

Chris D

XenForo developer
Staff member
#8
It doesn't really require documentation.

On page load it increases a value in the database by 1 for each visit. There's nothing special about it.

What is this?

"we have autoresponses in conversations"
 

Jeremy

Well-known member
#11
That isn't a feature of XenForo and is custom development Waindigo did on his server to login as himself programmatically and poll his conversations for new ones, respond, and duplicate them on his site. This feature does not exist in XenForo.
 

Chris D

XenForo developer
Staff member
#13
It's possible to authenticate anything that is web-based. If you understand how the system works, you can easily code a bot that can send GET and POST requests to various URLs. This isn't exclusive to XenForo. Any web based service can be manipulated in the same way.
 

masterchief

Well-known member
#14
It's possible to authenticate anything that is web-based. If you understand how the system works, you can easily code a bot that can send GET and POST requests to various URLs. This isn't exclusive to XenForo. Any web based service can be manipulated in the same way.
I am aware... my site is constantly under attack... I guess I am just naive.