aveleh: Close up picture of a vibrantly coloured lime (Default)
abby ([personal profile] aveleh) wrote in [site community profile] dw_styles2009-04-13 10:50 pm
Entry tags:

For those of you that are using non-official core2 styles

Hey guys,

We have some really exciting changes coming up in the next few days. However, it's going to break the styles of some people who are using core2-based non-official layers. That means that those of you who liked being on the cutting edge and so fiddled with a style to make it work with core2 or made changes to the functions in a core2 style to make your own style, you may end up having problems using your style as expected, or even getting it to compile.

I know we've already changed the names of the module function twice, but we've done it again, this time in a way that makes it more flexible. I can promise that when you see the way that [personal profile] nova designed and [personal profile] afuna implemented the modules, you won't care that you need to make some more edits. The new module functionality is amazing. If you're not already using Negatives, switch to it and see the Modules in action.

Anyway, core2 is giant enough that we're wanting to remove the depreciated functions earlier rather than later, especially for things like the modules which are already confusing. So, if you're a non-official core2 style user, you probably need to:

  1. Do a find and replace to replace print_module_group_one() with print_module_group( "one" ), and the same for two and/or three and/or four.

  2. Do a find for any instances of print_linkbar and replace it with print_management_links for EntryLite (entries and comments), and with print_interaction_links for UserLite.

  3. Do a find for any instances of print_entry_poster. This may say something like $p->print_entry_poster($e). It should now be $e->print_poster().

  4. Do a find for lang_user_wrote. Think about replacing it with print_entry_poster.

  5. Bookmark this post so you can yell at me for not properly making sure we documented our overhaul.

We're going to be making a series of posts in the next couple of days talking about the overhaul and porting process, and better explaining how what we've done isn't just renaming a few functions, and how this is going to be really awesome for everyone in the long run. This is, of course, just in preparation of getting some good official documentation aimed for users of all levels and interest.

In the meantime, I'm working [personal profile] afuna, [personal profile] av8rmike, [personal profile] dani_the_girl, [personal profile] draigwen, [personal profile] jadelennox, [personal profile] liv, [personal profile] nova, [personal profile] rich, and [personal profile] ysobel as hard as possible, so please don't hesitate to give them love.
dani_the_girl: (Default)

[personal profile] dani_the_girl 2009-04-14 10:50 am (UTC)(link)
Seriously, you guys, module code is HOT SEX! [personal profile] afuna should be given prizes or something.

Also, I haven't forgotten I promised to write a post about how to use them :)
cimorene: cartoony drawing of a woman's head in profile giving dubious side-eye (she's so refined)

[personal profile] cimorene 2009-04-14 11:57 am (UTC)(link)
Just wanted to say I am really loving the improvements you've already made!

I've got the tags inline and the bullet style off on the metadata and the userinfo module buttons to display inline in my Negatives-based style, if it's possible for a humble amateur to be of some help.
cheyinka: a spoof of an iPod ad, featuring a Metroid with iPod earbuds pressed against each of its 3 internal organs (iMetroid iScree)

[personal profile] cheyinka 2009-04-14 01:37 pm (UTC)(link)
If the style I'm using (one that I copied over from LJ and modified sufficiently that it worked with core2) defines print_linkbar itself, it'll continue to function, right? Neither print_management_links nor print_interaction_links seem to replicate what print_linkbar does...
av8rmike: Futurama's Bender in Jeffries tube, text: I'm done reconfoobling the energymotron (Default)

[personal profile] av8rmike 2009-04-14 02:27 pm (UTC)(link)
No, the print_linkbar() function will be completely removed in an upcoming version of core2. There should be nothing that that function did that management_links or interaction_links don't, so what is it you think is missing?
baggyeyes: Bruce  Campbell- Groovy (Bruce - Groovy)

[personal profile] baggyeyes 2009-04-14 02:42 pm (UTC)(link)
I'll chop away at what I have, but - cool - more things to poke at in the customize place thingy!

