Help - Search - Members - Calendar
Full Version: Kristine - Winamp Hoverable Playlist
Movable Type Community Forum > Additional Resources > Tips and Tricks
Pages: 1, 2, 3
freecia
I can't get the removepings plugin to work. I'm quite sure I have right url from the do_Something plugin, but the tag body doesn't seem to execute, so there are no pings removed.
the page is visit.freecia.com/removepings.php and here is the code I entered
CODE
<h2>RemovePings</h2>
<ol>
<MTPings category="incoming" lastn="30">
<li><a href="<$MTPingURL$>"><$MTPingTitle$></a><br />
</MTPings>
</ol>
<ul>
<MTRemovePings source_url="http://visit.freecia.com/mt-tb.cgi?tb_id=4&excerpt=%%CURRENTSONG%%&url=blank&blog_name=%%URL_CURRENTALBUM%%%20%%URL_CURRENTARTIST%%" keep="1">
<li><$MTRemovePingExcerpt$></li>
<li>remove pings executed 1</li>
</MTRemovePings>
</ul>

<h3>total removed: <$MTRemovePingCountDeleted$></h3>
count before: <b><$MTRemovePingCountBefore$></b><br />
count after: <b><$MTRemovePingCountAfter$></b>

I added the "remove pings executed 1" debug line and it never shows up on removepings.php. And yes, the category id is also correct. The winamp List works. Test pages are at visit.freecia.com/testwinamp.html and visit.freecia.com/incoming.php

Any ideas? Help? Please? sad.gif
arvind
I don't get what I'm doing wrong. I've just copied and pasted all the stuff from Virtual Venus. Everything is correct. Becuase my my incoming links page shows the songs I'm playing yet how do I acheive the hoverable thing ?. A basic idea how my page is. The Sidebar is a spearate index templates sidebar.php which is called through a php include from the main index. Where do i put the overlib stuff ? How do I put it ?

edited: ok somtimes the hoverable shows while the page is loading but once its over it stops ?? BTW Does anyone know that if there is a number in the album field everything screws up ? huh.gif mellow.gif
freecia
QUOTE (arvind_2100 @ Sep 18 2003, 08:46 AM)
edited: ok somtimes it shows sometimes it doesn't ??

It seems that you have a and tag out of order. Include the overlib.js in the first head tag and get rid of the second set of head tags that encompass your overlib.js inclusion.
It should look similar to
CODE
...
<!--overlib addition !-->
<script language="JavaScript" src="http://visit.freecia.com/overlib.js"></script>
</head>

<body>
<!--overlib addition !-->
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
...

Also remember that incoming.php doesn't include overlib.js, so it doesn't do the fancy picture thing.
arvind
Thanks for the quick reposnse I've done what you said and am trying to cusotmize it. Sometimes it works sometimes it doesn't !

I've posted this on the V V comments can't it somehow be done in WMP 9 because that has a blogging plugin like Winamp I prefer WMP and would love it if someone somehow configured it for that !

Umm and neither brenna remove pings nor kdlb's remove pings work for me I've tried everything !!! My source code
CODE
<h2>RemovePings</h2>

<MTRemovePings source_url="%%URL_CURRENTALBUM%%" keep="8">
<li><$MTRemovePingExcerpt$></li>
</MTRemovePings>

<h3>total removed: <$MTRemovePingCountDeleted$></h3>
count before: <b><$MTRemovePingCountBefore$></b><br />
count after: <b><$MTRemovePingCountAfter$></b>
freecia
ditto for the remove pings problem. I can't get it to work, either. I've tried just rebuilding the templates using the rebuild button at the bottom of the page. I also tried including it in the index rebuilds by clicking the checkbox to rebuild every time an index rebuild is recompiled then rebuilding everything.
Any ideas from the people that have gotten removepingskdlb to work?
freecia
QUOTE (arvind_2100 @ Sep 18 2003, 09:55 AM)
I've posted this on the V V comments can't it somehow be done in WMP 9 because that has a blogging plugin like Winamp I prefer WMP and would love it if someone somehow configured it for that !

Using WMP SongWriter Plugin
You might try modifying the code given there. Potentially, if you extracted all the correct fields, you could ping/post the incoming category and it should display the right info. Instead of echoing to a barnes and noble link, use the ping link and fill in the correct variables in the correct order.
Shurosoft is also working on a SongPost plugin. If you e-mail them, asking them to include a HTTP post feature and include a link to doSomething, they might be able to give you a way to duplicate doSomething in WMP.
From what I understand, the important part is an automated HTTP Post signal sent to the pinged category.
Please keep us updated smile.gif
arvind
i can't get into the shursoft site (gateway timeout) so I've posted and emailed the owner of the blog u've pointed me to. i doubt that'll do 2 good but !
BigBlueBall
Ok, I have this mostly working, although my incoming.php has a bit of weirdness. First, it doesn't update...ever...unless I rebuild the index! I thought this was supposed to update dynamically as my playlist ran? Does incoming.php only get updated when I rebuild it?

Also, as you can see by my test.php page, I'm missing album titles. I've checked the "lookup ID3 info" box in the DoSomething plug-in, but haven't seen any difference. Any ideas?

I had heard of a plug-in for Winamp that will scour your drive for MP3s and automatically update the missing ID3 info from one of the CDDBs. Anyone run across such a beast?
arvind
freecia, try using the source url as source_url="http://blank" rather than just source_url="blank" - that's what worked for me. smile.gif

This si thanks to sarah who posted a comment on the emptypages remove pings comments ! biggrin.gif
BigBlueBall
I'm still trying to figure out if incoming.php is supposed to dynamically list the latest pings. I'm not sure why, but it currently does NOT on my site.

The pings are definitely going in, but incoming.php does not get updated unless I rebuild it. sad.gif
BigBlueBall
It's working now. It was related to another problem I was having. Suffice to say that I was missing a file in extlib.

Doh! huh.gif
Violet
ACK I'm having overlib problems...and I've been staring at my own source code for so long, it's stopped making sense to me!

The playlist is on my Distractions page, and as far as I can tell, I've put everything script-related in the right place.

I realize this isn't totally related to MT, but I saw that a few other people were having problems with the javascript as well, and thought I'd see if anyone would reply with how they fixed it.

If anyone would take a look at it, I would be very very grateful-I'm just worried I've done something ridiculously stupid. If not, at least then I can give up on it.

Thanks! ^_^
kadyellebee
I compared the overlib.js file on your server to mine, and it looks like the TIMEOUT variable was added in a newer version. I was gonna point you over to overlib's site, but it appears to be down - it looks like maybe he's at his bandwidth limit.

You can grab the one from my site, but its gonna have all my changes in it! Mainly color choices and stuff.

Hope that helps,
Kristine
Violet
Words cannot express my joy.

THANK YOU! I had swiped the version I had from some javascript resource I found on Google...Good grief, what a pain that was.

But thank you so much, both for looking things over and for letting me snag your copy of the script! You've saved me from another day of staring blankly at the monitor! ^_^ I really appreciate it!
kadyellebee
Woooo!!! I'm so glad that made it work for you! smile.gif

Have a great blank-staring-free day!!! biggrin.gif

Kristine
bbommarito
I'm gonna post here, simply because I'm having troubles with this particular feature, and maybe I can get some help after trying to get it working for like a year now.

The trackbacks work, the data is posted, however, here's what I get in the incoming.php:

CODE
</MTMacroDefine>


<div style="font-size:11px; padding:2px;line-height:9px;font-family:tahoma, sans-serif;">
<? if (" Green Day - Time" == "Broadcast Stopped") { echo "<em>WinAmp is off right now!</em><br />"; }
else {
?>

<amazon keyword="Nimrod Green Day"> Green Day  -  Time of Your Life </amazon>

<? } ?>
</div>

</MTMacroApply>
<span style="font-size:9px;font-style:italic;">updated 11/22/03 09:16 AM</span><br />


So, no macros are processed, and the ending tags are actually in the file, not hidden as they should be. Any clue as to what's going on?
kadyellebee
bbommarito, you might double check that the Macros plugin is in the correct place, and so on -- its showing the /MTMacroDefine in there because its not processing the plugin tags at all.

Kristine
bbommarito
Okay, you rock, that was it.

I had reversed two files and stuck them in the wrong folders, so now it actually processes. Now, to figure out why my Overlib isn't showing up, and life will be beautiful.

**Update**

Alright, got that firing, now one other thing. Seeing as how the link is down, how do I add the MTRemovePing (Or whatever the script is to remove trackbacks) into that script? And this will be, my final question.

** Update **

One other thing, bah, too many questions: Did anyone when they did the exact instructions get a Javascript error about unterminated String Constant? If so, how did you get rid of it?
addercat
Argh, I am so confused. huh.gif I'm fairly certain I have everything setup properly, but for whatever reason, Winamp is not sending pings to my incoming.php file. The URL I have listed for DoSomething is:

CODE
http://www.englishsun.org/mtype/mt-tb.cgi/1&excerpt=%%CURRENTSONG%%&url=blank&blog_name=%%URL_CURRENTALBUM%%%20%%URL_CURRENTARTIST%%


Winamp acts like everything is working as it should, as it says it's submitting the URL everytime, yet MT says I've got 0 trackback pings... my test page is at http://www.englishsun.org/testping.php, and it's blank. The actual file gives no errors, http://www.englishsun.org/incoming.php, but it only gives the date, so...

Help! Why wouldn't DoSomething be pinging my site? Very frustrating... huh.gif
kadyellebee
If you edit the DoSomething plugin to "Show Status Window" and "Enable Error Messages" does anything show up when you are playing a song? It should tell you if it fails for some reason. Since the Pings inside of MT aren't even showing up, that makes it sound like the song isn't even trying to send something.

Also, what version of Winamp are you using? I'm using 2.9, and so I'm not sure if any other versions are working with this setup yet.

Kristine
budda
I have the same problems as many others. The trackback pings won't show up in my category

I tried to use the trackback url in a real browser and voila I got an xml document back:

CODE
<response>
<error>1</error>
<message>Need a Source URL (url).</message>
</response>

the URL I used is
CODE
http://www.bergenudd.net/mt/mt-tb.cgi/22&excerpt=
%20Ry%20Cooder%20and%20others%20%20-%20%20
Candela%20&url=blank&blog_name=Buena%20Vista%20
Social%20Club%20Ry%20Cooder%20and%20others


so there has to be something instead of the url=blank bit

but nothing happens when I put url=http://www.bergenudd.net/ there. Perhaps I need to url-encode it?
budda
I tried

CODE
http://www.bergenudd.net/mt/mt-tb.cgi/22&excerpt=%20Ry%20
Cooder%20and%20others%20%20-%20%20Candela%20&
url=http%3A%2F%2Fwww%2Ebergenudd%2Enet%2Findex%2Ehtml
&blog_name=Buena%20Vista%20Social%20Club%20Ry%20Cooder
%20and%20others


but then I get a 404 not found



I have mt-blacklist installed but it is set to allow trackbacks on my winamp blog
LisaJill
This is the code that I'm using in dosomething....

CODE
http://www.lisa-jill.com/cgi-local/mt/mt-tb.cgi?tb_id=976
&excerpt=%%
CURRENTSONG%%&
url=blank&blog_name=%%
URL_CURRENTALBUM%%&excerpt=%%
URL_CURRENTSONG%%&url=blank&blog_name=%%
URL_CURRENTALBUM%%%20%2D%20%%
URL_CURRENTARTIST%%


line breaks added to be nice to the mt forums, it is meant to be one single line.

I see in yours that you have some stuff hardcoded in? I don't see the variables in yours..

the only part that you should change is the top line, to reflect your url and the tb id, but your trackback url is formatted fifferently from what it should be.

try the above and letus know how it goes.

Also, if you can install the troubleshooting template at the bottom of the tutorial and link it here, that would help figure things out.
budda
Yes i'm using the string you quoted.

I just copied what came in to my webserver log that I used in the browser.

The pings don't register in the category at all since mt-tb.cgi gives an error

I have the troubleshooting template but it wont help until the pings register.

It seems to be the url=blank bit.

I'm using movable type 2.661 and I see that kadyellebee is using 2.65
could there be some change in the trackback code?

My mt obviously needs a URL but it won't accept a urlencoded url:
url=http%3A%2F%2Fwww%2Ebergenudd%2Enet%2Findex%2Ehtml

because then I get a 404 file not found.

try this link and you will see the error

And with the urlencoded URL you will get this 404 not found
freecia
Try replacing the first part of your url with
CODE
http://www.bergenudd.net/mt/mt-tb.cgi?tb_id=22&excerpt= ...

there's a small change where it has mt-tb.cgi?tb_id=22

It should result in a html page that looks like this
CODE
 
<?xml version="1.0" encoding="iso-8859-1" ?>
- <response>
 <error>0</error>
 </response>

My site is running 2.661 and mt-blacklist v1.6.2
You can take a look at my winamp testpage if you want to see a working test page.

This is my trackback url that I set in DoSomething. Fill in xxx with your own id (and of course your own url).
CODE
http://visit.freecia.com/mt-tb.cgi?tb_id=xxx&excerpt=%%CURRENTSONG%%&url=blank&blog_name=%%CURRENTALBUM%%%20%2D%20%%URL_CURRENTARTIST%%
budda
That was problably it.

And I found where the

CODE
mt-tb.cgi/22


came from. I probably copied it directly from the categorypage inside MT and then appended the rest of the line from the tutorial.

Oh Well wink.gif

I'll continue with the rest of the stuff now.

Thanks for your help freecia and LisaJill!

/Jonas
budda
Woohoo!

It works now!

Thanks for your help. sometimes you need someone outside to look at you code or design to see the flaws.

rgds
Jonas
jamieanne
Hi! Just one question... I've got everything installed and working properly... I just want to know how to change the look of the overlib popup box! I can't find where to change that info... does anyone know??

-jamieanne
http://daidaiiro.net
LisaJill
You have to edit the variables near the top of overlib.js - make a backup first and read carefully. You should be fine then.
jamieanne
Thanks, I've found it and edited it! :)

Actually, I do still have one problem... when Winamp is not on, it doesn't say on the list that "Winamp is off". It just lists the last song played. How do I fix this??

-jamieanne
http://daidaiiro.net
aboutthisboy
Hi, here is my problem which hopefully someone can help me with. I have set up DoSomething and the categories as explained on VV and am receiving pings properly.
You can see the most recently played on my blog right sidebar at: AboutThisBoy.co.uk.
This is an include from this file: Incoming.php.
As you can see, the pings are being displayed properly. I have setup Overlib, but the Amazon part doesn't work..the test page is here..

Any ideas what else I need to do? OverLib is inserted properly in the Main Index template, and I am getting no error messages.
Many thanks.
LisaJill
The third column is empty, so it's not finding the information at amazon to create a link, and overlib only works on links....

are you sure that stuff should be found at amazon? Alot of mine is not.
kadyellebee
Easy way to test if the info is able to be found at Amazon? Copy the first line from the first column of any song and paste it into Amazon. "Placebo - Placebo" found me a different Placebo album, so it should at least be showing that up, if not the right one. Are you sure that the plugins are all installed correctly? The Macros and Amazon plugins control that part of the data, and so both need to work for it to display...

Kristine
aboutthisboy
Hi,

MTAmazon is working correctly as it is used for my booklist on my sidebar. What is more, there are entries in the cache for the music I have been listening to.
Macros is installed where it should be...I have just reinstalled it. Am at a loss now!
kadyellebee
Okay, I looked at this again. Your pings are going into the database for sure because the MTPingBlogName and MTPingBlogExcerpt are showing data.

In one of the example showing on the page right now:
MTPingBlogName = Red Hot Chili Peppers - I Could Die For You
MTPingExcerpt = By The Way - Red Hot Chili Peppers

Its possible that the IfEmpty plugin isn't working in the middle column because only
Red Hot Chili Peppers - I Could Die For You
is showing there. That could be the PHP saying that $asin is empty; if IfEmpty didn't process, it could have that result.

But the 3rd column still suggests that the MTAmazon plugin isn't working because NOTHING is showing.

When I type "By The Way - Red Hot Chili Peppers" into the search box on Amazon's page, the first result is what I assume to be correct: By The Way - Red Hot Chili Peppers

If I type "By+The+Way+-+Red+Hot+Chili+Peppers" into the music searchbox, I also get that album. (that's with spaces turned into plus signs, which is how it looks when typed into my external Amazon search box.)

So I don't see why it wouldn't be working to display correctly, if all the plugins are installed and working in other places on your site. Is there anything that you changed code-wise from the original tutorial? Like the URL inside of Winamp?

Kristine
aboutthisboy
I ran over the things you said, IfEmpty is working OK, I'm pretty sure of that. MTAmazon seems to be finding the correct data, as you suggested. I will doublecheck the Winamp URL when I get home, I seem to remember that I had to use "id=" instead of a "/" somewhere? Also, MTAmazon was edited a while ago to use the .co.uk site, I should have thought of that before...will this make any difference?

Edit:
OK, here is the URL I'm using in Winamp:

QUOTE
Liz
Hi all. Before I came in, I couldn't even get Winamp to ping my category, after reading this topic, I made it work, which I sm forever grateful. biggrin.gif
Now, my problem is only the first word of the song shows! Sometimes the second might show. And I don't even want to start with the rest of it! tongue.gif Thanks for reading this. smile.gif

My url: Valley-Grrl
Test
Incoming

My DoSomething code:
CODE
http://valley-grrl.net/movabletype/mt-tb.cgi?tb_id=4
&excerpt=%%CURRENTSONG%%&url=blank&
blog_name=%%URL_CURRENTALBUM%%&excerpt=
%%URL_CURRENTSONG%%&url=blank&blog_name=
%%URL_CURRENTALBUM%%%20%2D%20%%
URL_CURRENTARTIST%%

I added line breaks so it wouldn't make the page expand needlessly!
kadyellebee
Liz - I don't see anything showing on your pages, except for the last modified tag on the incoming page.

But I can see right off the bat that you have duplicate sections in your dosomething code - you might go back to the tutorial and copy and paste it into dosomething again and see if that works.

Kristine
kadyellebee
QUOTE (aboutthisboy @ Mar 11 2004, 02:14 AM)
Also, MTAmazon was edited a while ago to use the .co.uk site, I should have thought of that before...will this make any difference?

Now that I don't know. Did you actually make the change to the source file or did you download an alternate version of MTAmazon that had the change? You might look and see what is different; maybe the co.uk site doesn't support one of the search options I set up??

Kristine
aboutthisboy
Amazon Files

Above is a link to a zip where I have added my Amazon files. I honestly can't see where, if at all, I changed them. I remember only changing the site that Amazon used. Don't know if this will be any help, but there ARE files in the /cache folder, relating to searches made on music I have listened to recently, so the plugin seems to be working.
Liz
Kristine [/QUOTE]
QUOTE
But I can see right off the bat that you have duplicate sections in your dosomething code - you might go back to the tutorial and copy and paste it into dosomething again and see if that works. 


ohmy.gif Oops! Sorry. I fixed it, the songs are showing, but no album title, though. And no hovera-bility either. sad.gif I installed everything, so I really dunno what's up and what I might've done wrong.

Thanks for the answer, Kristine. biggrin.gif
kadyellebee
I see some songs on your page, Liz, but not in the incoming or test links. Have you played music since you made the change to the dosomething code? Or is there another file that is showing these songs that I'm not looking for:
QUOTE
Blondie - Atomic
AC - DC - Shot Down in Flames
Gary Oldman - I Wanna Be Your Dog
Joe Strummer - Dum Dum Club
Pray for Rain - Off the Boat
Pray for Rain - Chinese Choppers
Sex Pistols - God Save the Queen
Pray for Rain - Off the Boat
Pray for Rain - Chinese Choppers
The Pogues - Junk

At least that's what I'm seeing right now, but I would have assumed they would be in the incoming page too. smile.gif

Kristine
Liz
Yup, have played, and am playing songs since the change. My suspicion is that MTAmazon probably isn't working (maybe something I did/didn't do) On top of that, the pings on my category page aren't showing the complete song titles. huh.gif I'm really happy for all your help, Kristine girl, but I am about to give up. *slaps forehead* Darn thickheaded val I am sad.gif

Edit: Ooh, mean to say, I added a second template using the infamous "lobotomized version" and it shows everything fine, here
aboutthisboy
QUOTE (aboutthisboy @ Mar 11 2004, 10:14 AM)
I ran over the things you said, IfEmpty is working OK, I'm pretty sure of that. MTAmazon seems to be finding the correct data, as you suggested. I will doublecheck the Winamp URL when I get home, I seem to remember that I had to use "id=" instead of a "/" somewhere? Also, MTAmazon was edited a while ago to use the .co.uk site, I should have thought of that before...will this make any difference?

OK, here is the URL I'm using in Winamp:


http://www.aboutthisboy.co.uk/cgi-bin/mt/m...CURRENTARTIST%%

Any more ideas about this, guys? I have reinstalled all plugins, pings are arriving and being displayed correctly, but still no links are appearing.
kadyellebee
Okay, Liz, lets try one more thing. Now that we are sure your pings are working, can you try repasting/rebuilding the test page (the one from the MT Wiki)? It should be working now, but you may not have tried rebuilding it since the pings were going through.

That would help see what really is/isn't working. And one more question - when you originally pasted the tutorial code into your site, is it possible that you used the first tutorial rather than the revised copy? If so, the macros and stuff all were updated in the revised version, as well as the problem with the titles not showing up fully (Lisa had that same problem, so we fixed it in the code)

aboutthisboy, I'm really stumped. It seems like things should be working, but somewhere, there's a hold up. Maybe you could paste one of the other MTAmazon codes that you are using on your site (from your book list) so I could see how that works with the non-UK version.

Kristine
Liz
I went through the revised tut, again, even made a new test template, rebuilding everything and nothing. I even tried a test post to check if MTAmazon was working:

CODE
<MTAmazon method="Wishlist" search="3EZNZXAU42S2M" lastn="4">
<a href="<MTAmazonLink>"><MTAmazonTitle></a><br>
</MTAmazon>


Nothing shows up on the page. I tried re-uploading MTAmazon. I cannot make this work ! sad.gif
aboutthisboy
CODE
<MTAmazon method="Asin" search="[MTBookQueueEntryISBN]">
[URL=<MTAmazonLink>][IMG]<MTAmazonSmallImage>[/IMG]
<MTAmazonTitle> by <MTAmazonAuthor>[/URL]<br />
 status: <MTBookQueueEntryStatus><br />
<MTBookQueueEntryIfBlogEntry>
<a href="<MTBookQueueEntryBlogEntryLink>">My Review of <MTAmazonTitle></a>
</MTBookQueueEntryIfBlogEntry>
</MTAmazon>
aboutthisboy
Liz, I have been having a similar problem sometimes. Nothing shows up at all on the test page. It's quite intermittent, but manually rebuilding the relevant templates in MT sometimes cures it.
In fact, it's currently not working......
and now it is. All I did is play a few tracks and wait for it to ping MT, then refreshed and it worked.
Sorry I couldn't be any more use. If you want to test it further, email me.
Liz
Hi aboutthisboy. Every suggestion/comment helps. But unfortunately, I cannot make this work. sad.gif I know for sure it's some little mistake on my part (wouldn't be the first time). Thanks for trying to help out biggrin.gif.
Liz
Hi! Finally, after going through my templates with a fine-tothed comb and a magnifier, I was able to get my incoming.php to show the playlist. Woot. That's something. Now if only I could get my pings to show the complete song title, I'd be happy. I read somewhere there is a fix for this, but no further details were given. We're finally moving forward, woo! biggrin.gif
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.