?

Log in

No account? Create an account

Previous Entry | Next Entry

Screened comments

  • Sep. 25th, 2007 at 8:51 PM
Is it possible, when an entry has screened comments, to not have the text 'w/ Screened' in the links?

Also, is there a special CSS class for screened comments so one can modify them?

I have a paid account with a layer.

Tags:

Comments

( 5 comments — Leave a comment )
av8rmike
Sep. 25th, 2007 08:18 pm (UTC)
1. Put this line somewhere in the theme layer:
set text_month_screened_comments = "";

For 2., there is no separate CSS class; it's done with inline styling, and the classes and IDs change with each comment. So, you can't even use an !important somewhere to override. You'll have to override the EntryPage::print_comment function.
gawariel
Sep. 25th, 2007 08:49 pm (UTC)
1. That doesn't seem to work...
I edited the entry to add the layer.
I also posted a public entry in my journal. When you look in my recent entries page at the comment links, you see '1' then the image for read a comment and then 'w/ Screened' followed by the other images/links.
That's the screened text I want to remove...

2. How exactly would I do that?
I'm good with CSS, but not so much with layers :/
gawariel
Sep. 25th, 2007 09:08 pm (UTC)
Darn, *slaps forehead*. Of course you won't see the 'w/ screened'. Here's a screenshot.
av8rmike
Sep. 26th, 2007 12:47 am (UTC)
I know I wouldn't be able to see it. ;) But that's strange, it's working for me. Maybe try putting it higher up in the layer, before all the functions? Did you try putting a different string in between the quotes?

2. Here are the first several lines of the function (it's very long and I don't feel like copypasta'ing the whole thing). However, you'll have to go to the layout source (it's almost at the bottom) and copy all of it to your layer.
function EntryPage::print_comment(Comment e) {
    var string barc = "comment-" + ($e.depth % 2 ? "odd" : "even");
    var string screenbarc = "";
    var string borderwidth = "";
    if ($e.screened) {
        $screenbarc = "style=\"border-width: 3px; border-style: dashed\"";
    }
    var int num = 0;

... Rest of function below...
The highlighted line is the one that controls the inline styling, which you'd have to change.
gawariel
Sep. 26th, 2007 06:55 am (UTC)
1. I put the line completely at the top of the layer and now it works! Thanks ^_^.

2. Worked like a charm!

Thank you for your help!
( 5 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars