[theme] - [linkbar/metadata handling]

Dec 05, 2006 12:25

to make sure that these work, make sure that the function that prints entries calls Entry::print_linkbar() and Entry::print_metadata(). also make sure that Entry::print_comment(Comment c) calls Comment::print_linkbar().
cut )

class comment, function print_metadata, class entry, function print_linkbar

Leave a comment

Comments 10

(The comment has been removed)

kunzite1 December 5 2006, 23:28:23 UTC
it works great in bloggish because that's what i used to create it. ;)

and thanks!

Reply


av8rmike January 17 2007, 14:02:00 UTC
In re-working the print_metadata() function for Expressive, I think I found a bug. Maybe it's different in Bloggish, I don't know. Anyway, if not all of the $.metadata fields are filled, the last known value repeats until the foreach loop is finished. In my version, I fixed it with:
if($val != "") {
# build meta row
$meta = """$meta_label_open$label$meta_label_close$meta_val_open$val$meta_val_close""";
} else {
# don't add row if there's missing meta
$meta = "";
}I guess you could fix it some other way, like adding the long string directly to $currents and not using the $meta variable at all.

Reply


(The comment has been removed)

kunzite1 February 14 2007, 02:40:50 UTC
i think that was a redundant check from stale code.
removed the check.

Reply


ex_uniquewo February 13 2007, 17:40:22 UTC
Unless I'm mistaken, tags are not printed when they're the only metadata present in the entry.

Reply

ex_uniquewo February 13 2007, 17:52:34 UTC
I think it's because of:
if ($have_meta) { }

Since size($.metadata) = 0 when you've got tags only and since tags are not printed if $have_meta == "", you're fucked.

Reply

kunzite1 February 13 2007, 21:42:51 UTC
you are correct. o.0

i'll have to fix that! XD

Reply


scotchsour August 18 2007, 22:30:01 UTC
I think this is great but I am driving myself mad trying to figure out where is my mood icon? I had it on the left with carriep63's version but I can't figure it out in yours...

Reply

kunzite1 August 19 2007, 11:41:57 UTC
you know what? that's a good question.

i almost never use or pay attention to mood icons. this code in fact does not account for such an object...

oops. will have to fix later. in a couple days, if i remember, i'll get that done.

Reply

scotchsour August 19 2007, 20:53:50 UTC
Thank you, I'm glad I said something then. :)

Another question about the link bar section. When you go leave a comment (i guess the comment page) I can't figure out which part of the code to remove to get rid of the text links if I have the picture version all ready there.

Reply

scotchsour August 25 2007, 16:59:28 UTC
When you have time could you tell me how to add the number back to the comments so I don't just see a picture or need to pass over to see if somebody answered.

Reply


Leave a comment

Up