Problem with custom layer and comments linkbar

May 15, 2014 18:56

I suppose it's the result of LJ's new default layout, though that shouldn't mess with my custom layer and customised comment pages.
Until yesterday, the ugly images for deleting, screening etc. comments had been replaced by my own images; now the default ones are showing again.



This is the code I have in my layer. Does anyone know how to makes this work again?
Thanks a lot in advance. :o)

function Comment::print_linkbar () {
var string{} link_text = {
"edit_comment" => """http://ic.pics.livejournal.com/darciana/13658095/7029/original.gif" border="0" title="Edit Comment" />""",
"delete_comment" => """http://ic.pics.livejournal.com/darciana/13658095/6699/original.gif" border="0" title="Delete Comment" />""",
"spam_comment" => """http://ic.pics.livejournal.com/darciana/13658095/287232/original.gif" border="0" title="Mark as Spam" />""",
"freeze_thread" => """http://ic.pics.livejournal.com/darciana/13658095/7405/original.gif" border="0" title="Freeze Thread" />""",
"unfreeze_thread" => """http://ic.pics.livejournal.com/darciana/13658095/100310/original.gif" border="0" title="Unfreeze Thread" />""",
"screen_comment" => """http://ic.pics.livejournal.com/darciana/13658095/7548/original.gif" border="0" title="Screen Comment" />""",
"unscreen_comment" => """http://ic.pics.livejournal.com/darciana/13658095/99810/original.gif" border="0" title="Unscreen Comment" />""",
"watch_thread" => """http://ic.pics.livejournal.com/darciana/13658095/7863/original.gif" border="0" title="Watch Thread" />""",
"watching_parent" => """http://ic.pics.livejournal.com/darciana/13658095/7863/original.gif" border="0" title="Watch Parent" />""",
"unwatch_thread" => """http://ic.pics.livejournal.com/darciana/13658095/99994/original.gif" border="0" title="Unwatch Thread" />""",
};

var Link link;
var string url;
var string text;
foreach var string link_key ($.link_keyseq) {
$link = $this->get_link($link_key);
$url = $link.url;
$text = $link_text{$link_key} != "" ? $link_text{$link_key} : $link.caption;
if (defined $link) {
"""$text """;
}
}
}

link to custom layer

comments

Previous post Next post
Up