 |
KenoshaKid, Dienstag, 11. Dezember 2007, 15:48
mks @ 25k posts
hohoo - looks like [mks] will see its 25.000th post this or next week. [ 1]
What a tremendous number of marvelous pictures, ideas and conversations.
Congrats to ya'll
-- KenoshaKid
link (no comments) ... comment
KenoshaKid, Sonntag, 2. Dezember 2007, 12:32
'redirect' switch
Say, after creating a new story you want to redirect the user to the frontpage instead of presenting the rendered story. Because of editor actions are redirects built-in to the app source we need a snip of javascript to make it work the way we want.
We can use the <% response.message %> macro - it usualy displays status messages above the main content area, depending on the action and the success state of the action. That messages are strings, defined in the 'messages.properties' file of the blog-default language. [1]
E.g. successfully creating a new story sets the response.message to the value of 'confirm.storyCreate'.
This is just what we need to create our own redirect-hook. Whenever a new page is loaded, we check for the value of response.message and let our own action roll.
Example code works like so:
<html>
<head>
<script type="text/javascript">
var msg = "<% response.message %>";
function check_message() { if (msg == 'The story was created successfully.' || msg == 'Die Story wurde erfolgreich angelegt!') {window.location.href='<% site.url %>'}
}
</script>
</head>
<body onload="check_message();">
...
</body>
</html>
link (no comments) ... comment
KenoshaKid, Dienstag, 27. November 2007, 18:18
antville.TagCloud
hey, i wanted to do that since a very long time, but never came around to it.

The antville.TagCloud is currently in beta and while i am testing a few more, tricky features, here is some documentation on the widget.
- - - - - >< - - - - -
The base data is the feeds and change-date information provided by antville.org - so, in a way we are taking the blogs subdomain names for tags themselves. The result is a visualisation of how often a blog is changed over time. The data is aggregated and a Javascript file is written every 10 minutes. That file can be included/called from your skin using a script tag, a user defined stylesheet can be applied to the data, like so....
<style>
#antville_tagcloud {font-family: sans-serif; width: 170px; border: 1px dotted #ccc; padding: 9px; line-height: 9pt; text-align: justify;}
</style>
<script type="text/javascript"
src="http://d2m.at/~d2m/antville_tagcloud.js"></script>
- - - - - >< - - - - -
That's all for now, a demo is available at the smileys blog - comments are welcome.
-- enjoy
link (3 comments) ... comment
Next page
|
|
 |
Online for 2243 days Last update: 2008.05.09, 08:12 »Preparing for sodium amytal«
Youre not logged in ... Login
| Juli 2008 |
|---|
| Mo | Di | Mi | Do | Fr | Sa | So |
|---|
| 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 10 | 11 | 12 | 13 | | 14 | 15 | 16 | 17 | 18 | 19 | 20 | | 21 | 22 | 23 | 24 | 25 | 26 | 27 | | 28 | 29 | 30 | 31 | | | | | Dezember | | |
|