Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Mod Writing Suggestions (Read 11945 times)
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Mod Writing Suggestions
Apr 9th, 2002 at 1:19pm
Print Post  
To summarise and expand for mods that add other files.


For mods that add a new user file (in the members directory), the unlink command should be added to these files:
  • admin.pl (in sub DeleteMultiMembers)
  • Profile.pl (twice, both in sub ModifyProfile2)


For mods that add a new board file (in the boards directory), the unlink command should be added to these files:
  • ManageBoards.pl (in sub ModifyBoard)
  • ManageCats.pl (in sub ModifyCat)


For mods that add a new thread file (in the messages directory), the unlink command should be added to these files:
  • ModifyMessage.pl  (in sub ModifyMessage2 and in sub MultiDel if you have omarios "in multi-post delete" mod installed)
  • RemoveThread.pl (in sub RemoveThread)
  • RemoveOldThreads.pl (in sub RemoveOldThreads)
  • ManageBoards.pl (in sub ModifyBoard)
  • ManageCats.pl (in sub ModifyCat)
  • MoveThread.pl (possibly in sub MoveThread2, depending on what the mod does)


Search for "unlink" in the files specified to find the exact location and syntax to use.



Have I forgotten anything?
« Last Edit: Nov 9th, 2002 at 7:19pm by Shoeb Omar »  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
krysia322
Junior Member
**
Offline


"It's Good to be The King"
- Mel Brooks

Posts: 85
Location: Miles City
Joined: Jul 10th, 2002
Gender: Female
Re: Mod Writing Suggestions
Reply #1 - May 5th, 2003 at 3:52am
Print Post  
I want to thank you, BHRA, for making it so easy to code your mods manually. I replying here in the hopes that others will follow your example.
Cheesy

I'm talking about  how you add those pound symbols to signify when each file to be modded is needed.

Not every mod writer does this, and this Mac user just wanted to give you the props due for making my YaBBing life a little easier.
Thank you!!!
Kiss
  

Dream BIG!
MAC User = 100% by hand modding

STORM CLOUD
Back to top
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Mod Writing Suggestions
Reply #2 - Sep 25th, 2003 at 1:55pm
Print Post  
So by using the unlink command I can delete any extension of a member when that member is deleted? Where would the unlink command be needed for that purpose?
  

Back to top
WWW  
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: Mod Writing Suggestions
Reply #3 - Sep 25th, 2003 at 4:32pm
Print Post  
They would be user files (in the members directory) - See post above for details.

Of course, with certain types of files which share a common name (user files, thread files, board files) it might be worthwhile modifying the routines to delete all files with that name regardless of extension. Then these "clean-up" modifications wouldn't be necessary!
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Mod Writing Suggestions
Reply #4 - Sep 25th, 2003 at 6:13pm
Print Post  
Quote:
it might be worthwhile modifying the routines to delete all files with that name regardless of extension. Then these "clean-up" modifications wouldn't be necessary!

I thought that would be default in YaBB, but I guess it is not? How would I even begin to make a routein that would delete all the user info?
  

Back to top
WWW  
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Mod Writing Suggestions
Reply #5 - Sep 26th, 2003 at 8:39am
Print Post  
Okay, I have two questions before I add in my unlink code:

1. When a member has posted a message and is then deleted, how does the the member's name (that is now a guest) be displayed? In other words is there a file in the member's dir kept for that purpose that I should not unlink?

2. For files that are already in the member directory that need to be deleted but the person is no longer a member, how do I delete them? If manually that would mean a lot of work!
  

Back to top
WWW  
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: Mod Writing Suggestions
Reply #6 - Sep 26th, 2003 at 4:33pm
Print Post  
1...The member's original username and screen-name are stored in the message files, so deleting the member files will have no affect.

2...They need to be deleted manually! There is currently no way for them to be unlinked retroactively.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: Mod Writing Suggestions
Reply #7 - Sep 26th, 2003 at 4:43pm
Print Post  
Thanks for the replies and help.
  

Back to top
WWW  
IP Logged
 
Jungle Jim
God Member
*****
Offline



Posts: 1015
Location: The Fridge
Joined: Apr 7th, 2003
Gender: Male
Re: Mod Writing Suggestions
Reply #8 - Apr 17th, 2004 at 2:16am
Print Post  
I thought you ditched Yabb BG ?  Shocked

btw - u dont want politics and religion forums, ive tried em and they just cause problems.  I wound up deleting the religion one and locking the political one.
  
Back to top
 
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: Mod Writing Suggestions
Reply #9 - Sep 26th, 2004 at 4:03pm
Print Post  
Another thing I think should be mentioned to all of the aspiring mod writers out there:

Please make certain that you are very dilligent when typing the filenames for BoardMod to edit.  I have used one or two mods that edited a file called English.lng instead of english.lng.

For those of us on Unix/Linux servers, this can wreck our entire board.  Unix servers are case-sensitive, and when you upload English.lng, it will overwrite english.lng.  Unfortunately, because of the case sensitivity, YaBB is then no longer able to locate english.lng because it no longer exists.

So, please make certain that you type the "Edit File" name exactly as it should be when making your mods.

Thanks.
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
zarren
Junior Member
**
Offline


I need to learn C++

Posts: 81
Location: Norwich
Joined: Apr 27th, 2006
Gender: Male
Re: Mod Writing Suggestions
Reply #10 - Jun 5th, 2006 at 9:27am
Print Post  
hehehe this post was wrote for me lol
  

BIATCH
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Mod Writing Suggestions
Reply #11 - Jun 5th, 2006 at 9:38pm
Print Post  
Not for YaBB 2.x though. You shouldn't need to add a new user file or a new board file.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Curtiss Grymala
God Member
*****
Offline


YaBB?... Y Not?

Posts: 1314
Joined: Apr 12th, 2004
Gender: Male
Re: Mod Writing Suggestions
Reply #12 - Jun 6th, 2006 at 1:13am
Print Post  
Yeah, but my original post still holds up.  Of course, there is no english.lng, but the case-sensitivity is still very important.   Grin
  

Currently using Y2.3 With no mods (though that will hopefully change, soon).

Click Here To See A List Of All The Mods I've Written
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint