« first day (762 days earlier)      last day (4481 days later) » 

00:47
@Rarst That is a processing instruction in SGML. Even <?> is valid. :)
 
2 hours later…
02:34
@Rarst Not sure if it helps but you need to use htmlspecialchars if you want to output what is otherwise considered html tags when using an echo statement, echo(htmlspecialchars( '<?= hi ?>' )); in source = &lt;?= hi ?&gt;
@kaiser Awesome, just what I needed for comparison chart... I was thinking how to handle large comparisons with many columns on smaller view-port just couple hours ago... this pretty much nails it
 
1 hour later…
g r a n u l a r
deserves the upvote
 
4 hours later…
07:46
@kaiser Thanks @kaiser :)
 
2 hours later…
 
1 hour later…
10:56
Finally..
11:37
sup smart guys
is there a web ui to perform git interactive add and commit
all git web uis seem to focus on just listing the repo
11:49
im guessing running gitk over gtk3 broadway html5 backend isnt too viable yet
@toscho if only the world would adopt 5.4+ so we can start using the newer features in WP not just personal projects would be nice...
@userabuser My world did that. :)
Which planet is that?
damn you!
Users of my next plugin will see a warning if they are using the outdated PHP 5.4.4.
mm sometimes the only way is to force that change
11:57
@toscho You should make that a movement
@toscho is that widget somewhere i can see code?
@TomJNowell Not yet. Next month it should be ready. Then it will be published on wp.org.
@lkraav why would you want that though? their are git libs but you should never be developing on a live server than doing commits/adds/pushes
@toscho is that your logging plugin?
@TomJNowell Security plugin. The logger is just a small part of that.
anu
anu
@lkraav can't think of any Git web UIs that allow local files to be committed to a repo Did you see git.js though? github.com/danlucraft/git.js
12:08
@userabuser wasn't about wanting to output that (I know how to encode chars), I was curious why browser renders it invisible
@Rarst cool.. thought it was strange ;)
but yeah.. tis coz its not enc'd really... what it comes back to..
Another day, another fake @Rarst...
sacrilege
should WPSE retire letters like Americans retire numbers in sport?
@kaiser nah its OK. Rarst gave up his rights to the R when he put up his mug shot instead.
@Brady You mean that fuzzy guy that stole @Rarst ID?
@userabuser retired numbers in sport?
12:14
yeah man.. you know, if you're good player some teams retire numbers in honor of player - as in never to be used again
> Python and Perl : I would love them
...but I don't? ha
hehe... happy islamic new year. Missed it again.
yalla
when was it
seems like it's today
I got some friends in Istanbul and they told me that the whole city is celebrating "our western" new year, so I'm wondering what this actually is.
they just want reason to party
12:27
lol
old man at 1:47 haha boom boom
:D
If I wouldn't be sick, I'd try to join them.
wp_get_recent_posts() ... aha. Didn't know of this function. Why?
12:44
@kaiser cause it's legacy and useless?
@Rarst But then @kaiser should know it, right?
@Rarst Not deprecated. Just saw it in this article on SmashingMag.
Is the random order of constants from the WordPress API a hidden security feature?
12:59
@toscho why random? seems to be fixed
@toscho Random order? You mean non-alphabetic?
@toscho Random order?
	'AUTH_KEY',
	'AUTH_SALT',
	'LOGGED_IN_KEY',
	'LOGGED_IN_SALT',
	'NONCE_KEY',
	'NONCE_SALT',
	'SECURE_AUTH_KEY',
	'SECURE_AUTH_SALT',
That would be a logical order.
Easier to see how the constants belong together.
Always in the same order...
@toscho Probably why it isn't in that order then...
@toscho But no - I don't think its deliberate.
My order is so much more aesthetically satisfying. Just saying. :)
13:09
@toscho Agree. Should ping @Otto on Twitter
 
4 hours later…
16:50
@Rarst Are you there?
@Alenanno No. Someone stole his account. Hence the hairy avatar.
@kaiser Ahah lmao
17:37
Just added a switch for debug=true query arg on production to turn everything on. Man, that's sweet!
18:15
hi there! I have a simple question about wp pages, maybe someone can help
I have a couple of pages, and I would like to make it so that page.php shows a page dynamically
The way I'm retrieving pages is the following
gist: 4089596, 2012-11-16 18:18:26Z
$page_id = 29; 
$page_data = get_page( $page_id );

