[MODDB] MOD Version Check

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
User avatar
GroovePlugs
Registered User
Posts: 90
Joined: Wed Sep 05, 2007 3:43 am
Contact:

[MODDB] MOD Version Check

Post by GroovePlugs »

Classification: Admin Tools
phpBB Part: ACP

MOD Name: MOD Version Check
MOD Version: 1.0.2
Author: Handyman
MOD Description: Adds a version check to your board to keep up to date on all your mods

Works with:
  • phpBB 3.0.0 RC7
Features:
  • Allows MOD Authors to add their mod version files for the webmasters to keep up to date with all their installed mods
  • No File Edits needed to install
Language: English

Licence: GNU General Public License v2

Screenshots: Image

Installation Level: Easy
Installation Time: ~2 Minutes
Format: MODX
Download File: https://startrekguide.bountysource.com/downloads

Updated to 1.0.2.

Note for MOD Authors: when setting up the xml on your site, make sure you replace the & with & otherwise it will cause trouble
Last edited by GroovePlugs on Mon Sep 24, 2007 12:40 am, edited 2 times in total.
GroovePlugs is now known as Handyman`

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [RC1] MOD Version Check

Post by Gleasonator »

That's freakin' awesome! I'll test it out with my mod now. ;)

Furthermore, this was the easiest mod I've ever installed. X-D
Sorry for my bad Engrish !
gleason|design

Image

User avatar
GroovePlugs
Registered User
Posts: 90
Joined: Wed Sep 05, 2007 3:43 am
Contact:

Re: [RC1] MOD Version Check

Post by GroovePlugs »

I just found out php4 doesn't have simplexml :x so I'm making a little wrapper… if you get this working, you will see a new version of MOD Version Check available soon… so you'll get to see it work :)
GroovePlugs is now known as Handyman`

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [RC1] MOD Version Check

Post by Gleasonator »

I have PHP 5.0.5

If I navigate to the module, I get the header and footer, but nothing else but this at the top:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 62: DOMDocument::loadXML() [function.loadXML]: EntityRef: expecting ';' in Entity, line: 9
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 66: simplexml_import_dom() [function.simplexml-import-dom]: Invalid Nodetype to import
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 62: DOMDocument::loadXML() [function.loadXML]: EntityRef: expecting ';' in Entity, line: 83
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 66: simplexml_import_dom() [function.simplexml-import-dom]: Invalid Nodetype to import
[phpBB Debug] PHP Notice: in file /adm/index.php on line 299: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 303: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 305: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 307: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
I notice errors about simplexml.... but I'm using PHP 5. :-|

Ideas? Thanks alot.
Sorry for my bad Engrish !
gleason|design

Image

User avatar
GroovePlugs
Registered User
Posts: 90
Joined: Wed Sep 05, 2007 3:43 am
Contact:

Re: [RC1] MOD Version Check

Post by GroovePlugs »

Gleasonator wrote:I have PHP 5.0.5

If I navigate to the module, I get the header and footer, but nothing else but this at the top:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 62: DOMDocument::loadXML() [function.loadXML]: EntityRef: expecting ';' in Entity, line: 9
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 66: simplexml_import_dom() [function.simplexml-import-dom]: Invalid Nodetype to import
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 62: DOMDocument::loadXML() [function.loadXML]: EntityRef: expecting ';' in Entity, line: 83
[phpBB Debug] PHP Notice: in file /includes/acp/acp_version_check.php on line 66: simplexml_import_dom() [function.simplexml-import-dom]: Invalid Nodetype to import
[phpBB Debug] PHP Notice: in file /adm/index.php on line 299: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 303: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 305: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 307: Cannot modify header information - headers already sent by (output started at /includes/functions.php:7553)
I notice errors about simplexml.... but I'm using PHP 5. :-|

Ideas? Thanks alot.
You tested it right at the time I had updated the xml on my site.
I just found out that & needs to be replace with & (duh)
took me a while to figure that out.
But it should work now… please let me know if there are any more errors (note: you don't have to update for the errors to go away)
GroovePlugs is now known as Handyman`

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [RC1] MOD Version Check

Post by Gleasonator »

The error isn't from your files; it's from mine. Maybe I'm not understanding the syntax...

Would this be correct?

gleasonator_welcome_panel_version.php

Code: Select all

<?php
/**
*
* @package acp
* @version $Id: mod_version_check_version.php 48 2007-09-23 20:23:14Z Handyman $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @package mod_version_check
*/
class gleasonator_welcome_panel_version
{
	function version()
	{
		return array(
			'author'	=> 'Gleasonator',
			'title'		=> 'Welcome Panel',
			'tag'		=> 'gleasonator_welcome_panel',
			'version'	=> '0.1.0',
			'file'		=> array('gleasonator.com', 'updatecheck', 'mods.xml'),
		);
	}
}

?>
Wasn't sure whether or not to change the first line under the comments (class...). Either way gives me errors.

mods.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<gleasonator>
	<mods>
		<gleasonator_welcome_panel>
			<author>Gleasonator</author>
			<title lang="en">Welcome Panel</title>
			<description lang="en">A welcome panel similar to vB's Welcome Panel mod.</description>
			<download>http://gleasonator.com/downloads/Welcome_Panel.zip</download>
			<announcement>http://www.phpbb.com/community/viewtopic.php?f=70&t=575458</announcement>
			<mod_version>
				<major>0</major>
				<minor>1</minor>
				<revision>0</revision>
				<release></release>
			</mod_version>
			<installation>
				<level>easy</level>
				<time>120</time>
				<target-version>
					<target-primary>3.0.RC4</target-primary>
					<target-major allow="exact">3</target-major>
					<target-minor allow="exact">0</target-minor>
				</target-version>
			</installation>
			<upgrade>
				<level>easy</level>
				<time>120</time>
				<target-version>
					<target-primary>3.0.RC4</target-primary>
					<target-major allow="exact">3</target-major>
					<target-minor allow="exact">0</target-minor>
				</target-version>
			</upgrade>
			<logs>
				<log>Initial Release</log>
			</logs>
		</gleasonator_welcome_panel>
	</mods>
</gleasonator>
Thanks for any help. :)

And pointing out my stupid mistakes if you see any. X-D
Sorry for my bad Engrish !
gleason|design

Image

User avatar
GroovePlugs
Registered User
Posts: 90
Joined: Wed Sep 05, 2007 3:43 am
Contact:

Re: [RC1] MOD Version Check

Post by GroovePlugs »

Actually, you did exactly what I did… pasted the URL directly into the xml file.
If you're using FireFox, browse to your xml file and you will notice it outputs a nice xml error.

You have to change the "&" to "&", then it should be valid XML.

Also, due to fighting with php4, the structure has to start like this

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<mods>
there can't be any tags before <mods> or after </mods>

It was a nice thought, but it doesn't work out all that well without simplexml :)

the <mods> is there so you can put multiple mods inside it… so you can use 1 xml file for all your mods :)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<mods>
	<gleasonator_welcome_panel>
		<author>Gleasonator</author>
		<title lang="en">Welcome Panel</title>
		<description lang="en">A welcome panel similar to vB's Welcome Panel mod.</description>
		<download>http://gleasonator.com/downloads/Welcome_Panel.zip</download>
		<announcement>http://www.phpbb.com/community/viewtopic.php?f=70&t=575458</announcement>
		<mod_version>
			<major>0</major>
			<minor>1</minor>
			<revision>0</revision>
			<release></release>
		</mod_version>
		<installation>
			<level>easy</level>
			<time>120</time>
			<target-version>
				<target-primary>3.0.RC4</target-primary>
				<target-major allow="exact">3</target-major>
				<target-minor allow="exact">0</target-minor>
			</target-version>
		</installation>
		<upgrade>
			<level>easy</level>
			<time>120</time>
			<target-version>
				<target-primary>3.0.RC4</target-primary>
				<target-major allow="exact">3</target-major>
				<target-minor allow="exact">0</target-minor>
			</target-version>
		</upgrade>
		<logs>
			<log>Initial Release</log>
		</logs>
	</gleasonator_welcome_panel>
</mods>
GroovePlugs is now known as Handyman`

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [RC1] MOD Version Check

Post by Gleasonator »

Handyman` wrote:Actually, you did exactly what I did… pasted the URL directly into the xml file.
If you're using FireFox, browse to your xml file and you will notice it outputs a nice xml error.

You have to change the "&" to "&", then it should be valid XML.

Also, due to fighting with php4, the structure has to start like this

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<mods>
there can't be any tags before <mods> or after </mods>

It was a nice thought, but it doesn't work out all that well without simplexml :)

the <mods> is there so you can put multiple mods inside it… so you can use 1 xml file for all your mods :)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<mods>
	<gleasonator_welcome_panel>
		<author>Gleasonator</author>
		<title lang="en">Welcome Panel</title>
		<description lang="en">A welcome panel similar to vB's Welcome Panel mod.</description>
		<download>http://gleasonator.com/downloads/Welcome_Panel.zip</download>
		<announcement>http://www.phpbb.com/community/viewtopic.php?f=70&t=575458</announcement>
		<mod_version>
			<major>0</major>
			<minor>1</minor>
			<revision>0</revision>
			<release></release>
		</mod_version>
		<installation>
			<level>easy</level>
			<time>120</time>
			<target-version>
				<target-primary>3.0.RC4</target-primary>
				<target-major allow="exact">3</target-major>
				<target-minor allow="exact">0</target-minor>
			</target-version>
		</installation>
		<upgrade>
			<level>easy</level>
			<time>120</time>
			<target-version>
				<target-primary>3.0.RC4</target-primary>
				<target-major allow="exact">3</target-major>
				<target-minor allow="exact">0</target-minor>
			</target-version>
		</upgrade>
		<logs>
			<log>Initial Release</log>
		</logs>
	</gleasonator_welcome_panel>
</mods>
Oh hoh ho!

I didn't catch the "&" in the URL!

Thanks alot. :D It's working now.
Sorry for my bad Engrish !
gleason|design

Image

User avatar
pertneer
Registered User
Posts: 205
Joined: Tue Dec 05, 2006 3:56 pm
Contact:

Re: [RC1] MOD Version Check

Post by pertneer »

Handyman do you have the other mods, that you have done, setup for these updates?
I intend to live forever. So far, so good.
Steven Wright

User avatar
GroovePlugs
Registered User
Posts: 90
Joined: Wed Sep 05, 2007 3:43 am
Contact:

Re: [RC1] MOD Version Check

Post by GroovePlugs »

pertneer wrote:Handyman do you have the other mods, that you have done, setup for these updates?
I don't have any mods setup with this just yet,
I'll get them out at some point… but no later than when I update each one.
GroovePlugs is now known as Handyman`

User avatar
pertneer
Registered User
Posts: 205
Joined: Tue Dec 05, 2006 3:56 pm
Contact:

Re: [RC1] MOD Version Check

Post by pertneer »

Great! thanks for the quick reply. I hope other mod authors will do this to help the admins out. It is a great idea!
I intend to live forever. So far, so good.
Steven Wright

User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Seattle, WA
Name: David Lewis
Contact:

Re: [RC1] MOD Version Check

Post by Highway of Life »

Hi Handyman,

2 requests.
  1. Create a script where MOD Authors can build their XML without need for XML knowledge. (this should be easy, if you need help with it, please PM me)
  2. instead of checking the php version, check to see if the simple xml classes and functions exist. This will bypass the errors that people may be getting
  3. (bonus feature) Allow Administrators to enter the username or user_id of a user on phpBB.com to view all of those users' MODs. This would be helpful for MOD Authors who don't use this MOD while allowing Administrators to easily keep their board and MODs up-to-date.
Great job, I’m impressed. :D
The phpBB Weekly Podcast - Discussing the developments of phpBB4 and beyond.

New to phpBB3? Want to learn about programing?
Visit phpBB Academy at StarTrekGuide to learn how.

User avatar
GroovePlugs
Registered User
Posts: 90
Joined: Wed Sep 05, 2007 3:43 am
Contact:

Re: [RC1] MOD Version Check

Post by GroovePlugs »

Highway of Life wrote:Hi Handyman,

2 requests.
  1. Create a script where MOD Authors can build their XML without need for XML knowledge. (this should be easy, if you need help with it, please PM me)
  2. instead of checking the php version, check to see if the simple xml classes and functions exist. This will bypass the errors that people may be getting
  3. (bonus feature) Allow Administrators to enter the username or user_id of a user on phpBB.com to view all of those users' MODs. This would be helpful for MOD Authors who don't use this MOD while allowing Administrators to easily keep their board and MODs up-to-date.
Great job, I’m impressed. :D
the caching is a good idea… I'll make it so each XML file is only hit once per day per website.
GroovePlugs is now known as Handyman`

zachpl
Registered User
Posts: 175
Joined: Wed Nov 15, 2006 2:40 am

Re: [RC1] MOD Version Check

Post by zachpl »

Yeah im loving this... Installing now.

zachpl
Registered User
Posts: 175
Joined: Wed Nov 15, 2006 2:40 am

Re: [RC1] MOD Version Check

Post by zachpl »

Hey I tryed his file to see if it would work. And this is what came up...

Code: Select all

[phpBB Debug] PHP Notice: in file /adm/index.php on line 149: Cannot modify header information - headers already sent by (output started at /adm/mods/gleasonator_welcome_panel_version.php:28)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /adm/mods/gleasonator_welcome_panel_version.php:28)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /adm/mods/gleasonator_welcome_panel_version.php:28)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /adm/mods/gleasonator_welcome_panel_version.php:28)
And you couldn't see the rest of the page.
I was suppose to put this in acp/mods/ right?

Locked

Return to “[3.0.x] MODs in Development”