Visitors to the website

I use Joomla a lot for my other websites for clients and there is a module to add to the website that shows how many visitors/members are viewing the page.

Is there anything like this for Backlight available? Or how I can incorporate something like this perhaps?

You would need to find or write the code and add it via phplugins
https://backlight.me/docs/using-phplugins.

I use statcounter with my wordpress sites to count visitors and have used it with some other sites. I would like to add it to my backlight 5 site. I have the html code to add, but it is supposed to be added before the closing tag on a page or template. If I understand correctly, I would add the html code to the phplugins file, something like this:

Function statcounter(){
echo ’
the statcounter html code
';
Return false;
} //END

But I am not sure if it should be associated with a particular part of the page or not.

However, I may be completely misunderstanding all this. All advice would be appreciated. TIA.

No, you need to use one of the phplugins hooks, which are listed in the phplugins-pangolin-sample.php file.

You could probably just use the scripts hook:

function scripts() {
echo '
your code
';
}
1 Like