Search

A new Extension, “New Visiter” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.

Display a different message for new visitors. Message and threshold can be defined in the preferences for convenience. I don't have WordPress, but I think it works just like What Would Seth Godin Do.

Example 1

<xsl:if test="//new-visiter/@visits &lt; //new-visiter/@threshold">
    <p><xsl:value-of select="//new-visiter/message" /></p>
</xsl:if>

Example 2

<xsl:if test="//new-visiter/@visits &lt; '5'">
    <p>Hi noob!</p>
</xsl:if>

Real World

In use on my blog and blog entry pages.

Instructions

Download and install. Attach the event to the pages on which you want to track user visits.

Attachments

Neat! :-)

How does this work? Does it log visitor in the database, track IPs or does it use a cookie? Just curious. I'd look at the code, but I'm a PHP n00b.

Does it log visitor in the database, track IPs or does it use a cookie?

It sets a cookie on the user's computer. Visits are not unique, so the visit count is increased on each page load (from the pages with the event attached).

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details