[MOD][DRFTPD 2] Mod For CreateLinks Created By N3m3Sis17

A place for mods with no support from someone in the "developers" group

Moderator: developers

[MOD][DRFTPD 2] Mod For CreateLinks Created By N3m3Sis17

Postby CyBeR » Fri Jan 13, 2006, 2:24 am

This is a mod i created as a addon for N3m3Sis17's CreateLinks plugin.

I take no credit for the code, i just changed it around so new commands can be run. I would like to say thanks for N3m3Sis17 for this great plugin.

Now onto my mod:

This MOD does 2 main things

1) Adds a site command to scan the whole site and create the missing links. I created this because if you ever get a corrupt files.mlst or you add this plugin after having mp3s on your site, the links do not exist. This creates all those missing links (good for mp3 sorting)

2) I also added mode "alpha" for MP3EVENT, this will sort the mp3s by First letter just like in GL "A,B,C,D.....X,Y,Z,VA,1,2....0"

COMMANDHANDLERS.conf
Code: Select all
SITE\ CREATELINKS=org.drftpd.commands.CreateMissingLinks


Code: Select all
links.X.dirname=/MP3/--SORTED_BY_LETTER--
links.X.event=MP3EVENT
links.X.section=MP3
links.X.subdir=alpha



This file does not include all the files from N3m3Sis17's, you need to get his working before you can overwrite it with mine. This assures N3m3Sis17's credit for his plugin :)

**********NOTE****************

If you have a large site, this takes a really long time to complete the createlinks. It will kick you off the site in 30 seconds, but it is still running in the background. Check "site who" to see if it is still running. If you do run multiple instances of this, it will really start to lag your site. Very simalure to more then 1 person running "site find".

**********END NOTE************

-------UPDATE-------- V1.01

Wasn't doing all dirs, should be A.O.K. now
You do not have the required permissions to view the files attached to this post.
Last edited by CyBeR on Tue Jan 17, 2006, 5:03 pm, edited 3 times in total.
CyBeR
Node's little helper
 
Posts: 728
Joined: Fri Nov 19, 2004, 6:44 pm

Postby N3m3Sis17 » Fri Jan 13, 2006, 9:51 am

Good idea ;)
I add the regex support for mp3 tag in next version. With this the user can create link with first letter, two letter, ecc. He can make as he wants.

I add the command for manual search ghost link too.
Bye
N3m3Sis17
 
Posts: 77
Joined: Wed Dec 01, 2004, 2:11 pm

Postby latdna » Sat Jan 14, 2006, 7:32 am

Looks like that site createlinks not working createlinks and that mod both should be installed:
(09:30:21) [1] site CREATELINKS
(09:30:23) [1] 500 Can't find resource for bundle java.util.PropertyResourceBundle, key link8
latdna
 
Posts: 20
Joined: Fri May 06, 2005, 1:27 am

Postby latdna » Sat Jan 14, 2006, 7:42 am

Problem solved, removed those not working links on links.conf.
latdna
 
Posts: 20
Joined: Fri May 06, 2005, 1:27 am

Postby _mike_ » Sun Jan 15, 2006, 5:36 am

any idea on this, i had the first the original working perfect i recompiled after placing new files in /src dir with sucess just get this error on site
drftpd v2.0


[00:35:54] site CREATELINKS
[00:35:54] 500 org.drftpd.plugins.CreateLinks.CheckDirs(Lnet/sf/drftpd/master/BaseFtpConnection;Lorg/drftpd/remotefile/LinkedRemoteFileInterface;)V


PS. i am assuming the addition you gave:
IRCCOMMANDS.conf
Code:
SITE\ CREATELINKS=org.drftpd.commands.CreateMissingLinks


is really suppossed to go in commandhandlers.conf ??
_mike_
 
Posts: 17
Joined: Sun Jun 05, 2005, 8:08 pm
Location: US

Postby Phoenix9 » Sun Jan 15, 2006, 6:51 am

