Forum Replies Created

Viewing 15 replies - 16 through 30 (of 49 total)
  • Forum: Plugins
    In reply to: WP iTunes

    But how do you get it to wait 20s after the song change notification message comes through before doing a POST? Is this a setting in iTunesBlogger or a setting in the script?

    Forum: Plugins
    In reply to: WP iTunes

    ajc, how would one go about waiting 20 seconds before posting a song? This would actually be ideal because I sometimes skip songs right before they end and now I wouldn’t have to wait until the end just to post the information. I figued that iTunes wouldn’t send out a signal 20 seconds into the song, so this would be impossible. Is it possible?

    Forum: Plugins
    In reply to: WP iTunes

    Hey ajc, I was just curious if it was possible to have iTunesBlogger update the song at the END of the song (like when iTunes updates the play count.) I only ask because a lot of times I have my entire collection on random and I skip songs a lot, and I don’t want it updating my website every time I skip a song. Is this possible at all? Thanks.

    Forum: Plugins
    In reply to: WP iTunes

    Sorry for not checking this thread in a while. I’ve uploaded my configued WP-iTunes script (minus itunes_key and dev_token variables) so that people that want to look at it can get a sense of what I did. Besides adding the archive function (for last 50 posts) I also modified the code to allow for “Today/Yesterday” timestamps and also to allow songs that don’t have the album field filled out in the ID3 tag (it also won’t output the “Album:” field if no album is listed.) You can find the script here:

    https://www.guboogi.com/blog/wp-content/plugins/wp-itunes.phps

    and to see how the final output looks, you can look here:

    https://www.guboogi.com/ (for the sidebar)
    https://www.guboogi.com/boogbox/playlist.php (for the last 50 songs)

    Just a little warning, I’m not very experienced at programming at all so if there are any mistakes, I apologize. If you have any questions, let me know.

    Forum: Plugins
    In reply to: WP iTunes

    To anyone interested in displaying the last 50 songs (like lucky33 does on his site), it’s really not that difficult. All you have to do is create a new function in the code (just copy the get_wp_itunes function and rename it to something like get_wp_itunes_previous) and then call get_wp_itunes_previous(50); from a different page.

    This is better than simply calling get_wp_itunes(50); from a different page because you can recustomize your output so that it looks different than the one on your sidebar. In order to get multiple songs listed in one column, you have to wrap the output in a DIV that has “float: left;” If you don’t know why, then you can read this: https://www.alistapart.com/articles/practicalcss/ for some CSS help.

    Hope that helps guys. If you have any questions, please feel free to ask.

    As for the stripslashes, I’m not sure what it is that’s adding slashes (iTunesBlogger, my server, or both) but they’re definitely there. The places where I put the stripslashes code has worked perfectly so far (and I don’t have any songs that have \’s, only /’s and those come out fine). For what it’s worth, the \’s appear even in the Tunes WP Admin page (displaying the last 20 songs) but the slashes are removed when the info is actually posted on my site. Hopefully that sheds some light on the issue ?

    Okay last post tonight (I promise):

    – It’s really bugging me that I can’t figure out how to get rid of that “-” between the artist and album and then split the information on two lines:

    [Album Art]
    Artist
    Album

    instead of:

    [Album Art]
    Album – Artist

    I know I managed to do this in CG PP 1.0 but I can’t remember how I did it, and I can’t see to find where it’s getting that “-” symbol from. Surely you must know … right? Thanks!

    One other thing I noticed:

    – I have a few Asian songs (with ID3 tags in Asian font) and I noticed that it would never output these characters correctly in previous versions of WhatTunes. In 1.5a4 it seems to be displaying the characters fine in the song title. However, when these characters appear in the artist field, it always displays the artist as “No keywords given.” Do you think there’s a way to get it to display properly in the artist field as well (even if it means not searching Amazon, which isn’t that big a deal actually since it’s usually wrong for Asian songs.)

    I just installed 1.5a4, and here are some of my thoughts:

    – I think you got it to use the “non-Amazon” display if it can’t find a match. However, I think I’d prefer if it didn’t also say “Trying to look-up product, the following error occurred: We did not find any matches for your request.” Is there an option to not output that?

    – On a related note, (maybe it’s how my ID3 tags are setup) but I tried a song from the Garden State OST again and it gives me the “We did not find any matches” but then it also displays the correct link/album art for the album. Strange.

    – Just as a side note, you might want to add a “$output = stripslashes($output);” after you define $output (three times in the code, I believe) as the script always adds a “/” after every apostrophe that is output. I always have to go in and manually add it myself to correct for this, so just a thought.

    – Another thing I’m noticing is that the Amazon hyperlinks have changed a bit. On my site I use a dotted-underline when hovering hyperlinks and in previous versions of the code it would always make seperate underlines underneath the album image and artist/album. Now it just makes one underline underneath the artist/album but it spans the width of the album art. I was just curious is this was an intentional change.

    That’s it, I think. Hope that was at least a little bit helpful.

    I’m not sure about your particular blog, but I know for my blog I don’t actually use any pages generated by WordPress (I code my own pages and simply use the php commands to pull content from the database as I need it) and my comments weren’t working when I upgraded from 1.2 to 1.5.

    I had to look at the default comments page from 1.5 and then go back and edit my own pages since it seems to have changed since 1.2. Maybe that’s it ? (Sorry if this didn’t make any sense.)

    I actually found out what the problem was. I had only typed one comment so far (which was put in the approval queue) but noticed a new option in 1.5 where you can automatically place comments in the queue unless that user already has an approved comment. I’ve since turned that option off and will see if that solves it.

    I’m still running 1.5a1, but I was just curious if you found whether there was a problem with WhatTunes when it didn’t find a match for Amazon (but it displayed the link to Amazon anyway). Keep up the good work.

    I just installed the Official Comments plugin and it’s working fine but for some reason it automatically puts any of my comments in “awaiting moderation.” I am the only user (and obviously of Admin status). Anyone know why this is, or anyone else have this problem??

    You can see my code working here: https://www.guboogi.com/main.php?p=621#comments

    Thread Starter guboogi

    (@guboogi)

    Okay, I think I solved it, actually. Apparently Google-Hilight gets the WordPress root directory from the settings and then uses that to check where the search is coming from. If the search is coming from there, then it’ll highlight it.

    Since my site isn’t the typical wordpress install, I have searches coming from sites that aren’t the wordpress home and so it wouldn’t highlight those. I’ve found a workaround that compensates for this, so it’s all good.

    Well, I’m not exactly sure how it grabs the song info (filename, ID3 tag?) but I have the Garden State Soundtrack (I have the album named “Garden State (OST)” in the ID3 tag, and Amazon never picked it up (even though I know they sell it). In the previous version, with my style changes, it would simply display as:

    <b>Don’t Panic</b>

    Coldplay
    Garden State (OST)

    That was fine, I didn’t mind it at all. But now it just displays as:

    <b>Don’t Panic</b>

    – (this links to my site but the alt says “See at AMAZON”)

    Here, I’ll leave it on a song that doesn’t match and you can see for yourself. My site is https://www.guboogi.com/

    Thanks again.

Viewing 15 replies - 16 through 30 (of 49 total)