txema,
October 14, 2002 at 10:54:36 AM CEST
photoframe In the stylesheet: .photoframe { padding: 4px; background-color: #eee; border-color: #ccc; border-width: 2px; border-style: solid; } In the history: < % image name="nameoftheimage" class="photoframe" % >
link
(no comments)
hns,
October 12, 2002 at 6:33:11 PM CEST
Creating stories offline One major annoyance when creating offline stories is that one does not get to the freshly created story, but to the story manager instead where you have links to edit/delete/publish the story, but can't read/view the story in its full presentation. The way I see it, creating stories offline often serves the purpose to re-read the story before publishing it - yet to do this, one has to click several times between the story manager interface where stories are set online and the story view where the story can be read/viewed. I tried to fix this and I'm asking whether you agree that what I came up with is preferrable to the status quo. Here's what's changed:
With these changes, creating a story as offline is equivalent to seeing a preview before publishing, with links to either do some more editing or set it online. What do you think?
nex,
October 11, 2002 at 1:55:53 PM CEST
prototype implementation of autoTitle this belongs to this story, but it's too long for the frontpage and to wide for a comment, so i put it here :-) i implemented the feature mentioned there in my local antville installation by modifying
function link_macro(param) { if (param.checkdeny == "true") { if (this.isDenied(session.user)) return(""); } var content = param.text ? param.text : param.to; param = this.createLinkParam(param); openMarkupElement("a", param); res.write(content); closeMarkupElement("a"); } and the new version: function link_macro(param) { if (param.checkdeny == "true") { if (this.isDenied(session.user)) return(""); } var content = param.to; if (param.text) { content = param.text; } else if (param.autoTitle != "off") { var linkTitle = this.linkTitle(param.to); if (linkTitle) { content = linkTitle; } } param = this.createLinkParam(param); openMarkupElement("a", param); res.write(content); closeMarkupElement("a"); } and here's /** * return title of linked object or null if it has no * title. * so far, only titles of stories are extracted, but this * could be extended to also return titles of topic-frontpages, * external html pages (those titles would have to be * cached) etc. */ function linkTitle(url) { if (!url) { return null; } var iFirstSlash = url.indexOf("/"); if (url.substring(0, iFirstSlash) != "stories") { return null; } var rest = url.substring(iFirstSlash + 1, url.length); var storyNum = parseInt(rest); if (isNaN(storyNum)) { return null; } var story = path.site.stories.get(String(storyNum)); return story.getContentPart("title"); } hope this helps. i'd love to see that in antville!
link
(no comments)
nex,
October 11, 2002 at 1:46:51 PM CEST
autoTitle when i link to a story like this:
< i' posted a working implementation of this feature there.
nex,
October 8, 2002 at 12:43:59 PM CEST
improve search engine compatibility if you have topics with spaces in them, the respective stories have URLs with spaces in them, which have to be encoded. antville does this properly with "%20", but some inferior search engines convert them to "+" signs, resulting in a 404 when the user wants to follow the link. maybe the server can be told to detect such faulty URLs and rewrite them or just redirect to the proper location? this would be trivial to do in the apache conf, but even nicer if antville did it, so everyone who downloads antville automatically gets this feature.
mikeysa,
September 30, 2002 at 12:01:34 PM CEST
Sub-topics? Is there a way to create or list stories by sub-topics. ie... instead of having your stories under the topics: party pics party people party dates help general help faq is there a way to define subtopics sop it displays as party (which clicked shows the subtopics:) ---pics ---people ---dates and help (which clicked shows the subtopics:) ---general ---faq ??? -Michael
nex,
September 23, 2002 at 8:08:09 PM CEST
Colour Modification Parameters Colours. On Antville, you have a background, title, text, small text, link, active link, and visited link colour respectively. If you edit the style sheet, you can invent new classes and make up even more colours. You can have seperate colours for questions, answers, tips, alerts, dreams or stories. You can define your very own colour scheme. Now what if your visitors could choose from one of several ready-made colour schemes and pick the one that fits their mood best? What if you had an image with a whole rainbow in it and your visitors could click anywhere to make the whole site that colour? Phew, lots of work, you might think, you'd have to define all those colour schemes. Well, no, you don't have to. You can use colour modification parameters. You can tell your Antville site that links should be the same colour as your text, just a little brighter and a bit more saturated, more tinted. You might figure the background could be the inverse colour of the text, so there's a good contrast, but as it turns out that that doesn't look too good, you specify that it shouldn't be as saturated, but paler, almost grey. And finally you set your titles to be like the text, just a bit darker and with a slightly different hue, a little greener. That's exactly what you did when you set up your *.antville colour scheme? Sure, but if you tell the system about those considerations, you can change your text colour, and everything else will adapt accordingly. Woo-hoo! |
The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8357 Days
last updated: 1/4/11, 10:22 AM Youre not logged in ... Login
... home
... topics ... galleries ... Home
... Tags
... Galleries
... about antville ... download ... macros.antville.org ... help.antville.org ... translate antville! ... antville home
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)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)
|