Commit Graph

720 Commits (54a4f06ce4b289b7ff6f9f24b283c5cadccf6382)

Author SHA1 Message Date
Steven Wittens 5f1f1b88ed Theme update:
- added a small 'info header' in comments... might be better for when we get more themes.
2001-03-20 20:45:21 +00:00
Steven Wittens c0751ec2b2 theme update:
- removed the department stuff
 - boxed the comment controls
2001-03-20 18:10:03 +00:00
Dries Buytaert a6466b68e0 - removed useless slashes 2001-03-19 10:07:15 +00:00
Dries Buytaert 8113d31f3b - update 2001-03-18 08:44:01 +00:00
Dries Buytaert 47f3e8f6bf - small wishlist updates 2001-03-16 11:51:40 +00:00
Dries Buytaert b156f83be8 - added drupal 2.00 2001-03-15 11:24:15 +00:00
Dries Buytaert 33585d6d39 *** empty log message *** 2001-03-14 20:45:39 +00:00
Dries Buytaert dfe85cca4a - fixed small bug in submit.php 2001-03-12 18:52:38 +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
Dries Buytaert ef0e2d167b During my nigthly session I fixed a few glitches in the example theme.
Read them carefully because the other theme might need updating too (I
don't think so though).  I could only commit it now because I didn't
had the time to write up these comments/remarks yet.  So here goes:

1. the comment() function only takes 2 arguments - $thread is no longer
   needed and shouldn't be used in the code either.

2. I added 2 COLSPAN's to fix a <TD> problem in the story() function.

3. <A HREF="">home</A> is will not work properly when using drupal in
   a subdirectory!  Simply use <A HREF="index.php">home</A> instead -
   it does matters. ;-)

4. Removed the $timestamp = format_timestamp(...)'s and used them
   "directly" just like this is done for format_username and others.
   It's generally more consistent now. :-)
2001-03-12 16:40:33 +00:00
Dries Buytaert a4b93e3cc4 - forgot to commit this last night but this should fix deekayen's small
Windows glitch
2001-03-12 14:53:13 +00:00
Dries Buytaert 425533cc05 - fixed bug in headline module 2001-03-11 22:29:30 +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 f6fd5e1231 Hey,
Ehm in affiliate-sites and dupal-site we use SCRIPT, but w3 complained about the fact that there was no TYPE attribute specified with SCRIPT, I added SCRIPT=\"\" with both tags... (I have no clue what type of script we are using but at least this fixes a bug :)) It worked here locally, let's hope it still does on the wired...

Also I corrected a </TTH> into a </TH> somewhere in the code of one of the modules, my eye just caught it, nothing special ;)

Jeroen.
2001-03-11 20:18:02 +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 f9841d8aac Hi,
OK and this should be marvin.theme. We gained like 20 lines or so. But there aren't many graphics in marvin and a lot of stuff I'd put on several lines, Dries doesn't. Nevertheless, a good optimalization. Glad Dries came up with this. :)

Jeroen.
2001-03-11 11:06:49 +00:00
Jeroen Bensch d7a363338d Hi,
OK I fixed UnConeD's theme. Let's hope I didn't break anything. It were 256 lines and now there are 227 left. A save of 30 lines. Not too bad huh?
Let me check Dries' theme now.

Jeroen.
2001-03-11 10:56:43 +00:00
Dries Buytaert 266167b976 - fixed small glitch as a result from David's patch 2001-03-10 18:46:47 +00:00
Dries Buytaert 8af189197e - fixed "AdNewz.com" vs "ADNEWS.COM" glitch reported by Peter Beckman 2001-03-10 18:38:47 +00:00
Jeroen Bensch 02e344403a OK, lets hope this works... I should've added a directory example/ in themes/ and in example/ there should be example.theme
Jeroen.
2001-03-10 15:14:08 +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
Dries Buytaert accd5f0c31 - applied David Norman's patch to turn all <?'s into fully qualified
<?php's.
2001-03-10 11:07:52 +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 5d08572dc6 - fixed two-side-bar-theme-bug-with-latest-headlines 2001-03-08 21:00:28 +00:00
Dries Buytaert a1b158334a - more small improvements 2001-03-08 19:30:41 +00:00
Dries Buytaert b109bb8644 - small improvement to box module 2001-03-08 18:06:14 +00:00
Dries Buytaert 216714b7b6 - a couple of small improvements 2001-03-08 17:58:52 +00:00
Dries Buytaert fc6eaa5e83 *** empty log message *** 2001-03-08 17:44:10 +00:00
Dries Buytaert f83b469919 - bugfix 2001-03-08 17:36:18 +00:00
Dries Buytaert f036327299 *** empty log message *** 2001-03-08 17:32:11 +00:00
Dries Buytaert 87916cf8bb - small bugfix 2001-03-08 17:30:41 +00:00
Dries Buytaert 3d78f736e1 *** empty log message *** 2001-03-08 10:49:26 +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
Dries Buytaert f516626a29 A rather large and important update:
revised most of the SQL queries and tried to make drupal as secure as possible (while trying to avoid redundant/duplicate checks).  For drupal's sake, try to screw something up.  See the mail about PHPNuke being hacked appr. 6 days ago.  The one who finds a problem is rewarded a beer (and I'm willing to ship it to Norway if required).  I beg you to be evil.  Try dumping a table a la "http://localhost/index.php?date=77778;DROP TABLE users" or something. ;)
2001-03-07 21:29:40 +00:00
Dries Buytaert 2b2e81f6cf - fixed visual flaw in error output:
$host -> $url[host]
2001-03-07 10:49:28 +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 d684b1f10a - various smaller updates before I start watching Formula 1 with [a] a
0.5 liter box of Haagen-Dhaz (Belgian Choclate) and [b] my laptop on
  my lap for drupal hacking.  Life hardly can get any better than this.
2001-03-04 12:06:13 +00:00
Steven Wittens 167594dc09 Added "db_insert_id()", a wrapper for mysql_insert_id(); 2001-03-03 22:59:11 +00:00
Dries Buytaert ecc651d83d - added a new faq module with administration interface 2001-03-03 15:31:51 +00:00
Dries Buytaert dba7342183 code revision:
- shortened and improved the code
2001-03-03 15:31:01 +00:00
Dries Buytaert 16e6b6f137 code revision:
- fixed a "visual-quote-glitch", i.e. a missing stripslashes()
2001-03-03 15:30:15 +00:00
Dries Buytaert 87cfda720e code revision:
- small "path"-fix with logo which could have triggered when running
    drupal in a subdirectory
2001-03-03 15:28:52 +00:00
Dries Buytaert 07cccc9e55 - renamed upgrade file 2001-03-03 15:27:00 +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 74d3c351ce - Took all "rating logic" out of the account.module and moved it into
a seperate module called "rating.module".  This should allow people
  to experiment with different rating heuristics/algorithms.

- The rating module also generates a "Top 100 users" page, see:
     http://drop.org/module.php?mod=rating

- Adjusted ./scripts/php-clean to ignore png files.
  (I should do it the way around and make it ignore everything but
  our php files.)
2001-03-03 11:44:51 +00:00
Steven Wittens 4df5b8532a Added 3D drop :) 2001-03-02 23:23:57 +00:00