Page 1 of 2
Here is my "Serendipity Sidebar Item Collapser" pl
Posted: Mon Aug 07, 2006 11:23 pm
by AzRAeL
I know there are already solutions that do this, but here's my version:
http://www.warpzone.at/projects/serendi ... llapse.zip
It enables the viewer to expand/collapse sidebaritems via Javascript - and stores the selection in a cookie - also check out the plugin-options.
Btw this uses prototype and scriptaculous and tries only to load these 2 if they are not included already
Feedback/suggestions would be highly appreciated!
hf
AzRAeL
Re: Here is my "Serendipity Sidebar Item Collapser"
Posted: Tue Aug 08, 2006 11:41 am
by garvinhicking
Hi!
What would you think about people being able to move around the sidebar items?
Like this one:
http://www.brothercake.com/site/resources/scripts/dbx/
?
Would you like to add your functionality into the s9y sidebarhider plugin as a second option? Like "Choose which JS to use: [x] custom [ ] scriptaculous"? Because the sidebarhider plugin of s9y can do a lot of other cool things as well, but I see a use in your revamped JS usage!
Best regards,
Garvin
hmm - moving the items...
Posted: Tue Aug 08, 2006 12:16 pm
by AzRAeL
great idea! thank god scriptaculous already has drag&drop implemented

I'll add this soon.
About adding it into the s9y sidebarhider plugin as a second option - i'll try

nearly finished
Posted: Tue Aug 08, 2006 10:56 pm
by AzRAeL
Ok i am nearly finished now - drag&drop is implemented and works like a charm

The updated version can be found here:
http://www.warpzone.at/projects/serendi ... llapse.zip
a question: wouldn't it be nicer to set CSS-classes instead of CSS and HTML code in the plugin options? The downside is that the user would have to edit his theme's stylesheets..
hmm - what is your suggestion?
btw - how do i know what to fill in here?
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
'php' => '4.1.0'
));
thanks in advance
Azzy
Re: nearly finished
Posted: Wed Aug 09, 2006 11:06 am
by garvinhicking
Hi!
Very cool, now just the integration into the sidebarhider plugin and we can add your code to Spartacus. That would be awesome
a question: wouldn't it be nicer to set CSS-classes instead of CSS and HTML code in the plugin options? The downside is that the user would have to edit his theme's stylesheets..
Can you give an example for what you mean with this?
btw - how do i know what to fill in here?
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
'php' => '4.1.0'
));
You should be able to leave it with exactly those values!
Best regards,
Garvin
cssclasses
Posted: Wed Aug 09, 2006 12:59 pm
by AzRAeL
hi, i saw in the s9y sidebarhider plugin options, that the user can specify csscode for CSS-Style des Verstecken-Links (text-decoration:none;float:right;margin-right:3px;), HTML für den Anzeigen-Link, HTML für den Verstecken-Link.
I meant that it maybe would be nicer just to specify a CSS-Class name here and let the user put the code itself into the themes stylesheet...
IDEA: i keep cssclassnames here, deliver a additional stylesheet for those classes (a default one) and give the option to deaktivate this stylesheet and use the users theme styles...
I already put that in for "CSS-Klasse für verborgene Blöcke" which is blank by default. if you specify a classname here it will be applyed to the item (same happens for "CSS-Klasse für expandierte Blöcke")
btw maybe i should give the possibility to de/activate drag&drop and collapsing independantly...
Re: cssclasses
Posted: Wed Aug 09, 2006 1:02 pm
by garvinhicking
Hi!
Ah, okay, now I see. It would be nice to have an option to alternatively assign a "class" instead of a "style". The plugin could be modified to check if the user input contains " " , ":" or ";". If so, the input is emitted within a 'style' tag. If not, his input is emitted as a "Class". Ain't that clever?
btw maybe i should give the possibility to de/activate drag&drop and collapsing independantly...
That would be very helpful!
Regards,
Garvin
great!
Posted: Wed Aug 09, 2006 1:03 pm
by AzRAeL
damn i never thought of that! great idea!
Re: great!
Posted: Thu Aug 10, 2006 10:04 pm
by clafferty
this plugin is great.
it works like a charm in Firefox... but doesn't seem to work for me in IE. should it be?
thanks...

the next version
Posted: Thu Aug 10, 2006 10:45 pm
by AzRAeL
works also in IE - i found the problem now

- i will post it here tomorrow
Re: the next version
Posted: Thu Aug 10, 2006 10:47 pm
by clafferty
AzRAeL wrote:works also in IE - i found the problem now

- i will post it here tomorrow
woot.

new version available
Posted: Thu Aug 10, 2006 11:53 pm
by AzRAeL
Hi, so there is a new version available under the same link as above... IE should be fixed now. The only IE resrtiction is that you cannot use "! important" when specifying CSS-code in the options - but i think we can live with that
please test and give suggestions/bugreports.
cheers
Azzy
Re: new version available
Posted: Fri Aug 11, 2006 12:19 am
by clafferty
the drag/drop seems to work in IE, but the collapsing does not... at least for me. i don't want anyone who uses IE to be reading my site anyway... but thought i'd let you know.
AzRAeL wrote:Hi, so there is a new version available under the same link as above... IE should be fixed now. The only IE resrtiction is that you cannot use "! important" when specifying CSS-code in the options - but i think we can live with that
please test and give suggestions/bugreports.
cheers
Azzy
Re: new version available
Posted: Fri Aug 11, 2006 10:03 am
by garvinhicking
Hi Azrael!
Just a quick question, do you want to take a look into the sidebarhider integration? Because if you're not doing it, I would love to make a general call for developers to integrate your cool functionality into the existing plugin.
Best regards,
Garvin
hmm
Posted: Fri Aug 11, 2006 1:06 pm
by AzRAeL
Because if you're not doing it, I would love to make a general call for developers to integrate your cool functionality into the existing plugin. Smile
yeah - make the call please , i'm so tired and my holiday is over