Good thing you didn't have me in charge of naming things.

\o/ kudos to all!

:)

I've got a question - are you going to port Opal and Quite Lickable? I'll stop fiddling with layers and stick with Negatives until official launch if so.
Edited 2009-04-14 16:33 (UTC)
cheyinka: A sketch of a Metroid (Default)

[personal profile] cheyinka 2009-04-14 03:48 pm (UTC)(link)
But the style itself has a print_linkbar function...

Anyway, here's my problem. If I replace calls to $e->print_linkbar(); with $e->print_interaction_links();, instead of how it looks now (http://www.endersgame.net/~cheyan/screenshots/s2beforechange.png) I get this instead (http://www.endersgame.net/screenshots/s2afterchange.png).

[personal profile] kevin 2009-04-14 05:08 pm (UTC)(link)
ILU ABBY

ILU FU

The modules code is awesome <3
av8rmike: (blinkie ponie)

[personal profile] av8rmike 2009-04-14 05:24 pm (UTC)(link)
Oh, Disjointed. So many tables, so hideous. Those functions now print the links as part of an unordered list, so you'll probably have to work up some kind of CSS solution to display them in-line. That's what we're doing with the official styles.
av8rmike: (styles)

[personal profile] av8rmike 2009-04-14 05:27 pm (UTC)(link)
Opal is part of the LJ.com-only repository, so unless we seek & get permission from its creator, most likely not.

I hope we don't port Quite Lickable, because I think it's one of the uglier and hacked-up layouts on LJ. It's in the GPL, though, so that's not stopping us.
turlough: Gerard Way, Spin photoshoot, 1 October 2010 ((mcr) my eyes are shining bright)

[personal profile] turlough 2009-04-14 05:35 pm (UTC)(link)
I know it's probably not likely since I don't think it's an open style, but I would love if Flexible Squares was imported. It's so flexible!
av8rmike: (styles)

[personal profile] av8rmike 2009-04-14 05:47 pm (UTC)(link)
Yes, I expect that that is going to be one of our most frequent requests. FS is probably the most popular layout on LJ, but it's not in the GPL, and I don't know of any other plans regarding what we might do with it.
turlough: castle on mountain top in winter, Burg Hohenzollern ((mcr) gerard way is adorkable)

[personal profile] turlough 2009-04-14 05:52 pm (UTC)(link)
Yeah, I know that in the long run things will get easier it's just the thought of having to start from scratch with a new layout that is scaring me a bit, I've been using FS since before it was an official style :-)
turlough: castle on mountain top in winter, Burg Hohenzollern ((mcr) gerard way has the sweetest smile)

[personal profile] turlough 2009-04-14 05:53 pm (UTC)(link)
Yeah, especially people like me who's been using it since before it was an offical style :-) I've added so much functionality to it over the years that I'm kind of scared having to start from scratch with a new style.
turlough: castle on mountain top in winter, Burg Hohenzollern ((mcr) creativity)

[personal profile] turlough 2009-04-14 06:04 pm (UTC)(link)
I definitely need to sit down for a couple of days and don't do anything except read through everything you've changed about the style system. Right now I keep getting distracted by new shiny things all the time :-)
turlough: castle on mountain top in winter, Burg Hohenzollern ((mcr art) frank and gerard are adorkable)

[personal profile] turlough 2009-04-14 06:05 pm (UTC)(link)
I'll be looking forward to that!

[personal profile] kevin 2009-04-14 07:59 pm (UTC)(link)
I do listen to you! I just choose to ignore what you're saying >_>

ILU TOO STACEY SORRY
baggyeyes: C3P0 (C3P0)

[personal profile] baggyeyes 2009-04-14 08:30 pm (UTC)(link)
Oh, crap. I forgot that about Opal. :(

And yeah, QL ain't pretty. Some of the layouts people have made for it are, though.
zvi: self-portrait: short, fat, black dyke in bunny slippers (Default)

[personal profile] zvi 2009-04-14 08:57 pm (UTC)(link)
Is there a link to the standard functions that are going to be in the site styles in the wiki, with an indication as to whether they'll be available in Open Beta or not?
rhialto: Me under a waterfall (Default)

[personal profile] rhialto 2009-04-14 11:40 pm (UTC)(link)
I've taken a quick course and dived right into the S2 style system. On lj, they were on the one hand encouraging people away from S1 (deprecated, etc) but on the other hand you could not switch to S2 since that is for paid accounts only. So I didn't know anything about it at all.

So basically I managed to hack into the core 2 style the two things I wanted: the yellow/red colour scheme, and the European style time/date (I find am/pm extremely confusing (I much prefer 21:38 over 9:38 pm)), and also the silly putting the day and the year next to each other and the month somewhere else (April 15 2009) is rather strange to my eyes.

So I managed to make date/time formats for that.

I don't know if/how other people can look at my styles, but it is i18nc layer #3594 named "Rhialto's date/time changes".

Maybe that, or something like it, can be supplied to people who also prefer European date formats.
Edited 2009-04-14 23:41 (UTC)
rhialto: Me under a waterfall (Default)

[personal profile] rhialto 2009-04-15 12:09 am (UTC)(link)
Ah good. Since that is basically what I want now, I think I'll be happy with that. Maybe I'll want more later, who knows :-) If you make the documentation available even to people who can't edit layers, they can see what they are missing out on and possibly will decide to get a paid account. (That is always better than to pay for something unseen and hoping it will be good enough)
av8rmike: (styles)

[personal profile] av8rmike 2009-04-15 04:41 am (UTC)(link)
You don't need a Paid account to use S2 on LJ. Maybe at the very beginning, but it hasn't been that way for years, if ever.
samantilles: (SG-1 Tauri Earth)

[personal profile] samantilles 2009-04-15 06:23 pm (UTC)(link)
When you mention its going to break S2 core non-official styles, is that also include if the core is inherently unchanged from Zesty? (I more or less only modified the CSS to Zesty rather than mess with the core coding)

Second question, is there a way for us to preserve the coding to the current modifications when you upgrade or does it just get lost unless we save it to an .rtf or alike?

bunnyhero: (Default)

[personal profile] bunnyhero 2009-04-16 04:28 am (UTC)(link)
apologies for the newbie comment... i was playing with the modules, and while it's neat, a lot of the modules don't look very good (almost "broken"-looking) when put into certain locations (at least using the negatives style). for example, when i put the "basic journal info" into my header, it looks huge and unbalanced. when i put the calendar links (in table mode) into the sidebar, the calendar appeared to have a large left margin or something that pushed it away from the centre block and stretched the sidebar horizontally. this is using firefox 3.0.8 on mac os x 10.5.6.

if i have missed some context somewhere, i apologize :)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-04-16 08:31 am (UTC)(link)
I wonder if what the poster meant was that on LJ, tinkering with the S2 styles system in the way they're describing is only available to paid users? You can use an S2 style on LJ, but you can't modify the S2 code.

[personal profile] ex_lily871 2009-04-16 11:53 pm (UTC)(link)
Hi! I've experienced that I'm terrible with perl and all that, but I'm ok with CSS and I've been wanting to do a CSS breakdown of Negatives for a while now, since that's completely Core2 based and here to stay, right? I'm just wondering - are there still going to be a lot of changes and would it be better to wait 'till things are done a bit more, or is it pretty much stable right now?

Thank you so much for everything!
boji: (Default)

Quite lickable

[personal profile] boji 2009-04-20 07:46 pm (UTC)(link)
Another vote for porting (if that's the right term) Quite Lickable - as it was my style over on LJ and I'd like to get something close to it over here.

That said I basically changed all the colour codes to make a white background with a sidebar/links list and a background header which is what I'm going for predominantly. That and the ability to use Jazz font.

So, I'm waiting until more styles come on-line to see what I can modify close to what I had so that I can take advantage of all the brilliant wizards later.