Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) self_delete_lock_Yabb25 (Read 6709 times)
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
self_delete_lock_Yabb25
Apr 27th, 2012 at 4:08am
Print Post  
The YaBB default is to allow users to delete their own accounts.
This mod will allow the admin to choose whether or not users can delete their own accounts from Forum Settings.

For YaBB 2.5 (not tested on 2.4 but it should work)


Zip Package:
----------------
self-delete-lock.mod


Installation:
----------------
1) Modify YaBB files manually (not tested with BoardMod.)
2) Upload modified files to your server in ASCII mode.
3) Go into Admin Center => Forum Settings => Members =>Registration ->click check-box to allow members to delete their own accounts.

Files to edit:
-----------------
cgi-bin/yabb2/Admin/ModList.pl
cgi-bin/yabb2/Admin/NewSettings.pl
cgi-bin/yabb2/Admin/SettingsMain.pl.pl
cgi-bin/yabb2/Source/Profile.pl
cgi-bin/yabb2/Languages/English/Admin.lng


Mod History:
----------------
1.0 - First Release - 26th April 2012
v3 - May 1, 2012 - German translations courtesy pyragony
v3b - because some days I are an idiot.
v4b - There are still days I can't spell.
Credits:
The last update of this Mod was by Gizmoy. I haven't been able to contact him to ask permission to update my version of it, so I hope he doesn't mind.
« Last Edit: Jul 21st, 2012 at 10:51pm by Dandello »  

self_delete_lock_4b.zip ( 1 KB | Downloads )
Back to top
WWW  
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: self_delete_lock_Yabb25
Reply #1 - Apr 27th, 2012 at 1:43pm
Print Post  
Installed perfectly with BoardMod.

Cheers


Derek
  

Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #2 - Apr 27th, 2012 at 3:15pm
Print Post  
Thank you!  Cheesy
  
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #3 - Apr 29th, 2012 at 6:39am
Print Post  
System crashing typo discovered and corrected. File reloaded above.  Many thanks to Derek.
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: self_delete_lock_Yabb25
Reply #4 - Apr 29th, 2012 at 5:14pm
Print Post  
No worries. I'm sure you'd have found it yourself - I just happened to be on the computer when Derek posted.
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #5 - Apr 29th, 2012 at 7:35pm
Print Post  
The truly embarrassing part - I did notice it, went to dinner and forgot about it.  Embarrassed
  
Back to top
WWW  
IP Logged
 
pyragony
Junior Member
**
Offline


abgeschlafft und ausgebufft

Posts: 85
Location: Eichenau
Joined: Apr 26th, 2008
Gender: Male
Re: self_delete_lock_Yabb25
Reply #6 - May 1st, 2012 at 8:31am
Print Post  
The German Files

Code
Select All
<edit file>
Languages/German/Admin.lng
</edit file>

<search for>
);

%floodtxt=(
</search for>

<add before>
'self_del_user' => 'Benutzer erlauben, ihren eigenen Account zu löschen?',
</add before>


<edit file>
Languages/German_Du/Admin.lng
</edit file>

<search for>
);

%floodtxt=(
</search for>

<add before>
'self_del_user' => 'Benutzer erlauben, ihren eigenen Account zu löschen?',
</add before>
 


  

Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #7 - May 1st, 2012 at 2:58pm
Print Post  
Thank you Thank you.  Cheesy
  

self_delete_lock_3.zip ( 1 KB | Downloads )
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: self_delete_lock_Yabb25
Reply #8 - May 1st, 2012 at 7:22pm
Print Post  
Dandello - The language translations should really be placed into two separate mod files, like:

Quote:
self_delete_lock_3_german.mod
self_delete_lock_3_german_du.mod

You can unpack the User Age in Message View mod if you want to see an example.

If you include them in the main mod file, then the mod will fail to install for anyone who hasn't got the German languages installed.

And if you don't mind another suggestion - usually when we release updates we modify the first post and reattach the file there - It makes it easier for people to find the correct mod file to use. Smiley
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #9 - May 1st, 2012 at 9:26pm
Print Post  
Okay. What would I do without you?  Wink
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: self_delete_lock_Yabb25
Reply #10 - May 1st, 2012 at 9:38pm
Print Post  
Dandello wrote on May 1st, 2012 at 9:26pm:
What would I do without you?

He he! Have a more peaceful life.

I hope I'm not annoying you by keep mentioning these things?
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #11 - May 1st, 2012 at 10:29pm
Print Post  
How else do I learn? I figure I'll make all my mistakes on the first one, then all the later ones will be perfect Grin
  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: self_delete_lock_Yabb25
Reply #12 - May 1st, 2012 at 10:44pm
Print Post  
Ah, I've just downloaded the package and noticed that the language patches still aren't correct. The way you've done it, it will try to install the mod again - the only thing that needs to be in the language mod files is:

Code
Select All
<id>
Self_Delete_Lock YaBB2.5
</id>

<version>
0.3 beta
</version>

<mod info>
The YaBB default is to allow users to delete their own accounts.
This mod will allow the admin to choose whether or not users can delete their own accounts.

German and German_Du translations courtesy pyragony

Version History
---------------
0.1 beta - First release - April 25, 2012
0.2 beta - corrected typo - Apr 28, 2012
0.3 beta - German text for Admin.lng - May 1, 2012

For YaBB 2.5 (not tested on 2.4 but it should work).

Instructions:

Apply the mod and upload (in ASCII mode):

cgi-bin/yabb2/Languages/German/Admin.lng

</mod info>

<author>
Dandello, Gizmoya, Astropilot, Eagle_f90 and Mick
</author>

<edit file>
Languages/German/Admin.lng
</edit file>

<search for>
);

%floodtxt=(
</search for>

<add before>
'self_del_user' => 'Benutzer erlauben, ihren eigenen Account zu lˆschen?',
</add before> 


How it is now, the language mod files will fail because they'll search for code which has already been replaced. Think of them more as 'patches' - the only thing they should edit is the language files.

Also note that the author has to be on one line:

http://www.boardmod.org/docs/HowTo.html#Author
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 89
Joined: Apr 25th, 2012
Re: self_delete_lock_Yabb25
Reply #13 - May 2nd, 2012 at 1:28am
Print Post  
Okay.  Smiley I thought I read that blasted howto.
  
Back to top
WWW  
IP Logged
 
depablo
New Member
*
Offline



Posts: 30
Location: Scotland
Joined: May 2nd, 2006
Gender: Male
Re: self_delete_lock_Yabb25
Reply #14 - Jul 21st, 2012 at 10:09pm
Print Post  
Installed using Boardmod no problems.

A couple of minor points see screenshot:

  • SettingsMain ends with 2 pl
  • SettingsMain has a hyphen in the middle
  • cgi-bin/yabb2/Source/Profile.pl (should be sources)




Nice Mod  Smiley
  

depablo
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint