Commit Graph

89 Commits (6ca6e831b6593a04c017cbb8687a47247bf9559f)

Author SHA1 Message Date
Steven Wittens 74fe7990d2 Fixed article/body bug 2001-03-31 15:39:29 +00:00
Dries Buytaert d1a07a2e8f - fixed "you-have-to-logout-and-login-before-permissions-change" bug
(reported by UnConeD)
- added "add node" link to book selection box and made it display the
  current location
- removed tabs and whitespaces from themes - done automatically
2001-03-31 14:58:37 +00:00
Steven Wittens c43cf0c432 Added/updated the theme-description at the top... 2001-03-31 11:57:31 +00:00
Dries Buytaert a45fc1a20e - themes now get there header/footer links through theme_link();
- tidied up example.theme
2001-03-24 17:50:08 +00:00
Dries Buytaert de7e1fb66a - fixed potential quote problem: wrapped $story->section in a check_output
- removed all $story->update related logic - the update field is redundant
2001-03-24 16:26:56 +00:00
Jeroen Bensch c1519c908b Hey,
I changed cellpadding="0" to cellpadding is="1" in the box function. I saw on http://drop.org/ that the box subjects sticked to the border. This shoud fix it.

Jeroen.
2001-03-24 09:59:06 +00:00
Jeroen Bensch f96497e214 Hey,
Fixed jeroen.theme.

1. comment() function only gets 2 arguments. And as I made example.theme from jeroen.theme I don't see how thread got in there.

2. That must have sneaked in while I stripped down my theme to get to example.theme.

3. Fixed, it was already done in my top-right navigation box, but I must've forgotten it at the bottom.

4. OK, no more variable timestamp but straigt in the code. :)

Jeroen.
2001-03-12 17:12:36 +00:00
Jeroen Bensch 17718e1842 Hey,
did some stupid things in my previous update. But now it's OK (I did </BR> instead of <BR>.

Jeroen.
2001-03-11 20:54:59 +00:00
Jeroen Bensch 74bfacf8cc Hey,
OK, this is perfectionism. I had http://jeroen.drop.org/ validated once again, and noticed an error with a </P>, it said that the paragraph wasn't opened. But it occured near a story as we do <P> check_output(story->abstract) </P> I was pretty certain the paragraph was open. :) OK, so it wasn't the theme's fault, neither was it the engine. Then I went to take a look at the actual story and what did I see. It used a BLOCKQUOTE. After deleting the BLOCKQUOTE, messing around with the HTML, trying to insert it again. It always gave me the error when it was inserted... What's my conclusion? BLOCKQUOTE isn't allowed inside a paragraph...
Solution? We could take the option to use the blockquote HTML tag in a story or comment out of drupal. But I really like blockquote. So I now changed <P> check_output(story->abstract) </P> to <BR> check_output(story->abstract) </BR> because, basicly, that does the same thing. I'd advise you to do so too, I might do it for you if you please. Not that I really care about it, but lately we've got some queer w3-lovers on our back. Let's shake them off, allright? ;)

Jeroen.
2001-03-11 19:57:07 +00:00
Jeroen Bensch b873cb9e6d Hey,
If we're lucky this tiny jeroen.theme update might just save us from 5 HTML 4.01 bugs.
If we're very lucky it'll solve 7.
If we're unlucky only the code has improved.

Jeroen.
2001-03-11 18:47:18 +00:00
Jeroen Bensch 529f5a9532 Tidyed up the code a bit, so it'd generate less errors when running it throught w3's HTML validator. Couldn't check it because I don't have any working webspace, so Dries, upload it and I'll check, I am pretty certain that it'll solve a whole lot of errors, since I fixed a bug in story... story being generated about ten times in the HTML code on drop's main page. I expect about 30 errors less...
Jeroen.

P.S.: I don't think I'll get unconed.theme and marvin.theme updated today. But I promise I'll do it tomorrow. Had to go eat with my family, just got back and in 2 hours I am leavin for the movies. Hope you don't mind, but it's always cooler to commit patches closer to the release date... gives you this "rush" feeling. Ahh, deliberately doing stuff on  the nick of time... sweet :)
2001-03-10 15:11:12 +00:00
Jeroen Bensch 473198178d I think you all read the mail about what has changed, I also did the tiny abstract/Editor's note update. :)
Jeroen.
2001-03-09 15:59:44 +00:00
Dries Buytaert 3958a714cd - some important changes to our theme API which can be summerized as:
abstract() + article() = story()

  abstract() and article() have been merged into a new function story()
  which looks like:

  function story($story_object, $reply) {
    if (!reply) {
       // full story
    }
    else {
       // main page version / abstract
    }
  }

  This should allow you to "compress" your theme as abstract() and
  article() tended to be 98% identical.

  => I didn't really merge your themes so I leave it up to *you* to
     improved the code!!! Do it ASAP as we release drupal 2.00 in 7
     days.

  In future we'll have similar functions for other content types as
  for example:

     review($review, $reply);
     enquete($enquete, $reply);
     ...
2001-03-08 08:16:23 +00:00
Jeroen Bensch 93d51ba977 Oh, yes, I remember, I took away the drop META tags as Dries requested, also I changed the ALT="drop.org logo" to ALT="". But Dries, I can't make everything drop independant. Since I work with the random logo's...
Also removed a style tag that I didn't use.

Jeroen.
2001-03-05 22:05:22 +00:00
Jeroen Bensch 79733aec5f Has he gone insane! No. I just (but that's just my opinion) made a major improvement to my theme. In one of my unentertained moments I often just browse to drop and stare at my theme for a while. ;) Then I saw that the border around my boxes was 2 pixels wide and grey. Cool. But I thought, let's try it the same way as I do the stories. With a slick 1 pixel wide black border. And so I did. And I admit, it just looks a whole lot better, slicker, smoother, professional. You probably won't notice it at all, and probably no-one would notice. But again, I'd advise you to take a look at http://jeroen.drop.org and look at the boxes before Dries updates these .gifs. Another thing, Unconed, you probably know more or this. What do you think I should use for my images? .gif or .png. What's the advantage of .png, and most of all, is it smaller in size?
Jeroen.

P.S.: another jeroen.theme is coming up. Don't even know what I changed anymore but I changed something...
2001-03-05 22:03:29 +00:00
Jeroen Bensch d9289f51af Hey,
I updated some things, remove some PHP lines in the comment function, that I think weren't necessary (did that in the previous commit but forgot to mention it) also I renamed all the PHP?> tags to ?>. I read in the docs at http://php.net that this is the way to go. Also I renamed all <? to <?PHP. I added a BCGOLOR again, so my theme's build up is a little nicer again. Spotted four (yes 4) bugs. I now use regular HTML to assign colors but in abstract and article, the sections were still done the old way. Fixed that now, but left them black. Oh yeah, I fixed that weird rendering of my theme I think Dries was talking about. He didn't exactly mention what was wrong but I assume that it were the links in abstract and article that didn't display at the right of the story. Because I deleted some tables I had to add COLSPAN="2". However, when I loaded my page locally on eden it displayed correct. But when I browsed to drop it didn't (in the same browser) Do you get it? I sure don't. It was the same HTML code, but seems differently parsed when coming from an outside server. Allthough I don't see why Netscape would see apache locally as something different than another one. Nevertheless, I think it's fixed.

Jeroen.
2001-03-05 20:46:29 +00:00
Jeroen Bensch 830e9b3f4f Hi all,
I tweaked my theme a bit, don't know if it'll help much but I was able to squeeze a table out of abstract and article. So what you'd say? Well, since the abstract function is called for every post on the main page, I thought that it'd improve it a bit. Of course it isn't much but less tables to show the same is always a good thing. Also, due of the deleted table, I could delete some backgrounds (less traffic from the server to the client) and placed them once in a TABLE header. OK, but a cool side-effect is that it's more HTML 4.01 compliant. Because BACKGROUNDs are allowed in TABLEs and I think it's a bit unclear if they can be in TD yes or no. Either way, this brought to my attention that my !DOCTYPE is strict... I started of strict though... But I think it's a better idea to switch to transitional/loose. OK I think that was it... Oh also because of the changed TABLE structure I had to delete some BGCOLORs. Again, it might be a teeny weeny bit faster, but when you see my site being build up it isn't that nice anymore. (bgcolors are displayed faster than backgrounds). Nevertheless its the result that counts not? Let's hope everything still works.

Jeroen.
2001-03-05 13:56:41 +00:00
Dries Buytaert fa26457895 - As I'm working down my TODO list, I updated your themes:
$theme->comment() only takes 2 parameters ever since the comment
    system rewrite 2 months ago. Make sure to update your local tree
    before you start hacking away on your themes.
2001-03-03 12:17:12 +00:00
Dries Buytaert 728249cbc4 - fixed small translation glitch in format_interval
- added a couple of missing t() functions
- improved the comments module, fixed the score problem Jeroen
  reported earlier -> it's slicker but I hope it won't break anything
2001-03-01 21:34:09 +00:00
Jeroen Bensch 48e489763b Should be OK now, also put a TD and a TR on seperate lines somewhere... seems to fix a little graphical glitch I somethimes have, but I could've just been lucky too when I reloaded last times. :)
Jeroen.
2001-02-28 18:07:29 +00:00
Jeroen Bensch 9d66a204ae Changed a gif a bit...
Another jeroen.theme commit is coming up since I made some changes to test the gif I changed and didn't undo them.

Jeroen.
2001-02-28 18:05:42 +00:00
Jeroen Bensch 33b571a3f6 It looks like the subject in the comments still don't show, this is because i did $comment->$subject instead of $comment->subject
Ai ai.

Jeroen.
2001-02-28 18:02:06 +00:00
Jeroen Bensch c1edcf5d83 I say Unconed's little drops and said: "Damn, how come that he, with so few pixels can create something that smooth...". That's why I went down in my .gif archive and smoothed the drop in footerleft.gif, (the pipe with the open end in which you see a drop). It looks better now, maybe you won't see it but I do. :) I have drawn every gif pixelbased and that's why it's difficult to smoothen edges and stuff. I can't work well with the gimp and if you want certain cool effects you have to know how. Since creating a cool effect with the gimp takes like 15 weird tricks and layershuffles and filters and merges and keep transparancies and you don't get any result before you do that final step which suddenly gives you this wonderful thing. I think it's just too hard for me...
Nevertheless, here's the new footerleft.gif, you might want to check out htpp://jeroen.drop.org before Dries loads it up, otherwise you'll probably think I'm crazy :)

Jeroen.
2001-02-28 10:54:58 +00:00
Jeroen Bensch 45d8ee3e7d Fixed a small bug, there was a ';' too much in a echo "" which would just be printed like normal HTML text in the abstracts' and articles' headers...
Jeroen.
2001-02-28 09:16:47 +00:00
Jeroen Bensch 994869d5f5 OK I wrote a lengthy text with my previous commit, but due to an Up-to-date check failure it got aborted. So here it is in short. I added the translation functionality and fixed a bug that would cause the comment's subjects not to display. Apparantly it's comment->subject instead of just subject. I also wanted to make something in the comment header a bit more clear I already changed some colors but I would want the comment's rating/score to display black. It's grey now and on a grey background it isn't so clear to read (lisible in decent english?). So I added something that I thought would paint it black, but obviously it didn't. It's still grey. I didn't remove the code, it's only two lines, because it also works this way. For the rest I don't think that anything changed.
Jeroen.

P.S.: Dries, I think we can release it tomorrow, but wait and upload it to http://jeroen.drop.org first so I can check. And at noon we'll let it out. It's yearning to, I can here it growl and make roaring noises in my laptop...
2001-02-28 00:29:57 +00:00
Dries Buytaert 57e5f6a4d1 - fixed bug in block placement when (1) using a theme with 2 side bars
and (2) being logged out.
  (reported by Jeroen)
- themed "Editor's note" in theme marvin.
  (reported by Jeroen)
2001-02-27 20:58:51 +00:00
Jeroen Bensch 3207add702 <MINDOFEVERYONE>Oh, no not again, not him.</MINDOFEVERYONE>
OK, now it's finished, really. Fixed a small gfx glitch, and the categories seem to be called sections now...

It's done, and ready for release. Really.

Jeroen.
2001-02-27 18:02:36 +00:00
Jeroen Bensch 40ddbc95f7 Ehm, of course I had to forget something.
I placed all the blocks left, regardless if their region was left or right, what I did was this:
theme_blocks("all", $this);
in my left <TD>.

Now I changed it to
theme_block("left", $this);
in the left <TD> and
theme_blocks("right", $this);
in the right. If everything was this easy.

OK, really, this theme is NS4.7 NS4.76 mozilla (but mozilla 0.8 cuz he's buggy as hell with the BACKGROUNDS in TDs) and IE comliant or compatible, whatever it's being called.

Jeroen. -- Happy.
2001-02-27 16:55:37 +00:00
Jeroen Bensch 8315663966 Houston, we have a theme.
Jeroen.
2001-02-27 16:23:34 +00:00
Dries Buytaert 4d31d27ff0 - added comment index for performance sake
- improved comment module - code revision
- improved backend module - moreover headlines now work
- (automatically) stripped tabs and trailing whitespaces from
  Jeroen's theme.
2001-02-27 07:45:03 +00:00
Jeroen Bensch 3364e84317 This solves the _my_footer_pipe_was_one_pixel_too_low_ problem. It should display OK now. For the weird upper-right navigation box Dries, I really wouldn't know what goes wrong. I don't have the problem. Haven't changed a thing on the boxes, My winme's IE doesn't have the problem... Maybe netscape 4.7 just displayed it wrong only once. Try it again, and if it keeps going wrong. I'll download NS 4.7 and will try to fix it. (That'll be my fourth browser then)
Jeroen.

P.S.: I think my theme is completed... Of course the code might need some cleaning up but I think it is ready to be used by droppies without giving away the code. That'll be in the next drupal release.
2001-02-26 18:37:50 +00:00
Jeroen Bensch 2aed0d94f1 Deleting redundant .gifs since now I work with that table in table thing to create borders around boxes. Nothing has changed with newsmiddle.gif so don't expect the backgrounds behind the stories' titles to differ.
Jeroen.
2001-02-26 16:00:54 +00:00
Jeroen Bensch ff2d276021 Small bug fixes, added some NOWRAPs and other stuff. This is also an attempt to fix the widths of the boxes on the sides... I don't know if it'll work, and frankly I doubt if it would... Let me elaborate... You know that I have three colums, one for the left boxes, the middle for the stories and one for the right boxes... I didn't provide a width for any of these <TD>s. That's why it chose it's width randomly. Then I set them to these values, respectively 20 60 and 20%. That went OK, but another problem occurred. We only have boxes on the main page. And on the other pages. e.g. faq, submit news, search... we only have the <user>'s account box on the right. This results in a large white border on the left (lost space). That's why I did the following... but I am afraid it won't work... I set the widths to: <no width> 100% 20% So, now, when we have boxes on the left it'll display them, when there aren't any, the middle <TD> will take up the rest op the space, being 100%, it worked fine on my computer with my browsers... But since I use the kind of browser no-one else uses (linux mozilla 0.8 which sucks and linux NS6.01) it is no reference. I would want to stress again that my theme isn't mozilla compatible or how do you say that, in fact it'd better be mozilla isn't jeroen.theme compatible, it's buggy as hell with the backrounds. OK enough for now, let's see if anything good happens to my theme.
Dries, be so kind to get my jeroen.theme working at http://jeroen.drop.org.

Jeroen.
2001-02-26 15:43:42 +00:00
Jeroen Bensch 4511ddbfc3 Made some "major" changes in how I display comments, articles, abstracts. It won't show much different but the ones that know my theme a bit will se a small change. I don't use .gifs anymore to display the borders of the articles e.g. but a table in a table, so you get a small black border. It looks nicer, and you need less .gifs, which is, in my theme an improvement :) I also themed the comments, they weren't yet, and I didn't know it was my thing to do. I still ain't happy with the comment's headers, but it's a start. Just check it out at http://jeroen.drop.org . Things to do, get the footer's navigation bar display nicely and find a better way to display the comment's header. Nevertheless I think it's doable. It's 01.40 now I think I'm going to sleep. But first commit and delete some .gifs from zind.net.
Jeroen.
2001-02-26 00:39:47 +00:00
Dries Buytaert 77ed531035 - added new feature for evaluating purpose: user rating (mojo, karma)!
- removed tabs from Jeroen's theme
2001-02-07 22:01:57 +00:00
Jeroen Bensch 72e8fa574f OK, this is the third time I'm trying to get my theme submitted. It should work now.
It's ready for public release and can be added the the drupal CVS releases. First however, make sure you check htpp://jeroen.drop.org first and let me know if you find any more bugs. I still have to change a bit one a .gif before my footer is correct but that won't be a problem.
And thanks to Dries for solving some theme-problems.

Jeroen
2001-02-05 13:21:11 +00:00
Dries Buytaert 32c89442d3 - removed all tabs 2001-01-26 14:41:44 +00:00
Dries Buytaert f974e58dbf *** empty log message *** 2001-01-26 13:58:01 +00:00
Dries Buytaert d386c110f4 - removed redundant spaces 2001-01-26 13:38:46 +00:00
Jeroen Bensch 15d5995ece Another round of themeing and this is where I got, there are still some "minor" box-gfx glitches, about which I will talk to Dries cuz I got them away, but then something else went wrong. It's an IMG vs. BACKGROUND thing. And if you click a read more link, I got some error in include.inc of which I don't I can help it... Well, apart from that everything should work. So try out http://jeroen.drop.org and let me know if anything weird happens...
Jeroen.
2001-01-22 20:56:51 +00:00
Jeroen Bensch 6891448fc6 OK, check out this version of my theme. Everything "should" work now. Only it looks real buggy, at least in mozilla, so if you could (you don't have to) have a look at it in your own... I also indented differently, on one space but two each time I needed to indent. I thought it'd make it somewhat clearer with such a complicated/tabled theme as mine. Also when opening PHP I put the <? and ?> tags at the beginning of a new line. Again to make it more clear. All I have to do now it get the looks of the theme right. But do have a look at it.
Jeroen.

P.S.: I might even get this thing finished, imagine that. :)
2001-01-15 11:20:58 +00:00
Jeroen Bensch f1a8ab536c I removed my theme.class.php, now if someone changes my Jeroen dir into jeroen everything should be back in order. I don't think it would be a good idea to remove all of Jeroen and commit all of jeroen, would it. :)
Now you can release rc2. :)
2001-01-10 18:58:17 +00:00
Jeroen Bensch 16a6ea28e1 As I wrote in the mail, this is my .theme for now. Rather than sending the screenshot to all of you seperately, maybe you could just add a line for my theme in your <hostname>.conf and test it. This for example:
"Jeroen"  => array(
           "themes/jeroen/jeroen.theme",
           "piped theme, grey/rusty, pretty nifty"));
2001-01-10 18:51:15 +00:00
Dries Buytaert 1f0a87f4e7 Over the last 2 days I redid and reorganized an afwul lot of code and
made quite a lot of additions.   The most remarkable addition is the
diary server, which I slapped together in less then 40 minutes.   Most
of the other changes are however `unvisible' for the user but add much
value to a better maintainability from a developer's objective.  Like
always, I fixed quite a number of small bugs that creeped into the code
so we should have a bigger, better and more stable drop.org.

Unfortunatly, some theme update _are_ required:


REQUIRED THEME UPDATES:
=======================

* use format_username() where usernames are used
* use format_date() where timestamps/dates are used
* use format_email() where e-mail addresses are displayed
* use format_url() where url are displayed
* replace 'formatTimestamp' with format_date
* replace 'morelink_*' with 'display_morelink'

[most of these functions are in function.inc or template.inc]

___PLEASE___ (<- this should get your attention ;) update your themes
as soon as possible - it only takes 30 min. to get in sync with the
other themes.  Don't start whining about the fact you don't know what
to change ... either eat the source cookie, or ask me to elaborate on
a few changes.  Just let me know what's puzzling you and I'll try to
help you out!


TODO LIST FOR NEXT WEEK
=======================
* Add checks for max. text length in textarea's?  Is there an HMTL
  attribute for this or ...?
* Comment moderation + mojo
* Edit/admin user accounts: block, delete, change permissions, ...
* E-mail password, change password, change e-mail address -> extra
  checks and routines to validate such `special' changes.
