Welcome, Guest. Please Login or Register.
June 16, 2024, 03:15:25 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  All about writing mods --- my version « previous next »
Pages: [1] Reply Ignore Print
Author Topic: All about writing mods --- my version  (Read 1181 times)
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
All about writing mods --- my version
« on: December 31, 2001, 11:19:37 PM »
Reply with quote

1)  Don't do mods other people are doing -- it is stupid, pointless, and wasted time.

2)  Don't modify the functions if you don't have to -- instead, write a function that does the job, and call that function.

3)  Don't screw with Admin.php much

4)  Don't screw with Instant Messaging much -- a new version is coming some time soon

5)  Don't screw with Packages.php or PackageGet.php -- MINE -- bugs? TELL ME!! -- MINE :P

6)  Comment you code!  Readable code is a GOOD thing, not a bad thing!

7)  before your modification code, put this:
// Custom Stuff Mod by John Doe
// starts here

8)  after you modification code, put this:
// Custom Stuff Mod by John Doe
// ends here

9)  INDENT (either 2 spaces or a tab)
 //This is nice
  if($name == "Howdy dood") {
    print "Hi there";
  }

  // This isn't
if($name =="Howdy dood) {
print "Hi there";
}

10)  Let us developers know what you are doing

11)  If a new version of something is coming out, wait before screwing with that something

12)  Don't build on top of other mods

13)  Put information in the "modification.txt" file

14)  Put PHP queries in the "modification.php" file

15)  Don't use the "modification.sql" file -- it is screwed up currently

16)  Put mod stuff in the "modification.mod" file

17)  Upload/download those  four files as ASCII text, upload/download the mod file (mod.mod.yp) as BINARY

18)  The current tags supported by Package Manager are:
<file>
<search>
<before>
<add>
<replace>

19)  Don't make stupid, pointless mods

20)  Try to fit several bug fixes into a single mod
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:All about writing mods --- my version
« Reply #1 on: January 01, 2002, 06:57:44 PM »
Reply with quote

Good points matt, but there's a problem: your package engine is too buggy to release packages :(
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:All about writing mods --- my version
« Reply #2 on: January 01, 2002, 11:19:18 PM »
Reply with quote

lie! lie!

:P
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:All about writing mods --- my version
« Reply #3 on: January 02, 2002, 12:09:02 PM »
Reply with quote

i said the truth, sad but truth :(
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:All about writing mods --- my version
« Reply #4 on: January 02, 2002, 07:25:14 PM »
Reply with quote

much less buggy than the original :P
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:All about writing mods --- my version
« Reply #5 on: January 03, 2002, 09:15:21 AM »
Reply with quote

I cannot use it to apply my custom titles mod, but anyway it will be integrated in future versions of YaBB SE ;D
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:All about writing mods --- my version
« Reply #6 on: January 03, 2002, 11:51:02 PM »
Reply with quote

that is because the tags are different :P

<file>
<search>
<add>
<before>
<replace>

are the ones implemented currently :)
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:All about writing mods --- my version
« Reply #7 on: January 04, 2002, 08:24:03 AM »
Reply with quote

ehm Matt, i designed the package with tags implemented by you :P

you call for beta testers but you never tested the package i linked for you, that gives the error in your package source :P
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:All about writing mods --- my version
« Reply #8 on: January 05, 2002, 05:06:15 PM »
Reply with quote

I didn't see that link, sorry, I have been busy with school the past week :(
Logged

Godai
Mod God :P
Sr. Member
****
Posts: 473


YaBB SE!!!!

ICQ - 70621553godai78@hotmail.com WWW
Re:All about writing mods --- my version
« Reply #9 on: January 05, 2002, 09:25:53 PM »
Reply with quote

No problem matt, you have school i have work, that's life :'(
Logged

Emanuele 'Godai' Sparvoli
YaBB Italian Team
100% YaBB Lover
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  All about writing mods --- my version « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.227 seconds with 20 queries.