Advertisement:

Author Topic: Package SDK, anyone?  (Read 578367 times)

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Package SDK, anyone?
« Reply #60 on: January 25, 2006, 10:41:36 AM »
Shouldn't this be a "sticky" thread? I don't understand why it's not...

Offline DarkCloud14

  • Jr. Member
  • **
  • Posts: 172
Re: Package SDK, anyone?
« Reply #61 on: February 27, 2006, 04:51:54 AM »
Uhm is it possible to tell the package system that it should install some things
only if the needed files are available ?!? Or uhm I've a modification with
english and german support. Now I'll do the german language modifications on
help.german.php only if the board admin has installed the german language package.

At the moment I've the problem that I'll always get a Test failed if I don't have these files
(that's why I have an extra package for the german translation..)..
Ok I can install the Mod cause I know that it's only needed if you've german language installed,
but some other may panic and say omg the test failed  >:( contact the mod writer if you know what I mean..

Offline DarkCloud14

  • Jr. Member
  • **
  • Posts: 172
Re: Package SDK, anyone?
« Reply #62 on: March 01, 2006, 07:16:47 PM »
Ok if someone wants to know how it works here's the solution that JayBachatero told me:

Quote
Use error="skip" like this
<file name="$languagedir/Modifications.{language}.php" error="skip">


Offline -X-ChiliSaus

  • Semi-Newbie
  • *
  • Posts: 15
  • Gender: Male
  • Hero or Zero?
    • Ubernet
Re: Package SDK, anyone?
« Reply #63 on: March 04, 2006, 04:35:25 AM »
Hello,
I am new to this, so I wanted to try out the "add_settings.php".

I uploaded it, and then when I loaded it in my browser, I get these 2 errors:
Quote
Warning: Missing argument 2 for db_query() in /home/ubernet/domains/ubernet.nl/public_html/smf/Sources/Subs.php on line 237

Warning: Missing argument 3 for db_query() in /home/ubernet/domains/ubernet.nl/public_html/smf/Sources/Subs.php on line 237
Could anyone help me with this?

Thanks in advance.
Is this me? Or am I you?

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Package SDK, anyone?
« Reply #64 on: March 04, 2006, 02:52:00 PM »
You need to have __FILE__, __LINE__ in the query.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline GTSdll

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
    • GTSdll Homepage
Re: Package SDK, anyone?
« Reply #65 on: June 30, 2006, 04:50:36 AM »
Ok if someone wants to know how it works here's the solution that JayBachatero told me:

Quote
Use error="skip" like this
<file name="$languagedir/Modifications.{language}.php" error="skip">

Is there a way to do that on the old modification format (boardmod) too?
If not, does SMF 1.0.x understand the new format?
---> GTSdll Homepage [nofollow] <---

Offline Gobo

  • Sr. Member
  • ****
  • Posts: 912
  • Gender: Male
  • Peace Be Upon You
    • Path To Peace
Re: Package SDK, anyone?
« Reply #66 on: July 21, 2006, 06:28:28 PM »
hi

the sdk file dosent say anything about adding images to directories

so i was wondering if someone could kindly tell me what code i would use so that the mod file would install some images to the /Themes/images/ folder as well

Thanks

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Package SDK, anyone?
« Reply #67 on: July 21, 2006, 06:47:44 PM »
<require-file name="hello.gif" destination="$imagesdir/dirname" />
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Gobo

  • Sr. Member
  • ****
  • Posts: 912
  • Gender: Male
  • Peace Be Upon You
    • Path To Peace
Re: Package SDK, anyone?
« Reply #68 on: July 22, 2006, 02:24:27 PM »
Thanks jay :D

hopefully I will have my mod up and running soon :D

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Package SDK, anyone?
« Reply #69 on: July 23, 2006, 12:50:26 AM »
beware, if I remember good there's no such thing as $imagesdir
You have to put the path manually, like $themedir/images

But this might have changed in the latest release.
The ones the Package Manager recognize are: $sourcedir, $themedir, $languagedir
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,212
  • Mind the volcano!
    • curiousdannii on GitHub
Re: Package SDK, anyone?
« Reply #70 on: July 23, 2006, 01:49:17 AM »
SMF 1.1 recognises: $boarddir $sourcedir $avatardir $avatars_dir $themedir $imagesdir $themes_dir $languagedir $languages_dir $smileysdir $smileys_dir.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Offline Rudolf

  • SMF Hero
  • ******
  • Posts: 1,934
  • Gender: Male
  • iamanoompaloompa
Re: Package SDK, anyone?
« Reply #71 on: July 23, 2006, 05:07:11 AM »
That's good to know.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Offline kuja

  • Newbie
  • *
  • Posts: 1
Re: Package SDK, anyone?
« Reply #72 on: July 24, 2006, 01:46:30 AM »
Does anyone have a windows method (that works) of creating gzip archives? I tried a few (Ultimate zip for one) that were mentioned in other threads but I couldn't get them to work, and uploading files to  server to gzip and download to test, editing making changes and redoing this is tedious and time consuming.

The common thing to do would be to use the gzip port for Windows. I'm sure a Googling for "gzip.exe" would yield some useful results.

Offline Dannii

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,212
  • Mind the volcano!
    • curiousdannii on GitHub
Re: Package SDK, anyone?
« Reply #73 on: July 24, 2006, 01:54:47 AM »
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Offline John Slater

  • Jr. Member
  • **
  • Posts: 150
    • Proper Doh Members
Re: Package SDK, anyone?
« Reply #74 on: August 15, 2006, 10:16:29 AM »
What are all the available paths? i was woundering if there is one for Current Theme, maybe $currentthemedir or something

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Package SDK, anyone?
« Reply #75 on: August 15, 2006, 01:17:32 PM »
SMF 1.1 recognises: $boarddir $sourcedir $avatardir $avatars_dir $themedir $imagesdir $themes_dir $languagedir $languages_dir $smileysdir $smileys_dir.

Those are the ones that are available.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline gamesmad

  • SMF Hero
  • ******
  • Posts: 1,667
  • Gender: Male
Re: Package SDK, anyone?
« Reply #76 on: August 16, 2006, 03:36:31 AM »
$themedir is available, $currentthemedir wouldnt be much use, because not all themes have the same elements and therefore all have different code.  If you want to install to a precise theme, you could use something like "$themedir . '/safgrey/' .".  Just an idea though.

Will
1 on 1 SMF Help - Want 1 on 1 SMF Help? Post in Help Wanted or drop me a message!

Go Charter! - Please consider becoming a charter member to support SMF development.

Please do not PM me with general questions, posting in the appropriate board will ensure everyone benefits from the advice given.

Offline Alan S

  • Sophist Member
  • *****
  • Posts: 1,250
  • Gender: Male
  • Monkey see Monkey do
Re: Package SDK, anyone?
« Reply #77 on: September 06, 2006, 10:49:28 AM »
Pity i hadnt taken a look at this maybe 5 months ago , it might have made my struggle on learning how mod installs work alot easier lmao
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Offline yutt

  • Semi-Newbie
  • *
  • Posts: 76
Re: Package SDK, anyone?
« Reply #78 on: September 27, 2006, 10:25:28 PM »
Would using this SDK still work for 1.1 mods?

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: Package SDK, anyone?
« Reply #79 on: September 27, 2006, 10:27:58 PM »
Quote
Would using this SDK still work for 1.1 mods?
Yes, it should, nothing has really changed since SMF 1.0 ;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!