* Input checking - input filter: bad words, html tags, ...
2000-09-11 07:45:22 +00:00
Dries Buytaert e214bd06c6 Updates:
--------

* URI/URL enhancements to make the URLs more comprehensive and shorter.
* Fixed a bug in submit.php that slipped in during the latest commit.
* Changed a few tidbits on the calendar.
* Fixed a bug in most themes:
    $tid       --> $cid
    COUNT(tid) --> COUNT(cid)
  Updated most themes except for UnConeD's.
* Fixed a handful of problems with Jeroen's theme.  However, Jeroen's
  theme is still not working yet - some features are completly missing,
  making the theme not very useful ...

Any known bugs left?  If not, I'll head on tonight and add some new
features.  I'll probably add basic admin tools to edit articles and
such.  Once done, we can start on the comment moderation.
2000-07-13 07:21:57 +00:00
Jeroen Bensch 90e8ad2790 for the third time... 2000-06-23 08:20:13 +00:00
Jeroen Bensch f0f1f9638e *** empty log message *** 2000-06-22 19:21:11 +00:00
Jeroen Bensch 0d1fbc4059 This is a logo being randomly generated, if it appears there is a cork stuck
in the pipe and no drop will leak out of it.
2000-06-22 19:19:39 +00:00
Jeroen Bensch 518229c488 Changed my theme so you could vote submissions. 2000-06-13 13:55:21 +00:00
Jeroen Bensch 7ae0cff395 renamed my theme.class 2000-06-05 16:27:20 +00:00