Help - Search - Members - Calendar
Full Version: Kristine - Winamp Hoverable Playlist
Movable Type Community Forum > Additional Resources > Tips and Tricks
Pages: 1, 2, 3
kadyellebee
It looks like they are showing the full title now, or at least from the songs I saw in the sidebar. Your test page doesn't have anything on it to look at more than the sidebar right now, so I'm not positive.
smile.gif

Kristine
Liz
What I meant was, my pings are not showing the whole title, or is that not relevant (hope so smile.gif)?

And before, the list that was showing up on my sidebar was from this code and not the incoming.php:

CODE
<MTPings category="Incoming" lastn="10">
<$MTPingExcerpt$><br />
</MTPings>


So that's something, I think. wink.gif
kadyellebee
On your Incoming page, I'm seeing long titles like "Robbie Williams - One for My Baby (And One More for the Road)" - that doesn't seem like it is cutting any part of the title off, but maybe ...
Liz
What I'm seeing on my Categories page on MT is this. (Low quality screengrab) But anyway. I don't think my MT Amazon plugin is working, either. Is there any surefire way of knowing it's working? I'm so sorry for all this, I feel so dumb! sad.gif
kadyellebee
But when the songs are published on the incoming page, they are showing the whole song, correct? Its just the internal Ping Excerpt that is using only 5 words (by default). So you won't see the whole thing in the MT Interface, just when publishing. (The full title *is* in the database).

I'm pretty sure that MTAmazon isn't working for you. Are you using it for anything else on your site to verify that the plugin does work?

The most helpful thing you could do for me to help you troubleshoot is to try using the test page again. Make sure you use it on the same blog as your pings are coming in to, and something should show up (as opposed to how yours looks right now with just the stylesheet colors showing up - words should appear!!!)

smile.gif
Kristine
aboutthisboy
Ok, I'm back trying my hoverable playlist. Here is a list of all the information I have:

Incoming here.

Test page here.

The sidebar is on the right of this page.

I have reinstalled MTAmazon and all code is copied perfectly from the tutorial. Pings are being received properly, as you can see in Incoming.php. MTAmazon IS working, I'm sure, as the cache folder is changed each time the song changes and a ping is sent. I have removed all old pings and emptied the cache.
I'm stuck now...any more ideas?

Ouch! It now works......OK, it must have been the old Amazon plugin that I had edited to work from the UK site. WIll post it up here in a minute.
aboutthisboy
OK, the difference in my MTAmazon.pm is as follows:

QUOTE
my $url = "http://xml.amazon.com/onca/xml2?t=$associateid&" .
        "dev-t=$devtoken&" .
        "$method=$search&" .
        "mode=$line&type=$format&page=$page&f=xml";


and my version is as below:

QUOTE
my $url = "http://xml-eu.amazon.com/onca/xml2?t=$associateid&" .
        "dev-t=$devtoken&" .
        "$method=$search&" .
        "mode=$line-uk&type=$format&page=$page&f=xml&locale=uk";


Should it not work regardless of the locale used? Obviously I would want the links to go to the UK site, otherwise it's not too useful!
Liz
Hi! I tried this code as it appears on the MT Amazon usage page, just to check:

CODE
<MTAmazon method="Keyword" search="bowie" line="music" lastn="3">
   <p><a href="<MTAmazonLink>">
   <img src="<MTAmazonSmallImage>" align="left" border="0"><MTAmazonTitle>
   </a><br>
   <MTAmazonReleaseDate format="%B %e, %Y"><br>
   Price: <MTAmazonSalePrice></p><br clear=all>
</MTAmazon>
Last updated: <MTAmazonCacheDateTime>


But it gave me errors when rebuilding:

CODE
Build error in template 'Main Index': Error in <MTInclude> tag: Error reading XML content: Can't use string ("1") as an ARRAY ref while "strict refs" in use at extlib/XML/Simple.pm line 194. .


The test page I tried again, but no dice. Wahh sad.gif

