Antville Project

update coming!

i'm gonna update antville in the next days, and i'll have to warn you before: the structure of skins has changed, which will most likely harm all weblogs hosted here. sorry for that. i'll try to do the basic changes in the database, but there will be some work left for you. this change was necessary to minimize the repeating layout-work in several skins (i.e. including the header-skin several times ...). to make things easier i rewrote the skinmanager and tried to explain what skin is used for what.

to make the update easier for everybody, i did some other things:

  • thumbnail-support: if you created a thumbnail for one of your uploaded images, you can now add them into a story by simply using <% weblog.thumbnail name="[image-name]" %>. this thumbnail can be linked to an external url, but if not it will link to a popup with the fullsize-image :-)
  • admins can now edit comments of others ...
  • There is a default-format for dates/timestamps now included in weblog-preferences. if no format-attribute is defined in a macro-call, this format will be used. if it's not defined, the system-default will be used (thanks tobi!)
  • Uploaded animated GIFs will not be crapped anymore. But resized animated GIFs will still be crapped (= the animation will be lost!). This means that the thumbnail of animated GIFs won't be animated, but the fullsize-view of it will be (thanks henso!)
  • There is a new macro called "logo" with which you can (and hopefully will) include one of this nice antville-buttons/logos that claudia made for us. just use <% logo name="[big|small|smalltrans|smallstraight|smallchaos]" %>.
  • the form for adding comments can now be placed into the story-fulltext
  • long words without spaces in the "recently modified"-box will now be wrapped because of <wbr>-tags (does this really work with all the browsers you're using?) thanks tobi!
  • I added a first version of an URL-autodetection in comments. That means that if someone pasts a URL into a comment, it will transform to a linkmacro-tag. If one writes a normal html-link, it will also be transformed to a linkmacro-tag. Please tell me if you detect any errors (and this is a big thanks to andi)

so due to the change of the skin-structure in antville i'll wait a few days with this update. PLEASE NOTE!!! if you really care about the design you gave your weblog you should save the source of your skins somewhere as files on disk (because some of them won't be editable anymore!). And as always: i'm happy to hear from you!

comment    

 
tobi, September 6, 2001 at 8:52:47 AM CEST

cool

very nice, i am looking forward using the update!

ad <wbr&gt: should work at least with navigator and explorer versions 2 and higher.

i am curious about the url autodetection. sounds a little bit strange, to enter a url and get a macro afterwards... ain't that confusing? we'll see.

link  

 
robert, September 6, 2001 at 11:05:09 AM CEST

thanks

the url-autodetection might be confusing, but i found no other way than changing them into a macro-tag, and urls can appear in very different contexts (i.e. in a macro-tag, in a simple >a href-tag, ...). we'll see ;-)

link  


... comment
 
hns, September 6, 2001 at 4:06:11 PM CEST

Great!

I just upgraded my internal installation (unfortunately hopdev is not reachable from outside helma at the moment) and it looks great! Especially the skin manager is much much better. One strange thing is that the Auto-URL only works in comments, but not in stories. I guess that the idea is that story authors are supposed to write full HTML tags ... not sure if this assumption holds ;-)

link  

 
kris, September 6, 2001 at 4:24:20 PM CEST

should work everywhere

i agree with hannes. at least two of my friends have no idea about html. i always add links to their stories and delete the trailing whitespace (usually cr).

i haven't seen the auto-url yet, but i know manila, graymatter and a lot of message board softwares do it. maybe you can look how they did it. what happens, when i edit an old message with urls in the text? will i see the macro or the original message.

btw, what do you think about a simple macro for simple image inclusion (without alignment options)?

link  

 
hns, September 6, 2001 at 4:46:06 PM CEST

Hm, the text is actually changed to contain the macro instead of the URL, which is not very good IMHO. Robert, why not perform a regular expression based substitution like gong does? It's pretty reliable about only linking "free-standing" URLs, i.e. the ones that aren't already in an HTML tag or macro. If you wish, I could port this code to antville.

link  

 
robert, September 6, 2001 at 9:12:35 PM CEST

feel free to change it.

link  

 
hns, September 7, 2001 at 2:59:25 PM CEST

Got it!

I pretty much took your formatLinks() function, but call it when the text is rendered instead of at when it's posted. I've found a way to make sure only "free-standing" links are linkified by adding (^|\s) (beginning-of-line-or-whitespace) to the beginning of the pattern.

Funnily, since whitespaces are used both to recognize beginning of links and ends of links, I have to run the pattern twice ;-)

/**
 * function activates URLs to HTML link tags
 */
function activateLinks (str) {
   var pre = "<a href=\"";
   var mid = "\">";
   var post = "</a>";

   var l1 = new RegExp("(^|\\s)([fhtpsr]+:\\/\\/[^\\s]+?)([\\.,;\\)\\]\"]?(\\s|$))");
   l1.ignoreCase = true;
   l1.global = true;
   
   // this is odd, but we have to run the regexp twice to catch URLs 
   // which imediately follow each other. This is because the leading 
   // and trailing whitespaces are part of the expression, and if there's only 
   // one whitespace character between two URLs, the first match eats it up 
   // and the second URL doesn't match.
   str = str.replace(l1, "$1" + pre + "$2" + mid + "$2" + post + "$4");
   str = str.replace(l1, "$1" + pre + "$2" + mid + "$2" + post + "$4");
   return (str);
}

It's in the CVS now.

link  

 
robert, September 7, 2001 at 5:05:47 PM CEST

great!

big thanks for it!

link  


... comment
 
kris, September 6, 2001 at 11:16:45 PM CEST

READY!

I saved all my modifications.

link  

 
robert, September 7, 2001 at 9:30:42 AM CEST

bueno

i'll try to update antville on the weekend.

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8551 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
November 2024
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher