Archive for mai, 2005

NOW you can comment

tirsdag, mai 31st, 2005

* “Wash” comment fields (they don't really work right now)
-Done
* Show “stripped” comments directly in each users blog?
-Done
* Make headlines clickable to permalink
-Done
Tomorrow and further I will (maybe):
* Make a smarter user interface for users (make links the right places)
* Tidy up links vs. trackback, this is a mess, you can't mix them, stupid
* Make some system for the user to choose who to trackback when. This is hard. Have to think about this.
* Allow trackbacks to user? Might be tricky, I don't know yet.
* Make links directly to mpeg4-files for download, viewing, etc.
* Have a look at SMIL again, check what quicktime 7 is up to? Probably nothing new.
* Check out (simple) routines for anti-spam. What about generating image of a couple of numbers?
* Fix bug with break-tag in edit-mode

Pfffff

fredag, mai 27th, 2005

I realize that this is not a blog, not a vlog, vblog, vog or anything else remotely like that. Not to me at least. Yet. Right now, all I can do is trackback other people's blogs. I need to be able to make a conversation, then I'll be happy. This hasn't been prioritized enough. FIX THIS.

I wonder if I should make permalinks look like this: user.vided.org/archive/85_This_is_the_subject.

What do you think? Nah, I will never know, because you can't comment, you cannot trackback. You actually have to write an e-mail. Bahh, like if. E-mail is sooo last-century. Whatever.

Wildcard DNS and personalized content

fredag, mai 27th, 2005

I'll spread the word about something I find appealing: Personal subdomain with personalized content. I'm using the following methods:

Apache
Add these lines to the configuration file, httpd.conf.

#

Options FollowSymLinks
AllowOverride All

#

The “AllowOverride All” makes it possible to use .htaccess files. This is an example of such a file:

#

ForceType application/x-httpd-php

#

This allows me to create a file called “rss” and still let it be treated as a PHP-file. This makes it possible to create nicer links, like user.vided.org/edit instead of user.vided.org/edit.php. I also use this method with the RSS-feed, user.vided.org/rss.

OK, even more fun is this. Make ALL subdomains point to your server. You have to setup DNS like this: *.vided.org. (A-record) IP-address. Read more about this with a simple google-search: wildcard DNS. Or read this.

You have to setup a virtual server in your Apache config again by editing the configuration file, httpd.conf. Add these lines (example):

#

DocumentRoot /where/your/www/data/is/located/subfolder/
ServerName subfolder.vided.org
ServerAlias *.vided.org
#The customlog is another story, but worth checking out.
#CustomLog /somewhere/log/httpd-users.vided.org.log combined

#

Now ALL subdomains point to a subfolder of your choice. Nice! This makes misspelled addresses like “ww.vided.org” get to your server. But it is still some way to go before this is _really_ fun. Let's make some PHP code…

// get server http request info (subdomain)
$serverhost = explode( '.' , $_SERVER["HTTP_HOST"]);

// Actually this is a "hack". It gets the first word/phrase before a "."
// This means that both anna.vided.org and anna.is.really.stupid.vided.org
// leads to the same content.

// get subdomain
$subdomain = $serverhost[0];

// get server http request info (example: getting info from "user.vided.org/archives/37")
$uri = explode( '/' , $_SERVER["REQUEST_URI"]);

//This gets the complete address like "archives/37"
$completeuri = $_SERVER["REQUEST_URI"];

// This should get "archives"
$function = $uri[1];

// This should get "37"
$archivenumber = $uri[2];

?>

OK, now we've got a script that can tell us what the user typed. This can be used in SQL-queries, which I do. I serve the vlog of the user “ag” when you type “ag.vided.org”. And whenever you type ag.vided.org/rss, you get the RSS-feed from ag.

Trying imagecreatetruecolor() instead

fredag, mai 27th, 2005

In case you wondered. Stupid me, I was using imagecreate().

Also, for this testing purpose, I'm using pictures taken with my Nokia 6230 cellular. I will supply better quality pictures another time :-)

Quality-issues….

fredag, mai 27th, 2005

I think I have to work a bit more with this image compression… I thought PHP's GD-library should be fairly OK. Or is it something else? Anyway, trying again, this time using “best quality” compression.

And deletion of posts as I mentioned yesterday, I've got to do that as well. Just reminding myself… ;-)

Another feature: pictures!

fredag, mai 27th, 2005

I just learnt “more code, more bugs” at a security seminar, and I'm afraid that's correct. Even though, I had to write some more to include picture uploading and scaling. I'm testing this now.

Check out the link to my friend's pictureblog, “Our endless numbered days”, where I got my inspiration to make these picture-functions :-)

Edit functionality

torsdag, mai 26th, 2005

I guess it's laughable, but _now_ you can edit your own postings… Which means that you still can not _delete_ them, I realized now. But that will get fixed right away.If you've got a beta user, check out http://username.vided.org/editI'm still struggling with trackbacking. You can ping blogs but I cant get pings to technocrati to work, and that was sort of my plan… Another issue I plan to look into is “accepting pings”. More on this issue later.

Another trackback

fredag, mai 20th, 2005

Trying something different…

OK, I think trackbacking works now, now I need to get this thing to accept trackbacks from others as well as a lot of other details…. (the web-link points to wrong place)

Trying trackback functionality

fredag, mai 20th, 2005

I'm trying to trackback this url, which you can go here to see if it works…..

Bit by bit

fredag, mai 20th, 2005

Finished search feature yesterday, improved it a bit today, and now also the tagging system works more or less as intended. All users can edit their own video clips' names + tags. All users can add tags to other users' clips. Now I guess I need to improve search capabilites/possibility by other search engines. I don't quite know how. Should I list tags below each videoclip in each users vlog? Or only list tags in the RSS-feed? OK. Maybe I should wait with this, and go for trackback support.