it belongs in commandhandlers.conf, make sure you have installed, compiled properly, unloaded/reloaded the createlinks plugin

enable site debug for more verbose error log.
Last edited by Phoenix9 on Sun Jan 15, 2006, 6:50 pm, edited 1 time in total.
Phoenix9
 
Posts: 93
Joined: Sat Nov 27, 2004, 4:05 am

Postby CyBeR » Sun Jan 15, 2006, 3:02 pm

My appoligises....i labeled the wrong one...yes its supose to go into

commandhandelers.conf
CyBeR
Node's little helper
 
Posts: 728
Joined: Fri Nov 19, 2004, 6:44 pm

Postby erich » Mon Jan 16, 2006, 1:20 pm

CreateMissingLinks doesn't compile, using 1399.
Comes with error:
Code: Select all
Buildfile: build.xml

compile:
     [echo] Compiling 1.4 compatible slave files
     [echo] Compiling the rest in 1.5 compatible files
    [javac] Compiling 2 source files to C:\dr\1399-compiled\classes
    [javac] C:\dr\1399-compiled\src\org\drftpd\commands\CreateMissingLinks.java:42: cannot find symbol
    [javac] symbol  : method CheckDirs(net.sf.drftpd.master.BaseFtpConnection,org.drftpd.remotefile.LinkedRemoteFileInterface)
    [javac] location: class org.drftpd.plugins.CreateLinks
    [javac]                             lns.CheckDirs(conn,file);
    [javac]                                    ^
    [javac] Note: C:\dr\1399-compiled\src\org\drftpd\commands\CreateMissingLinks.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
C:\dr\1399-compiled\build.xml:144: Compile failed; see the compiler error output for details.
erich
Node's little helper
 
Posts: 574
Joined: Mon Nov 29, 2004, 12:50 pm

Postby CyBeR » Tue Jan 17, 2006, 3:38 pm

That error is saying you don't have the original one installed.

Once u have the original one working...replace the java file with my version and recompile
CyBeR
Node's little helper
 
Posts: 728
Joined: Fri Nov 19, 2004, 6:44 pm

Postby erich » Wed Jan 18, 2006, 10:37 am

Helps deleting the old class. thx :)
erich
Node's little helper
 
Posts: 574
Joined: Mon Nov 29, 2004, 12:50 pm

Postby tworkemon » Wed Feb 01, 2006, 10:50 pm

Hehe would be to nice have this do --By Group-- on DVDR aswell ;)
tworkemon
Node's little helper
 
Posts: 258
Joined: Fri Dec 10, 2004, 9:15 pm

Postby Prometheus » Thu Feb 02, 2006, 8:37 am

Why, the original createlinks plugin can do that too
Prometheus
Node's little helper
 
Posts: 291
Joined: Sun Dec 12, 2004, 8:19 pm

Postby tworkemon » Thu Feb 02, 2006, 2:15 pm

Well if site goes down you lose your links. This mod was created to recreate those links, but it only works for MP3. The suggestion above was to modify this to work for either all created links or add it to DVDR.
tworkemon
Node's little helper
 
Posts: 258
Joined: Fri Dec 10, 2004, 9:15 pm

Postby blub » Sun Feb 05, 2006, 1:53 pm

Works fine, nice plugin
blub
 
Posts: 20
Joined: Fri Jan 27, 2006, 2:04 am
Location: .DE

Postby OnNo_4 » Sat Feb 18, 2006, 5:26 pm

I installed this mod and i get this error

Code: Select all
[L] 500 Can't find bundle for base name org.drftpd.plugins.CreateLinks, locale en_US


any ideas ?

thnx

edit : it seems to work now .. i still have no clue why it gave that error tho ..
OnNo_4
 
Posts: 35
Joined: Wed Feb 02, 2005, 9:08 pm

Next

Return to New & Rogue Mods

Who is online

Users browsing this forum: No registered users and 1 guest