afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] dw_styles2009-04-25 05:20 am

Core1 ported styles reading page problems

So in the latest code push, we fixed an issue where the "friends" terminology was still hanging around, and replaced it with "read". This caused the logic on the reading pages of some ported styles to not work right.

The most common manifestation of this is that usernames of entry posters on the readpage and /network disappear, making the page look like your recent entries page.

Quick fix, look for:

$p.view == "friends".

It may show up also in other forms such as $.view == "friends", or also $p.view != "friends", etc)

Replace that with the relevant line below, including parentheses:

($p.view == "read" or $p.view == "network")
($.view == "read" or $.view == "network")
($p.view != "read" and $p.view != "network")

PS. We also fixed a bunch of Transmogrified issues, including putting the most basic wizard options in -- num_items_reading, num_items_recent, use_journalstyle_entry_page- -, and the huge whitespace after every username in a comment. And [personal profile] av8rmike has been awesome at polishing away some rough spots in the Negatives CSS.

As always, we're working on fixing bugs and improving the style system. No new features until we've reached Open Beta (seven days away!), but once we're safely into Open Beta, we can focus on implementing richer features. Custom text modules come to mind (though we're not stopping there)!

ETA If your style has both, make sure that you edit both your layout layer, and your theme layer
ETA: 2010-09-07: added network
anotherslashfan: sign reading practice random kindness (nuff said)

[personal profile] anotherslashfan 2009-04-27 09:12 am (UTC)(link)
thanks for the fix, worked like a charm!
stormy: βͺ ππŽπ“πˆπ‚π„ ❫ 𝑫𝑢 𝑡𝑢𝑻 𝑻𝑨𝑲𝑬 𝑴𝒀 𝑰π‘ͺ𝑢𝑡𝑺 ⊘ (Default)

[personal profile] stormy 2009-05-01 05:49 am (UTC)(link)
Thanks for the tip! That was driving me crazy!
gelydh: (Default)

[personal profile] gelydh 2009-05-01 06:41 pm (UTC)(link)
Thank you so much for this!
jeeps: (Default)

[personal profile] jeeps 2009-05-02 07:11 am (UTC)(link)
ugh, you are a living miracle. that was driving me bonkers.
karanguni: (Default)

[personal profile] karanguni 2009-05-02 07:57 am (UTC)(link)
You are my saviour!
carolyn_claire: (Default)

[personal profile] carolyn_claire 2009-05-03 10:42 pm (UTC)(link)
Thank you!
pursuing: ([p4; yousuke] smarter)

[personal profile] pursuing 2009-05-04 06:40 am (UTC)(link)
This was driving me nuts all night. Thank you so much! ♥
peaceowl: (Default)

[personal profile] peaceowl 2009-05-07 10:51 pm (UTC)(link)
hm, the fix didn't work for me! it made usernames show, but above the entries instead of to the side where they should be, and it made my friends page 'ugly', with a strange blue background above each entry. does anyone have any suggestions? if so, thank you in advance!
liv: Stylised sheep with blue, purple, pink horizontal stripes, and teacup brand, dreams of Dreamwidth (sheeeep)

[personal profile] liv 2010-06-11 10:24 am (UTC)(link)
Related fix, which I'm reporting here, but I can do something more formal if it would help:

I was helping a friend who has a Core1 based layout. In her navigation menu, her link to the network was showing up as "Unknown view", and she was unable to change that. The fix uses an odd combination of calling the page "network" and calling it "friendsfriends".

I had to add to the lang_viewname fucntion:
if ($viewid == "network") { return $*text_view_friendsfriends; }

I know we're not really updating Core1, but perhaps it's worth adding this information to this post, which is linked from a Site Issues FAQ so people may come looking here? Alternatively, perhaps it is worth going a bit further in making Core1 compliant with DW's friends-free notation, because I don't think that would break any existing layouts.
bethmccombs: Montage image of Jack embracing Ianto with a shot of Ianto holding Jack in the background (Default)

Question

[personal profile] bethmccombs 2010-09-04 09:54 pm (UTC)(link)
Being new to Dreamwidth, I'm not certain if this is the correct place to ask this question. If I'm in the wrong spot, please let me know. When I imported Flexible Squares here for my layout, added the fix for the display name on the friends page, but then discovered the same problem - the lack of usernames - on the "network" page. Is there a way to correct this so the usernames show up on that page?

Thanks,
Beth
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2010-09-09 10:27 pm (UTC)(link)
Hmm, do you think we might want to parenthetical the network ones?
roadie: (Default)

[personal profile] roadie 2010-09-10 09:08 am (UTC)(link)
Thank you. That was really helpful.
liv: Stylised sheep with blue, purple, pink horizontal stripes, and teacup brand, dreams of Dreamwidth (sheeeep)

Just hope someone's tracking this post...

[personal profile] liv 2010-09-10 01:59 pm (UTC)(link)
http://www.dreamwidth.org/support/see_request?id=7133

One of the recent crop of LJ refugees has pulled up a new problem: most LJ layouts now have a function called "print_raw" which basically makes that link bar of "share this" buttons. As a result, LJ layouts won't compile under DW's S2 Core1. I could fix this by adding a line to our Core1 which at least defines print_raw (I suggest defining it as an empty function.) Or we could add a note to this post / the FAQ saying "delete anything that says $link->print_raw(); What do you reckon?
karel: (han Solo β–Ί here comes the party)

[personal profile] karel 2010-10-07 05:18 pm (UTC)(link)
Eee, thank you so much for this fix! This was driving me crazy, having to hover for the popup and then having to play "guess the community."
mrsdarcy: christmas dreamwidth sheep (Dreamwidth)

[personal profile] mrsdarcy 2011-05-17 08:26 pm (UTC)(link)
I don't know whether you can help me with this. I have "friends" inside a function (in Opal) and don't know how to get rid of it.

function FriendsPage::lay_make_username (Entry e) {
var Friend f = $.friends{$e.journal.username};
var string url = $e.poster->base_url();
"""
$e.poster""";
if(not $e.poster->equals($e.journal)) {
""" @ $e.journal""";
}
"""
""";
}


[personal profile] dee_groovy 2011-08-06 01:31 pm (UTC)(link)
It worked! I'm using Flexible Squares, and it worked like a charm - thanks!

[personal profile] dee_groovy 2011-08-06 01:56 pm (UTC)(link)
Hello,

I have a question - while the usernames show up on the reading page, if it is a community, the community name doesn't show up; only the username. Is there a fix for this as well?

Thanks so much in advance!
elrhiarhodan: (Default)

[personal profile] elrhiarhodan 2011-12-21 05:05 pm (UTC)(link)
Seriously late to the party, but this fixed both the missing user and community name as well as a layout problem I was having (the userpics on my reading pane were pushed all the way over to the left).

Thank you!
krissasaur: (Default)

[personal profile] krissasaur 2011-12-27 10:17 am (UTC)(link)
i dont understand what im supposed to do with this.. sorry im so dumb... D:
sheepy: (04)

[personal profile] sheepy 2012-01-03 11:29 pm (UTC)(link)
Fix didn't work for me, but it's doing weird things with the userpics, so it may just be the layout I chose. Looks fine here, but when you go to the read page, look what happens to the userpics. Any ideas on how to fix this?
duck: Homer Simpson spinning on his chair (Default)

[personal profile] duck 2012-02-25 04:50 am (UTC)(link)
Thank you so much! This let me use a Generator layout correctly :D

Page 2 of 2