EDIT: I spent the whole night reading up on MT Amazon and tweaked my templates even further, then tried the above code and am no longer getting the error I posted. That's a tiny step, but a step forward. smile.gif
mgreenhalgh
This one's been giving me problems too, but mine are manyfold. A problem I anticipate later is that MTAmazon is refusing to work (ran one of their examples in an entry and it came up blank) but my current problem is that there doesn't seem to be any information going from Winamp to MT. I have DoSomething set up with the correct url and Winamp tells me it's sending, and doesn't give me any errors...but my test page (http://tripleb.co.uk/testing.php) is showing me nothing. A quick search of my hard drive shows no output to a test file either.
kadyellebee
If you go into the Category screen and select Incoming's pings, are any of them showing up? If not, then the Winamp configuration must have something not set up correctly. So maybe play with the settings on the dosomething screen and see if you can see anything that's stopping the ping from going through.

Kristine
mgreenhalgh
Thanks Kristine smile.gif

I had a feeling it'd be on Winamp's end because MT is just not registering any pings. DoSomething is a bit of a clumsy plugin to configure though, so I'll have a muck around and see what I can see.

Update - Added a results file to get a log on my end and it's telling me it's getting an error 'Need a Source URL (url).' Would this be related to the url section of the address you give to DoSomething equalling 'blank'?
kadyellebee
Well, that error could be coming from not having a ping category set up, or missing the tb_id=VALUE in the url.

Mine currently looks like
CODE
http://love-productions.com/mt/mt-tb.cgi?tb_id=3779&
excerpt=%%URL_CURRENTSONG%%&url=blank&
blog_name=%%URL_CURRENTALBUM%%%20%2D%

line breaks added so it didn't break the forum

the tb_id=3779 is what I believe is most important. The word blank in there, is still considered a value, as "blank" shows up in the database, so I don't think that's your problem.


When you take a look at your dosomething screen, does it look like the setup from the tutorial's screenshot?

Kristine
Liz
I'm giving up. sad.gif
kadyellebee
Liz, I'm sorry you can't seem to get it to work. huh.gif
Liz
That's okay, I know you tried and helped. If only I could find out what exactly seems to be the problem with MTAmazon. I installed BookQueue (to test-out MTAmazon) and keep getting this error:

CODE
Can't use string ("1") as an ARRAY ref while "strict refs" in use at extlib/XML/Simple.pm line 194.


What's wrong with it? It is not directly-linked with the topic of this post, but thought I'd throw it out there as a last resort. mellow.gif
mgreenhalgh
Your link helped Kristine, adding the ?tb_id= to my url (previously it was /57, now it's ?tb_id=57) has made the ping work. However it won't appear on my site, my test page is showing that the ping isn't being sent to MTAmazon. I had a feeling I'd have something like this happen.

Just to clarify, MTAmazon is working for me as I have it for my reading and watching segments, and it's even sending through to amazon.co.uk instead of .com for it's information smile.gif
kristine
Liz,

The error you are getting seems to be the same as the one at the end of this thread. It makes me think that you are using a MTEntry* tag for the amazon search field, but it doesn't really have anything to search in that field.

mgreen,

I'm glad the pings are working for you now. From the output in your test template, it looks like your song album names just aren't coming through all the way. Can you confirm that your Ping URL has all the correct elements? The fact that % is showing up makes me think there's an extra something in there. Or maybe your id3 tags in your mp3s don't have Album/Artist names set up in them?

Kristine
Liz
The error I described above, is when I type the url to go to my MT BookQueue installation, I haven't gotten any further into it sad.gif. As for the templates, this is what I'm using: (I think I got it from this thread, and has been the only way to output any info into my incoming page)

Incoming:

CODE
<$MTInclude module="regex"$>
<MTMacroApply>
<MTPings category="Incoming" lastn="10">
<div style="font-size:9px; padding:2px;line-height:9px;font-family:verdana, sans-serif;">
<? if ("<$MTPingTitle$>" == "Broadcast Stopped") { echo "<em>WinAmp is off right now!</em><br />"; }
else {
?>
<MTIfEmpty var="PingBlogName">
<$MTPingExcerpt convert_breaks="0"$>
</MTIfEmpty>
<MTIfNotEmpty var="PingBlogName">
<amazon keyword="<MTPingBlogName>"><$MTPingExcerpt convert_breaks="0"$></amazon>
</MTIfNotEmpty>
<? } ?>
</div>
</MTPings>
</MTMacroApply>
<span style="font-size:9px;font-style:italic;">updated <$MTDate format="%m/%d/%y %X"$></span><br />


Regex:

CODE
<MTMacroDefine name="music" tag="music"><MTIfNotEmpty expr="[MTMacroAttr name='keyword']"><MTAmazon search="[MTMacroAttr name='keyword']" method="Keyword" line="music" lastn="1"><a href="<MTAmazonLink>" title="Buy now at amazon.com - only <MTAmazonSalePrice>!" onmouseover="return overlib(ImgSrc+'<MTAmazonSmallImage>'+AltEnd+'<MTAmazonReleaseDate format="%b %Y">'+EndPrice+'<MTAmazonSalePrice>'+PurchLink+'<MTAmazonLink>'+PurchEnd, STICKY, TIMEOUT, 2000, CAPTION, '<MTAmazonTitle encode_js="1"> by <MTAmazonArtist encode_js="1">');" onmouseout="return nd();"><MTMacroContent default="[MTAmazonTitle]"></a></MTAmazon></MTIfNotEmpty></MTMacroDefine>


DoSomething code:

CODE
http://valley-grrl.net/movabletype/mt-tb.cgi?tb_id=5&excerpt=%%URL_CURRENTSONG%%&url=blank&blog_name=%%URL_CURRENTALBUM%%%20%2D%


And my this is a sample of what I get in my DoSomething output file (songs.txt):

CODE
Berlin  -  You Don't Know __oddsock____oddsock____oddsock____oddsock____oddsock__4:28
Berlin  -  Masquerade __oddsock____oddsock____oddsock____oddsock____oddsock__4:06


Sorry for all the codes. Apart from that, I don't know of any other strings or templates. sad.gif
kristine
Liz, the error you are getting could be directly from bookqueue. From the author's comments:
QUOTE
"I suspect this is because you don't have permissions to the blog identified by blog id 1, or no blog exists for that blog id. This happens because BookQueue uses the blog id 1 as the default (which is apparently a bug smile.gif.

Until I fix this, you should be able to get around it by adding "blog_id=n" to the query string, where n is your blog id number. So if your blog id was 3 for the blog located at yourblog.com, you would enter http://yourblog.com/mt-bookqueue.cgi?blog_id=3 into the location bar."


I finally got a chance to look over your codes, and I see some inconsistancies. The Incoming template you are using is an old version. Its using instead of music keyword= ... >. So that right there would probably be causing a problem.

You can copy the newer version from the Updated Tutorial (updated a few months ago).

Also, your Ping URL is cut off too short. It should have one more section on it.

The dosomething output file shouldn't be necessary for this.

It looks like your regex template is okay, though smile.gif

Check on that stuff and see if those changes are enough to make things work again. Once you make the changes, you might see about putting the test template back up on your site; that may help me see if anything else is acting up. smile.gif

Kristine
Liz
Thanks Kristine smile.gif. I will check up on all that, but, I think there might be something else to add to that. I tried (as a final test) MT Bookqueue, deleted the XML folder off my site and I was able to see the bookqueu.cgi page just fine, even added books to the queue. Only, of course, it says XML::Simple isn't installed. I added the folder and again got the original string error. In short, it looks like my server does not have XML:Parser installed. I posted about it in their forums just to be sure, might post a help ticket if I get no response. My host is a lovely woman, so I'm sure we'll get to the bottom of this. But, as I said. I will get to fixing the things you mention. Thanks Kristine <3 <3 <3.
Liz
All fixed. But, with the newest incoming template, my pings are not showing up on my incoming page. I placed the test file, again. Nothing shows up, either. I found this other test template on this thread, and it shows my pings. The only way I could show my pings, was with the older incoming template. Why? I don't know. huh.gif sad.gif

EDIT: Ok, scratch that. I just noticed, after I finished up changing all my links, because of the PHP vulnerability scare, that, um somehow, now my incoming page is showing everything correctly. Except that, it shows it twice. I'll see now if I can fix it.

Hee, it's like one step forward, two steps back and vice-versa. biggrin.gif
kristine
Hey, I see actual stuff showing up on your test template now! With overlibs and everything!! smile.gif That's great, definitely a step in teh right direction! smile.gif

And from what you said, you may still have the old incoming template - now that the test page is working, I'd suggest trying to new incoming template again and see if that does it.

Kristine
Liz
Wee! Those are awesome news I hadn't checked lately! And I checked, I think I have the newest incoming template:

CODE
<$MTInclude module="regex"$>
<MTMacroApply>
<MTPings category="Incoming" lastn="10">
<? if ("<$MTPingTitle$>" == "Broadcast Stopped") { echo "<em>WinAmp is off!</em>";  }
else {
?>
<MTIfNotEmpty var="PingBlogName">
<music keyword="<$MTPingBlogName$>"><$MTPingExcerpt convert_breaks="0"$></music>
<?
$asin = "<MTAmazon search="[MTPingBlogName encode_js='1']" method="Keyword" line="music" lastn="1"><$MTAmazonASIN$></MTAmazon>";
?>
</MTIfNotEmpty>
<? if (empty($asin)) {  ?>
<$MTPingExcerpt convert_breaks="0"$>
<? } } ?>
<br />
</MTPings>
</MTMacroApply>
<em>updated <$MTDate format="%m/%d/%y %X"$></em>


I think? smile.gif Ooh I'm so happy! *does happy dance* Now all that's left is to see is why it's not showing up on my front page. I do have an overlib working there, but that was forced, hee. Wee! Oh kristine, I could hug you! biggrin.gif

EDIT: It's all working now. It's showing up on my side menu! Oh joy! biggrin.gif
kristine
Like I commented on your site, I'm so glad we got it figured out finally!!! smile.gif Thanks for sticking around and working through it even though I didn't have the answer on the first try! smile.gif

Kristine
Liz
Nah hun, thank you. I do think you have all the answers, but like any good parent, you let us figure some things out for ourselves. biggrin.gif Thanks so much, girl! smile.gif smile.gif smile.gif And for the comments on my site too! wink.gif
redalert
Can someone help me please? I am confused.
I have my main blog and then according to the Virtual V tutorial, I created a new blog. In the new blog, I added a category named "Incoming," made it accept pings, created a new template and called it "Incoming" with a page called "incoming.php."

Was I supposed to create this category in my main blog?

Then I see people having code with MTPing in it...where am I supposed to add this? Where did it come from?

Right now, I just want my songs to show up on my main blog index page. I am using Winamp 5.0 and it shows that it is sending information, however, my Incoming category shows that it has ZERO pings.

I have been trying to make this work for weeks now. My incoming.php page only shows the last time it was updated but it's empty.

I have not installed IFempty, Micro, or Amazon plugins...I just want my songs to show on my page for now...one thing at a time.

ANY ideas anyone? I am about to give up sad.gif
Thanks.
MsBHaven
Would this work with the latest version of MT?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.