[personal profile] kaigou
I'm trying to get an entry's management & interaction links to repeat at the end of a post. In the S2 code, those show up at the start of the style & then I've duplicated them to repeat as the footer of the post.

code behind cut )
But nothing's showing up in the footer. What am I missing? Any ideas are greatly appreciated, because I'm stumped.
[personal profile] lyssac
I created a custom style before DW went into open beta, based on Core2, with some tweaks to my theme layer.

Despite a few minor changes that I've had to make along the way as the code or my needs have changed, it works out pretty well for me, but I am having a few issues that I hope someone can help with.

1) My header has the navigation links for the journal. They work fine with IE, but are just plain text in FF. I've tried fixing this with z-index:999; in every div I can think of, to no joy. Does anyone have any idea what I am doing wrong?

2)Journal Syndication. I moved this to module 3 and made it part of my footer, yet, I just noticed that it only shows up on the main page. Is there a reason it's not on the entry pages?

Thx.
[personal profile] kaigou
Is there a way to highlight only those comments made by the original poster?

I know at the top of every post/page, there's a variable set for the journal-name, ie "currentJournal": "username", and that in the comments code itself, you'll find lines like:

{span class="poster comment-poster"}From: {span class="ljuser" lj:user="username" style="white-space: nowrap;"}

but is there a way (I guess in S2) to set a style associated with that variable -- where "lj:user" = "currentJournal" -- such that whenever the journal-owner posts, this comment can be offset with a variable style?

(I put tag as 'core2' but not sure that's really appropriate. Seems this should be tagged with something like 'css:alternate' since it's a question of an alt-style for css, but... no idea, really. Alt-tag if you can think of more appropriate slot, thanks!)
[personal profile] nightowl
Hi everyone. I was wondering if there is a way to switch to a new layout/theme, without having to redo all the customizations (for instance, I have custom text replacing the default "Leave a Comment/# comments" and other navigational links, as well as a custom text box)?

Thanks in advance for any suggestions. :)
[personal profile] cesy
I'm trying to create a light-text-on-dark-background theme for Blanket, and having a few problems.

On the calendar page, the years show on the main page background, which makes them unreadable. Can I make them appear on a different colour, or on the entry background, so they can be seen? There's a similar problem with the arrows on month pages, and with "Previous 20" on the Recent Entries.

Also on the calendar page, the days of the week are difficult to read. Which colours do I need to change to alter the background or text colour for those?

Layout info: http://www.dreamwidth.org/customize/advanced/layersource?id=77263
Preview: http://cesy.dreamwidth.org/?s2id=90684
[personal profile] rosefox
I just tried to edit my style and got this error:

S2 Compiler Output at Sun Sep 13 02:31:23 2009
Error compiling layer:

Compile error: line 170, column 5: Can't override property 'font_base_size' of type string with new type int.
S2::NodeProperty, S2/NodeProperty.pm, 120
S2::NodePropGroup, S2/NodePropGroup.pm, 77
S2::Checker, S2/Checker.pm, 374
S2::Compiler, S2/Compiler.pm, 34


Context

166: property string font_base {
167: des = "Default Font for the page";
168: note = "This font will apply to the entire page as the base font. If you set any of the other font properties below, they will override this setting for that specific part of the page.";
169: }
170: property int font_base_size {
171: des = "Default Font Size for the page.";
172: }
173: property string font_header_title {
174: des = "Font for the Header Title";




What I can't figure out is why it expects it to be a string.

To confuse things further, this code has been in my style for ages and has always compiled fine before. It's completely unrelated to what I was changing. In fact, when I refresh the page and then hit "Save & compile" without making any changes at all to my existing and entirely functional style, I get that error.

Any idea how to fix it?

EDIT: I gave up and made all the ints into strings, and it mostly seems to be working okay except that now my menu bar is a million pixels high because it's supposed to be the header font size plus 8 and of course you can't add 8 to a string. I may just have to hardcode that. GRRR.
[personal profile] mmmag
This is a theme layer modification that stops comment indenting after reaching a certain comment depth. You can also customize how much each comment will indent from its parent comment.
code under cut )
[personal profile] zvi
I got the css I wanted to work correctly on Tabula Rasa. see the style live and view user layer source

Now, I'm trying to convert it to a layer and a theme (view style live

