[ABD] Easy phpBB3 MODX Generator (v2 - May 28)

Discussion forum for MOD Writers regarding MOD Development.
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

The generator now creates a different xml file for every template and language combination you can get :D
Previews and code outputs are no longer available as I can't afford to preview and compile a hoard of MODX scripts as it eats at my bandwith ;)
I have instead compiled the combinations in a zip format for download on compile 8-)

There *might* be a few minor bugs left so just post them here! :ugeek:

Enjoy :mrgreen:

(IE users and some firefox users need to hit Ctrl+F5 to force the javascript to refresh and allow them to see the newer version)
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28946
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by Paul »

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n<?xml-stylesheet type="text/xsl" href="modx.subsilver.en.xsl"?>\r\n<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->\r\n<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.xsd">\r\n<header>\r\n<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>\r\n<title lang="en-gb">test</title>\r\n<description lang="en-gb">test</description>\r\n<author-notes lang="en-gb"><![CDATA[test]]></author-notes>\r\n<author-group>\r\n<author>\r\n<realname>test</realname>\r\n<username>test</username>\r\n<contributions />\r\n</author>\r\n</author-group>\r\n<mod-version>\r\n<major>1</major>\r\n<minor>0</minor>\r\n<revision>0</revision>\r\n</mod-version>\r\n<installation>\r\n<level>easy</level>\r\n<time>60</time>\r\n<target-version>\r\n<target-primary>3.0.RC1</target-primary>\r\n<target-major allow="exact">3</target-major>\r\n<target-minor allow="exact">0</target-minor>\r\n</target-version>\r\n</installation>\r\n<history>\r\n\r\n</history>\r\n</header>\r\n<action-group>\r\n<copy>\r\n<file from="/styles/prosilver/templates/*.*" to="/styles/prosilver/templates/*.*" /><file from="" to="" />\r\n</copy>\r\n<open src="languages/en/test">\r\n<edit>\r\n<comment><![CDATA[test]]></comment>\r\n<find><![CDATA[test]]></find>\r\n<action type="replace-with"><![CDATA[test]]></action>\r\n</edit>\r\n</open>\r\n<open src="styles/prosilver/test.xml">\r\n<edit>\r\n<find><![CDATA[test]]></find>\r\n<action type="replace-with"><![CDATA[test]]></action>\r\n</edit>\r\n</open>\r\n\r\n</action-group>\r\n</mod>
Is a generated file (In zip). the \r\n arent replaced correctly.
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

hmm... :|
I just don't want to put it all on one line...


Any suggestions? :(
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28946
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by Paul »

Use " instead of ' ? (Basic php question? :P)
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by igorw »

Yep, "\n" is not the same as '\n'. "\\n" is the same as '\n' :P
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
smithy_dll
Former Team Member
Posts: 7632
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by smithy_dll »

Single quotes are literals, double quotes are strings with extra processing such as $var substitution, and special chars.
Systems Engineering
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

the problem is all the double quotes in the string :(
I can try addslashes and see how that fares ;)
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by igorw »

Code: Select all

$var = 'value' . "\n"; 
;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

I think its fixed now :D

I replaced

Code: Select all

'\r\n'
with

Code: Select all

"\r\n"
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

I am working with patrikStar (as you can see on the shoutbox on my board's index) to crack down on all of the bugs that happen when saving/retrieving mods out from the db.

Could anyone help me crack down on the bugs?
You can use this to log in: user: Test || pw: testuser
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by Jhong »

Very nice...

Will you release the source code? I'd rather run it on my own server....
phpBB<->WordPress Integration: www.wp-united.com
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

Jhong wrote:Will you release the source code? I'd rather run it on my own server....
No. ;)
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by Jhong »

In that case, do you have a policy on what you do with the data written up somewhere?
phpBB<->WordPress Integration: www.wp-united.com
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by geoffreak »

Jhong wrote:In that case, do you have a policy on what you do with the data written up somewhere?
Do you mean what is stored in the db?
I will only view your mod script if there is a bug in it somehow, but other than that, I really don't care about your mod scripts. :lol:

I am currently rewriting the engine that drives the generator to remove the current one's inefficiency and stop it from being so prone to bugs.
The interface will remain the same though. (with a few minor feature additions ;) )
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
User avatar
mBack
Registered User
Posts: 37
Joined: Sun May 27, 2007 11:14 pm
Location: Germany, NRW, Oberhausen

Re: [MODX Tool] Easy phpBB3 MODX Generator

Post by mBack »

Nice idea, but I have some problems with the tool:

1. "Compile Script" does not work.. it starts doing it but never ends.
2. "Save Script" works, but if I click on Download the file is screwed up, means there is a new line after each "word".

I would like it, if you could take a look at it: Download.

Thanks in advance,
mBack

Return to “[3.0.x] MOD Writers Discussion”