Album treeview
Barre
Joined: 2004-07-14
Posts: 48 |
Posted: Thu, 2005-04-21 06:20 | |||
Hi. I’m trying to learn how to write modules for gallery2 (I’m trying at the same time to learn PHP ). Anyhow, this is my first take on a module and I really must thank Alan Harder for the “Album Select
|
||||
Posts: 196
Barre,
It must have been something more than some copy and paste work! Good Job!
Although my long album names makes G2 to shift a whole screen to the right, it looks great to me!
Posts: 48
oh.. thanks.
I'm currently working on phpunit coding and I've found a lot of bugs in the attached albumtreeview module.
I will upload a new one soon.
cheers
Posts: 8601
Barre, very cool.. if you're up for it, you might consider merging your module with Album Select, with a site admin option to pick the standard html <select> or the fancy tree. Post the modified albumselect module (with any new unit tests) here and we'll get it into cvs.. thanks!
Posts: 48
Hi mindless.
I've uploaded the updated version in my original post.
It should include the phpunit tests (i'm not really sure on the syntax and what I really should do in the unit tests) but I found some bugs in my first version when trying to create the unit tests.
I'm really not the man to merge the Album Select with the TreeView, I'm kind of out on deep water when developing for G2.... it's fun though
Anyhow, I have no problems with anyone else merging the two modules and I don't think it's going to be any problems including the java-scripts either. I have included the original auther within the code and left any credits intact.
this is the text found in the java-script
Now, I'm on the localization part of G2... always something new to learn.
Is there a list of events generated by the core?
cheers
Posts: 8601
Barre, great! I'll take a look when I get a chance..
Posts: 8601
Ok, integrated and committed to cvs.. thanks for the contribution!
See http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Development%20Team
Posts: 74
Quick note/question.
Using IE6, when viewing a subdirectory with a longer name, the left "frame" expands to the right to allow the full name to be shown.
In Mozilla (1.0.2), the frame does not expand, so the end of longer names are cut off.
Which is the correct behaviour? (I suppose each has its own merits)...
My setup:
Windows XP (all updates)
PHP 4.3.11
Running IIS
MySQL 5 beta
IE6 and Firefox 1.0.2 (as noted above)
Posts: 7994
I'm also seeing something similar. As the depth of the tree grows, the right most part of the tree gets displayed and the left side of the tree (with the icons, lines, +/- boxes, etc) is no longer visible.
Posts: 48
Strange.. I can't reproduce this.
I'm using the Matrix Theme and layout.
tested with IE 6.0.2900.2180 and FF 1.0.3
I did notice that IE will strech the left menu so that the whole album name will fit, but FF "crops" the name...
I will check more on this when I get the time..
cheers