Recent Posts
1
Off-topic / Re: json_decode and arrays
« Today at 05:11 PM by Arantor »
First glance says that you need to check !empty($data) then foreach ($data->track as $track) then you can iterate over $track to get artist and whatnot.

Possibly you might find it easier to wade through if you pulled it back from json_decode as an associative array rather than an object.
2
Off-topic / json_decode and arrays
« Today at 05:06 PM by MultiformeIngegno »
Code: [Select]
<?php
$json 
file_get_contents('http://pastebin.com/NLHGMapT');
$track_data json_decode($json);
?>

<?php
echo '<ul>';
    foreach (
$track_data as $data)
    {
        if (!empty(
$data)) {
            
$text $data->track[0]->artist->{'#text'};
        }
        echo 
'<li><span>'; echo $text; echo '</span></li>';
    }
echo 
'</ul>';
?>

How can I have $text for every array (track[0], track[1], track[2], track[n]) in respective <li>s?
3
Off-topic / Re: Automagically De-Nesting Quotes
« Today at 03:06 PM by Nao »
Quote from xrunner Today at 02:26 PM
I am very interested in it. So much so that I went to this thread and read about it -

http://wedge.org/pub/feats/posts/6682/automatic-quote-splitter/

In that thread you don't mention the shift key, you simply say press enter -
Oh, that would explain why Dragooon was confused about it, too...
I updated the first post to reflect the fact that you need to hold either Shift or Ctrl while pressing Enter. Thanks.
Quote from xrunner Today at 02:26 PM
So although I do see re-reading this thread that shift-enter was mentioned earlier, I guess I was confused when I went to the above thread, and when I tried to split a quote by pressing enter, it didn't work, so I just thought it was a minor bug at the time. I read a handful of comments and they all just looked like "congratulations" "great" so I figured the first post was still the correct explanation of how it was supposed to work (press enter).
It's because I rewrote the feature in the meantime, after some complaints about the fact that this behavior wasn't optional. So, I made so you needed to press Shift or Ctrl at the same time. Which was fine by me...
4
Off-topic / Re: Automagically De-Nesting Quotes
« Today at 02:26 PM by xrunner »
Quote from Nao Today at 11:54 AM
Holy cow... That's the automatic quote splitter I've been mentioning since the beginning.

It's also mentioned prominently in the post area.

What else should I do to get people interested in it, if even those who are looking for a quote helper haven't noticed it..?!
Hello Nao,

I am very interested in it. So much so that I went to this thread and read about it -

http://wedge.org/pub/feats/posts/6682/automatic-quote-splitter/

In that thread you don't mention the shift key, you simply say press enter -
Quote from Nao on May 11th, 2011, 08:24 AM
When you're replying a post by someone and you want to break up their quoted text into several parts for convenience, you usually have to do some convoluted copying and pasting. Not so with Wedge.

Just put your cursor wherever you want to split the quote, and... press the Enter key. That's it, you're done. The quote gets split automatically.
You also have an example and then say this -
Quote
After pressing Return, this becomes:
So although I do see re-reading this thread that shift-enter was mentioned earlier, I guess I was confused when I went to the above thread, and when I tried to split a quote by pressing enter, it didn't work, so I just thought it was a minor bug at the time. I read a handful of comments and they all just looked like "congratulations" "great" so I figured the first post was still the correct explanation of how it was supposed to work (press enter).

I didn't try the "shift-enter" until it was mentioned again by Arantor in this thread near the end. So, you might want to edit your explanation thread (first post) above so it says press "shift-enter". :)
5
Off-topic / Re: Automagically De-Nesting Quotes
« Today at 11:55 AM by Nao »
Quote from Arantor Yesterday at 11:25 PM
Breaking a quote up... press quote, place cursor where you want to break the quote,
Actually, you don't need to press Quote... :^^;:
6
Off-topic / Re: Automagically De-Nesting Quotes
« Today at 11:54 AM by Nao »
Holy cow... That's the automatic quote splitter I've been mentioning since the beginning.

It's also mentioned prominently in the post area.

What else should I do to get people interested in it, if even those who are looking for a quote helper haven't noticed it..?!
Have it enabled by default, and show a popup explaining what it did, and offering to disable it..?!?!

:-/
7
I was just checking the issue this thread refers to, to see if I could check the solved button, and I thought I should report what I was seeing on my screen. It's odd. It may or may not be helpful. See attachment.
8
ok, where? The dark background behind the content wrapper?
9
Bug reports / Re: When a bug is fixed
« Today at 02:56 AM by live627 »
Just attached a pic of the button.
10
Bug reports / Re: When a bug is fixed
« Today at 02:54 AM by xrunner »
Doing that now. :)