WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 23.01.2022 22:14:07

losttrip
Member

Module Update Check - Versions

Happy New Year!

I took a look at Administration Tools » Module Update Check and I noticed:
Visitor statistics - WBstats        Local version 0.2.1.4   Server versions 0.2.2

But when I click on "Visitor statistics - WBstats"
it shows 0.2.1.4 as the latest version.  I know that the version on dev4me is 0.2.2, but I have been warned that those modules are no longer guaranteed to function well with newer versions of WBCE/WB.

My main question is, where is the Module Update Check getting the Server version 0.2.2 info from?

Also, the Help instructs:

To include the counter to your website add the following line to your template(s), somewhere in the first <?php ... ?> block;

I presume this means in the index.php file of your template?
and if so, is this a suitable location?:

<?php 
// redirect if this file is invoked directly
if (!defined('WB_URL')) {
	header('Location: ../index.php');
	exit(0);
	include (WB_PATH.'/modules/wbstats/count.php');
}
?>

Thanks!

Last edited by losttrip (23.01.2022 22:18:33)

Offline

#2 01.02.2022 13:57:52

florian
Administrator

Re: Module Update Check - Versions

I've updated the entry in the AOR.

My main question is, where is the Module Update Check getting the Server version 0.2.2 info from?

The AOR is a usual WBCE instance where all modules which are listed to download are also installed. The update check just compares the versions of that modules with the versions of the instance where it is called. So after I updated the WBCE core on the AOR the included wbstats module was updated too, but I missed to update the download page.

I presume this means in the index.php file of your template?

yes.

and if so, is this a suitable location?:

I'm not sure. That call is on top of the <html> tag.
I usually add the wbstats call to the simplepagehead call, e.g.

<?php
// no direct file access
if(count(get_included_files())==1) header("Location: ../index.php",TRUE,301);
?><!DOCTYPE HTML>
<html lang="de-de" dir="ltr">
<head>
	<?php simplepagehead(); 
	 include (WB_PATH.'/modules/wbstats/count.php');
	?>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

...and so on...

Last edited by florian (01.02.2022 13:58:08)

Offline

#3 01.02.2022 23:49:19

losttrip
Member

Re: Module Update Check - Versions

Thank you!

Offline

Board footer

up