echo '<h3>'. $page_data->post_title .'</h3>';
echo apply_filters('the_content', $page_data->post_content); 
Now I want that page id to be dynamic
Should I retrieve it from the URL by a variable?
is this approach correct or am I missing something?
What I'm asking is whether there is a "default" way of doing this and I'm overcomplicating?
Let me know if the question is not clear
@Trufa First: We see this chat mostly as recreational place and nothing for drive-by questions. But to give you a route to go: Take a look at the template hierarchy, in detail: page.php. Then add a loop and on whatever page you are, the loop will display/give you the data for the current request.
@kaiser thanks! I like to come to the chat and ask quick questions, my intention is not "drive by" :), rather improve the question i will post, or don't post if it was really silly
> Then add a loop and on whatever page you are, the loop will display/give you the data for the current request

Not sure I followed
page is a template right?
@Trufa Add "loop" (see Codex) to page.php template. Inside loop, access API functions or $post. Do different requests and look at data.
18:42
@kaiser thanks for the help
I'll post a question because I'm pretty confused about all thins
thanks anyway
 
2 hours later…
20:49
@All Anyone got an idea how I'd re-register my widgets AJAX .on()-handlers after I saved the widget? Seems like they just unhook...
21:42
@TomJNowell Regarding your tweet: Can you elaborate?
@kaiser so I produce a my little pony theme and the client wants a pony widget
but widgets go in plugins no?
so I separate it out
if I keep it in my theme sure it works for that theme
but by separating it out into a plugin it becomes more robust as I have to account for it being used in other themes
so first things first, I style it up in my themes css
but now its fugly in other themes, twentyten users who love ponies are screaming murder hides
so for everyone else, generic basic styling
fewest assumptions
I can put the rainbow gradients in the mylittlepony theme
and all those bells and whistles
if that twentyten user wants a portrait of their favourite pony as the background then yeah, have that, ( in your theme )
or provide a pretty styling/css but with the option to override it via theme like BBPress etc
I think the aim being that if the client really wants, they should be able to change their theme to twentyten or twentytwelve or whichever theme, and everything should still work
it might look like crap, but functionally its in a usable state
that way if new developer (( e.g. you )) comes along and builds a new theme, they get to keep all their data, and all their widgets, and you need only restyle my widget plugins
... finished?
yeah though that's half a blog post lol
haha
is it clear or is it a bit too muddled?
21:49
Yeah, I wasn't actually talking about styling/CSS, but about the MarkUp
I can collect ton of data in my widget, but I'm not able to alter the output of it on a theme by theme basis.
@kaiser oooh
Current example, as I'm looking at my latest widget that displays a single image along with its caption: I got the ability to choose between custom or built in (a.k.a. theme dependent) sizes. Alongside that, I question if one wants to use the built in caption, description or a custom caption (which can be made empty). Now what if the caption doesn't fit? display:none;? lol
use a generic template file that calls on your APIs in the plugin, that'll be your default
if a template exists in the theme though, use that instead
so any theme will use your template by default unless it specifies its own alternative
So doing a file_exists()/locate_template()?
21:52
I'm currently thinking if a filter would work on that...
Not sure when the output happens and until when I'm able to hook the action.
@kaiser filter could work too
Still somehow funny that there's no possibility to catch the actual output in a template. Imo that's where it would belong.
I mean, ok - from the internals of dynamic_sidebar() this simply isn't possible. From a developer perspective this is just too close to end user requirements, alias: fire and forget or eat what's on the table. Need other MarkUp, grab other plugin.
well usually instead of doing echo stuff; I do get_template_part('filewithstuff');
how is it not possible =s widgets have callbacks for output...
21:56
And in there are dozens of echos.
what does your widget do?
Hm. Maybe I could do a get_template_part( apply_filters( 'widget_image_template', '' ) ); call in the widget :D
@TomJNowell Simplified: Display an image along with its caption.
I work a lot of with filters/hooks and I really like them. But when you got dozens of callbacks and have conditionals invoked, then there comes this point where using filters is obfuscating problems...
Not talking about a single plugin, but about a middle-heavy complex site/theme.
Ah, it should be get_template_part( apply_filters( 'widget_image_template', '', $data ) ); so one can access it in the template... or so.
$file = locate_template(array('kaisersimagething'),false);
if(empty($file)){
    $file = 'some plugin file default generic template';
}
include($file);
you could put that in a function and attach to an action which you then call when you need to output, pass in param etc, still gives you the ability to unhook it etc etc you get the picture
just do what works and refactor as and when you need to
Need zigs and think about this for a sec. Brb/5 min.
whatever markup you use some kind of css change will be needed anyway
you smoke? =o
22:15
Yeah, CSS will change, that's clear.
And yes, I smoke.

« first day (762 days earlier)      last day (4481 days later) »