Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I am using StatCounter via php for several of my "PAGES." I have one counter for the HOME page, identified by
if (G_STYLE == 'CE4-PAGES-HOME') {
one for my GALLERIES page
elseif (G_STYLE == 'CE4-PAGES-GALLERIES') {
and one for my CLUBS page (a main navigation menu item)
elseif (G_PATH == 'CLUBS') {
My site is photographs-now.com.
What I would like to do is add another StatCounter instance to a particular Gallery (route-66). How do I identify that page so that I can add another elseif clause to the php code? The path to the gallery is /public_html/photo-now/galleries/003-route-66.
Thanks!
Offline
I think you should be able to use G_PATH
or G_SLUG
http://ce4.theturninggate.net/docs/doku … _functions
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks! G_SLUG appears to be working. For those using StatCounter code, they seem to have changed the downloadable code eliminating the "\" escape code for embedded single quotes. This caused a fatal error according to the php code testers. Upon editing in Notepad++, I compared the earlier code downloads with the latest one and noted the missing "\" characters. I added them into the code and all is well. The counter is counting.
Offline
Pages: 1