News:

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

Main Menu

MyStatus Update Mod (beta) - a social network extension for SMF 2.0

Started by ElectricSquid, October 15, 2009, 02:14:01 PM

Previous topic - Next topic

Arantor

It's a bit different in ManageServer.php, which is why it should be in ManageSettings.php.

Yes, you can add it in Help.english.php but it's preferred to keep all language strings in Modifications.english.php generally.

Kays

If you look further up the page you'll see this. Which is why I referred you to that file. It should explain it all.

Quote
/*   Adding options to one of the setting screens isn't hard. Call prepareDBSettingsContext;
   The basic format for a checkbox is:
      array('check', 'nameInModSettingsAndSQL'),

      And for a text box:
      array('text', 'nameInModSettingsAndSQL')
      (NOTE: You have to add an entry for this at the bottom!)

      In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
      and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

   Here's a quick explanation of how to add a new item:

    * A text input box.  For textual values.
   ie.   array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth'),

    * A text input box.  For numerical values.
   ie.   array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth'),

    * A text input box.  For floating point values.
   ie.   array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth'),

    * A large text input box. Used for textual values spanning multiple lines.
   ie.   array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows'),

    * A check box.  Either one or zero. (boolean)
   ie.   array('check', 'nameInModSettingsAndSQL'),

    * A selection box.  Used for the selection of something from a list.
   ie.   array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => $txt['displayedValue'])),
   Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

    * A password input box. Used for passwords, no less!
   ie.   array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth'),

   * A permission - for picking groups who have a permission.
   ie.   array('permissions', 'manage_groups'),

   * A BBC selection box.
   ie.   array('bbc', 'sig_bbc'),

   For each option:
      type (see above), variable name, size/possible values.
   OR   make type '' for an empty string for a horizontal rule.
   SET   preinput - to put some HTML prior to the input box.
   SET   postinput - to put some HTML following the input box.
   SET   invalid - to mark the data as invalid.
   PLUS   You can override label and help parameters by forcing their keys in the array, for example:
      array('text', 'invalidlabel', 3, 'label' => 'Actual Label') */

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

ElectricSquid

It's complete and ready for approval!!
Totally reworked, completely upgraded.

This mod is now self cleaning.
Uses it's own database tables.
Many admin settings.
Features smart return on posting and replying.

Yaddda yadda yadda :P

http://custom.simplemachines.org/mods/index.php?mod=2268



MultiformeIngegno

RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

saosangmo

QuoteSorry but no mod was found
:(
hope this mod will be finally released soon!

ElectricSquid

Quote from: saosangmo on November 28, 2009, 10:42:40 AM
QuoteSorry but no mod was found
:(
hope this mod will be finally released soon!

It's there, but the SMF Customization Team is still looking it over so that's probably why it's not showing up for you.
It's a big mod with a lot of coding and many things they need to look at.
(ie. many ways to try to make it fail)

Plus Thanksgiving just passed, so it might take them a few days/weeks to approve it (or send it back to me for revisions).

While I'm waiting, I am working on a sister mod that will go well with MyStatus_Updates Mod.

Arantor

It's usually measured in days, for small mods, maybe a week or more for larger ones (like this). We're looking at it, though, rest assured. It hasn't dropped 'off the radar'.

ElectricSquid

Thanks for backing me up on that one.

You guys and gals take your time, and enjoy your long weekend ;)

Dzonny


Arantor

Given how much work is involved, I doubt many would want to backport this; well over half would have to be rewritten.

ElectricSquid

Quote from: Dzonny on November 29, 2009, 01:14:34 PM
Great idea...
Can this work with 1.1.10 ?

No, 1.1.x support is not available, and probably won't be in the future.
Arantor is correct, there would be a lot of code that would need a total re-write in order to back-port this mod.
I am concentrating my efforts on a sister mod (to this one) and don't have the time needed to re-write MyStatus_Updates for 1.1.x

sangwe11

Quote from: ElectricSquid on December 02, 2009, 10:13:39 AM
Quote from: Dzonny on November 29, 2009, 01:14:34 PM
Great idea...
Can this work with 1.1.10 ?

No, 1.1.x support is not available, and probably won't be in the future.
Arantor is correct, there would be a lot of code that would need a total re-write in order to back-port this mod.
I am concentrating my efforts on a sister mod (to this one) and don't have the time needed to re-write MyStatus_Updates for 1.1.x

And, seeing as SMF 2 is so great, why bother?


saosangmo

Every time I see the new post on this topic, I check if the mod is public or not! :(

Arantor

ElectricSquid: sangwe11 is being rheatorical, specifically that since SMF 2 is so good, mod authors wouldn't necessarily want to backport to 1.1. I know I'm not backporting much of my newer stuff to 1.1 now.

sangwe11

Quote from: Arantor on December 03, 2009, 03:28:27 AM
ElectricSquid: sangwe11 is being rheatorical, specifically that since SMF 2 is so good, mod authors wouldn't necessarily want to backport to 1.1. I know I'm not backporting much of my newer stuff to 1.1 now.

For anything that I write, or finish writing when I actually get time to sit down and finish them now (busy with exam revision :() I won't be backporting.

I will welcome anyone that wants to back port for themselves, but I won't let anyone release a backported version as a public one.

Hj Ahmad Rasyid Hj Ismail

I have been following this. Thanks a lot for developing such a useful mod. Very useful i say.

Legend Zero

<== Anxiously awaiting this mod. It's 1/3 of some new ones I'm tracking that will finally let me do the redesign of my site I have been planning.


Hj Ahmad Rasyid Hj Ismail


Arantor


Advertisement: