News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Package SDK, anyone?

Started by [Unknown], November 22, 2004, 03:26:37 AM

Previous topic - Next topic

EG

when I upload two simple Boardmods Ive made, just for things Ive changed on my forum,... to my testforum... it says this

Quote
Type Action                                                               Description
1      Execute Modification ./Sources/MoveTopic.php Failure

but if I click Proceed the mod works anyway :-\

why does it say Failure ?

[Unknown]

Quote from: EG on January 02, 2005, 12:00:09 PM
when I upload two simple Boardmods Ive made, just for things Ive changed on my forum,... to my testforum... it says this

Quote
Type Action                                                               Description
1      Execute Modification ./Sources/MoveTopic.php Failure

but if I click Proceed the mod works anyway :-\

why does it say Failure ?

It may "works anyway", but it didn't make those changes because it failed.  Use the test_modification.php script for more detail.

Whitespace matters when CHANGING files, because you have to find what to change.  Whitespace only doesn't matter when actually RUNNING the PHP.

-[Unknown]

EG

#22
ok thanks,
thing is, it actually said failure, before it runs the mod...

it says failure when you upload the mod.. and then it gives the list of files its going to alter

on the really simple mod I wrote, it worked anyway, after clicking proceed

but on the more complicated one, it didnt :-\

how do you use test_modification.php ?

is there a readme file about it ?

CapriSkye

you'll have to put test_modification.php on your server, or your local test forum
i put it under smf's home directory, and just call it like http://localhost/test_modification.php

EG

RAH!

just worked out why sometimes they fail and sometimes they dont, when the search script itself is exactly the same, even when copy and pasting.

its all to do with spaces at the beginning of the line!

ok... Im stupid... but just thought Id pass this information on..

oh... and yeah

After in Board Mod = before in SDK Package..

Cccddd

Hey [Unknown] just a thought... It would probably be helpful if the package SDK included a index.php file for the main package folder with instructions on it to add the user's package server to their website. The person USING the SDK already knows how to because of the readme info, but anyone who tries to download the packages usually just get lost.

or at least, thast the problem I had till I created the index.html file at http://nrrds.com/packages/

[Unknown]

People without url_fopen or with safe mode will just get redirected there, unable to download your packages.

-[Unknown]

Cccddd

interesting. so i should delete my index file then?

[Unknown]

Well, the URL will look something like:

index.php?package-list&referer=http://someonesforum.com/

So, you could just see if $_GET['package-list'] is set.  Mind you, this is all from memory.

-[Unknown]

[Unknown]

Everyone should read this about why xml packages are better than boardmod, if you need them:

http://www.simplemachines.org/community/index.php?topic=24009.0
(assuming they work as designed, they have had testing but I'll admit not as much as I wanted.)

-[Unknown]

Cccddd

yeah thats part of why im moving all my mods to packages instead of the mod site stuff. Trying to get as much testing in as possible. I think better docs would be helpful too.

btw why do we have that modsite if the package manager works?

Jerry

People would be lost without it ;)


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

[Unknown]

You can browse the mod site with your package manager.

-[Unknown]

Jerry

I just noticed, checked while I was posting. Nice edition :)


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Cccddd

So is anyone working on the modsite? Cuz I'm not. I was gonna but my opinions seem to differ too greatly from the development team over what needs to happen with that page. Besides I got my own mods to work on. The music mod is getting kinda popular now and I have a lot of things I need to add to it.

Louis (CSpotkill)

#35
Took me awhile to find this darn SDK, but I'm glad I did :)

Anyway, I was just about to release a mod on my own package server, but as I was setting up the package server, I noticed an error in the packages_advanced.xml file:

<default-website title="My Website">http://www.mywebsite.tld/</default-author>

This should obviously be:
<default-website title="My Website">http://www.mywebsite.tld/</default-website>

Just a small copy/paste error, easily fixed :)

Edit: Also, you should probably use the example domains (example.com|example.net|example.org) since they were created for examples in technical documentation ;)
My SMF Mods:

[Unknown]

Fixed, I should probably update the first post soon.

-[Unknown]

Cccddd

you may also want to add something about this package thing to the news rotator thinger up at the top of the page.

Herman's Mixen

Fatal error: Call to a member function on a non-object in /home/httpd/burglar.pointclark.net/forum/Sources/PackageGet.php on line 210

i get this error when i go true my package-manager browse packages ??
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Herman's Mixen

it works now i gues... but for some strange reason i cant actually myself on my own package server !! it gives an error but when i go true an other domain where is smf also installed and goes true the package manager and browse true my server it seems to work ?? is here some kinda solution for ?
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Advertisement: