|
From: Ask S. G. <cl...@sl...> - 2001-03-27 02:14:02
|
FYI, this might not be very intuitive, but the indent data is NOT hardcoded into Slash...it just looks that way. For those who don't know, there is a routine in Slash called getData() which one can use to get little "snippets" of HTML or other text. This data is obtained from one large template called: data;misc;default Note: like all other templates, you can override the default template for individual sections by creating and editing: data;misc;<section-name> It's recommended that you copy the default template to your new template and edit what you need, then load the new template into the database using template-tool. Now in terms of the threaded display, you will want to investigate the following data "snippets": indentbegin [Slashcode default: "<UL>"] indentend [Slashcode default: "</UL>"] You can therefore change these to taste with respect to how you want your indenting to look like without changing a single line of Slash. (Well, you SHOULD be able to do this, if the reality is different from the intended design, please do let us know). Be aware that you should also be able to edit these templates from the template editor in admin.pl [remember to restart your httpds if necessary]. - Cliff On Sun, 25 Mar 2001 11:07:00 -0500, shane said: > At 11:12 PM 3/23/2001 -0500, Blake Day wrote: > >I just wanted to mention that in my attempts to change the look of threads > >for comments, I ran into a problem. Currently, the slash code adds an > >indent constant to the beginning of every "linkComment" (which is a link > >to the threaded comment). I think this method is very > >non-templatized. In order to put threaded comments into table rows, I had > >to basically butcher the code in Slash::displayThread and some other > >functions. Is there something I'm missing? Or is this an oversight with > >the template development? > > > >Thanks, > >Blake Day > > > > Blake, > > What you could do for this - > > instead of hacking at slash, make your own module, > copy Slash::displayThread and put that into your module. > edit to suite. save, compile. (possibly install as a plugin). > > I ran into what you're talking about when I originally did those > ubbish templates. I realized it'd take way too much time to do > and moved on from it. > > Have you looked at the new comment system they're doing for slash 2.2? > You might want to look at that, and start your 'ubb' look with that > instead of the current comment system. You could key your ubblook > to a story param. I say this because, from what > I understand, bender 2.2 will have that new comment system fully > functional. And since they're doing it because Slashdot needs it > (again, that's my understanding) I'd guess it'll get coded quickly > so they can move /. to bender asap. > > Shane > > > _______________________________________________ > Slashcode-development mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-development > > > |