Uhmmmmm
-
You know what's really funny? That's still going via the PHP parser (since it has the X-Powered-By header, with 5.3.3 which is stupidly out of date) but short_tags is disabled so it doesn't work because they were too lazy to write
<?php
instead of<?
.
-
too lazy to write <?php instead of <?.
I prefer the short tags because I find this:
<? if ($condition): ?> Moo <? endif; ?>
much easier to read than this:
<?php if ($condition): ?> Moo <?php endif; ?>
I find the extra PHPs obscure what the block is doing.
-
I use
<?php
usually, except for rare occasions where I need to print a single variable, then I use the old<?=$_SERVER['PHP_SELF'];?>
(to give an example).Although, I avoid that these days. Give me a good templating engine any day.
-
Oh yeah, I always use <?= for echoing. I hate it when I see this:
<?php echo $variable; ?>
Each to their own though. The approach I mentioned in my previous post is clearly wrong because short tags may not be enabled. I've started to use the longer <?php form, but I find it very ugly.
-
Then again I never, ever find myself doing any of that shit because I don't intersperse markup with PHP tags. MVC logic for the win!
-
I use <?php
I use <?php because I once had to take an app that used <? only and convert it to work on a server that didn't have <? allowed and wasn't going to have <? allowed (this was quite a few years ago though, but the habit dies hard now). Man what a pisser that was.
Fortunately it had <?= $x ?> syntax allowed or I probably would have just ditched the thing altogether.
--edit - missed that i did't have the "?" in <?php
-
I use <php because I once had to take an app that used <? only and convert it to work on a server that didn't have <? allowed and wasn't going to have <? allowed (this was quite a few years ago though, but the habit dies hard now). Man what a pisser that was.
(Pedantic: do you mean
<php
or<?php
?)Generally speaking, this sounds like a task for Perl. I hate Perl, but it's supremely good at this sort of thing.
-
-
That's why $deity gave us Twig which is what I use for my stuff. I'm stuck with an abomination in SMF, however, where the each template is a PHP function that does everything with echo statements.
-
I use this. That's the engine that Handlebars and HTMLbars evolved from. But there are libraries for almost any language imaginable. I use it to render shit both server-side and client-side.
-
https://meta.discourse.org/t/android-cancel-post-goes-off-screen/17722/3?u=matches
@PJH Don't know if you need to do anything to get the patch.
-
@PJH Don't know if you need to do anything to get the patch.
Click a button. I'll do it now...
-
Bug: Hearts are not green instead of pink
WTF?
-
Worse, it's a shade of puke green that's virtually indistinguishable from grey at a glance, even more so than the pink was at partial opacity.
-
Sorry, but there is nothing about the green that I like. the green surrounding block is pretty fugly too. I kind of wish I was color blind to that color so it looked grey.
-
The problem is, I'm not colour blind and at a glance it does look fucking grey.
-
- Green on green background
- Green on grey background
If either one of those looks grey on grey, or grey in total, you probably are color blind, or using a really bad monitor.
They are just extremely disgusting.
-
The key thing is 'at a glance'
Yes, if I actually direct my attention to it, and especially if I hover over it, yes, it doesn't look grey. But at partial opacity and any time I don't direct my full attention to it, it looks grey. Peripheral vision is less colour sensitive.
-
WONTFIX: Can't reproduce
-
Stop channelling Jeff.
-
Also, let me guess, you hover over the post you're currently reading?
-
I have no idea what you're talking about for hovering over a post i'm currently reading. Though if you mean where is my mouse while I'm reading, it's usually off to the side, often middle clicking the reply as new topic button when i'm attempting to scroll.
-
Though if you mean where is my mouse while I'm reading, it's usually off to the side, often middle clicking the reply as new topic button when i'm attempting to scroll.
This paragraph appeared out of thin air as I was reading your comment.Magic!
-
Which highlights the current post, meaning that everything gets more opaque and easier to visually see the difference.
-
How are you getting the green heart if you're not over the post?
-
Bug: Hearts are not green instead of pink
Was joking about it.
Serious suggestions over here please:
http://what.thedailywtf.com/t/the-like-icon-wut/1694/26?u=pjh
-
It's still green if you liked the post previously. It's just partially opaque.
-
Sky blue?
-
Workaround: Never like anything, ever?
-
Really, anything out of 'green' range will do.
-
Except that I like liking things, it makes me feel part of something.
-
Embrace your inner lone wolf. Let it feed on your desire.
-
Or just black, like the rest of the icons.
-
Except that I like liking things
Feature request: ability to like other people's likes.
Filed under: 2 people liked you liking this. Like it too.
-
-
Were I to do the lone wolf thing, I'd just disappear from here and everywhere else, I only function because I feel part of something.
-
o/
... Really, discourse?
<img src='/uploads/default/4423/f6ddc1fe621f52bc.png'>
in the quote, indeed.
@pjh I agree, the pink looks better than the blue.
-
-
Are you the pot, or the Kettle?
-
Are you the pot, or the Kettle?
Pot.
But while I expected the HTML "sanitization", the [image] bit is... inconsistent.
Oh.
-
-
Discourse's idea of HTML sanitisation is unique.
-
Discourse's idea of HTML sanitisation is unique.
Kicking water uphill has a very storied background.
-
Kicking water uphill works better than Discourse's HTML sanitisation.