If I want the Tabula Rasa stylesheet, do I need to copy and paste that directly into the stylesheet in the layout layer? I used function print_stylesheet () { to include the stylesheet because I thought that would call the Tabula Rasa stylesheet, but it doesn't seem to be working.

Help?
[personal profile] zvi
If I set the custom_css in a theme layer, will it be used when I create a style with the theme layer?

Will I be able to alter the css in the theme via the wizard?
[personal profile] branchandroot
So let us suppose that I'm making a theme for a layout that already uses the print_stylesheet function (a theme for Modish, in the event). Let us further suppose that I want to add a little bit of css to this theme without copying the whole inherited stylesheet just to change one line. Does anyone know of a good way to do this?
[personal profile] zvi
I have added custom CSS to get rid of the internal borders on the control strip to my style. The borders are back, and I can't figure out what to do to get rid of them. Any suggestions?
[personal profile] nightowl
Hi all,

Does anyone know how to get the Transmogrified theme to display the journal subtitle? I've been looking and looking for CSS that would do this, since I figured it'd be relatively simple, but apparently not? I would appreciate any help that is offered. Thanks so much!
[personal profile] rosefox
I have a heavily modded LJ style that I've been trying to port over to DW. I've pretty much been successful, except for the menubar. Here's the code in the LJ style:

    foreach var string v ($.views_order) {
        if (lang_viewname($v)!="") {
            print "<li><a href=\""+$.view_url{$v}+"\">"+lang_viewname($v)+"";
        }
    }


On LJ, this outputs links to /, /calendar, /friends, and /profile.

On DW, the views seem to have been updated to include a link to /tag and /memories. This is great, except that I cannot for the life of me figure out how to change the text of the link from "Tags" to something else. All the names are set earlier in the style:

    set text_view_memories = "pressed flowers";
    set text_view_friends = "other gardeners";
    set text_view_archive = "growing cycle";
    set text_view_recent = "fresh cuttings";
    set text_view_userinfo = "genus";


but no matter how I set text_view_tags and text_view_tag, the /tag link still shows up as "Tags".

Any idea what the name of that variable would be, so I can set it? It's a little cosmetic thing, but it really annoys me.

Thanks for the help!
[personal profile] lastdance
I've been reading S2 documentation like crazy, and I'm pretty sure the answer is 'no' but I'm going to throw out the question anyway:

Is there any possible way to call functions from a different view than the one you're currently on? For example, the EntryPage class has a function print_comments. But what if I want to print the subjects of the 5 latest comments on the Recent view (maybe in the sidebar)? The RecentPage class doesn't include that function, so I'm assuming there's no way to call it unless the core was rewritten to add it into RecentPage and allow it to take parameters so it knows which comments to pull back. Am I correct in that assumption?

I'll gladly take the question elsewhere if this isn't the right place. Any direction would be so much appreciated.
[personal profile] dantean
Good day, all! :)

I installed one of the layouts from thefulcrum, following the instructions to port the MixIt layout over to dreamwidth. (This layout.) The layout shows up (presumably) as it's supposed to but I want to know how and if I can make a few modifications:

1) The footer links are... well, too numerous: I only want the "post comments", "view comments", "edit entry", "edit tags", and the permalink to the entry. The others I want gone. Tried to delete them from the custom layer but it... didn't seem to work.

2) The usernames and community names don't seem to show up properly. On my Reading page, only usernames show up in posts to communities, and in individual posts there is no username showing. I want to be able to see the username (and community name, if applicable) underneath the icon (if there is one).

3) Date/time! I want 24 hour time and the full month -- so, basically, "posted at 14:43 on 3 May 2009". I attempted to do this but apparently the dates on dreamwidth are formatted differently than on lj, and I couldn't find documentation on the dreamwidth site to fix it.



Suggestions on how to proceed or even places I could ask about it are appreciated (as the layout maker won't provide help on further modifications to the layout). If this were on lj, I'd go to the everything_lj comm, but I doubt that they'd appreciate questions on a different journaling site. ;)


Thanks!


eta: I think I'll .. give up on the customisation for now, as dreamwidth doesn't appear to allow free accounts access to creating/editing custom layers anymore. :\ I just got a message when I tried to use the fix in comments that my account type doesn't permit that feature. I was just using it an hour ago, too!

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Syndicate

RSS Atom

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 8th, 2025 12:48 am
Powered by Dreamwidth Studios