Jump to content

mfoland

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by mfoland

  1. I looked at that site, but didn't have the albumart. Would be nice to know how to code it in with titles fetched from the shoutcast server. I have a script that fetches them no sweat.. but it's integrating the artwork haha
  2. I know apple also has a way to retrieve album artwork. Any help would be appreciated. Thanks!
  3. Hello, I have an Internet Radio station and I use Shoutcast. I have a function that allows me to grab the song and artist information such as Del Amitri - Roll To Me and show it on my website, and automatically changing when the songs change. I show the now playing, and last three songs. I'm wondering How I can get it to also pull in album artwork from Last.FM or Amazon such as this website: BIG 106.5 - Dayton's 70s & 80s Hits (move over the black bar and drop down). You will be able to see something such that I would want to accomplish. Not sure if this merely Javascript, or if there's also PHP.. but then again, I'd think Javascript for it to automatically change when a new song plays. Here is the file I currently have setup...which pulls the information from my shoutcast stream. I would love to incorporate album art from Amazon and/or an internal database that I have setup.. Here is what the file currently looks like. I also have stuff commented out for which I am not using ATTM. It pulls the song like artist - title <!--<html> <head>--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js" type="text/javascript"></script> <script src="http://wlqtdb.com/wayne/pollstation.js" type="text/javascript"></script> <!--</head> <body>--> Now Playing on WLQT-DB: <!--<div id="currentsong"> </div>--> <span id="currentsong"></span> Recently Played: <!--<table> <tr><th>Recently Played Songs</th></tr> <tr><td><img id='prevsong1' alt=""><span id="prevsong1"></span></td></tr> <tr><td><span id="prevsong2"></span></td></tr> <tr><td><span id="prevsong3"></span></td></tr>--> <span id="prevsong1"></span> <span id="prevsong2"></span> <span id="prevsong3"></span> <!--<tr><td><span id="prevsong4"></span></td></tr> <tr><td><span id="prevsong5"></span></td></tr> <tr><td><span id="prevsong6"></span></td></tr> <tr><td><span id="prevsong7"></span></td></tr> <tr><td><span id="prevsong8"></span></td></tr> <tr><td><span id="prevsong9"></span></td></tr> <tr><td><span id="prevsong10"></span></td></tr>--> <!-- </table> Testing: <? echo "$currentsong"; ?> </body> </html>--> Any help would be greatly appreciated. As you can see with this result, I do the Current playing song, then it does the last 3 songs. Thanks
  4. Hello, I am attempting to work with a map that I want to do, and get points from a database such as 39.22 -85.1741.12 -83.0541.12 -80.3639.22 -82.55 and I was going to use my map http://severewx.mradio105fm.com/map-img/basemap_white2.gif as the background image. I'm wanting to do something with using those coords to generate a parallegram with any color based on a value. Lets say if tornado then 255,0,0 severe some dark blue. those coords if looking on the map sould be in much of Ohio and SE Indiana. In that bottom left box, If I can remember using coords to put text there..I want to put an updated by, and then yes, you can put a thank you notice on there. I am stuck at what to do. I've tried, and it will not put a box on there to save my life.. Thanks!
  5. Pagination is figured out.. Just the date problem needs fixed!
  6. And back to the pagination on that link on page one that was playlist.html You see numbers like this at the bottom: 1-20 21-40 , etc and since it's no net or if net=1 it bolds that.. That's the pagination i'm trying to do. Do I count my artists in my songlist table or how am I doing that? It's new to me Excerpt of how that pagination on that page is.. If you click the links, you can see how it works! 1-20 21-40 41-60 61-80 81-100 101-120 121-140 141-160 161-180 181-200 201-220 221-240 241-260 261-280 281-293 oh and I believe it's doing the date selected. How should I echo to have it do the today's date? That might be the problem with that!
  7. I don't think I've ever messed with the date function like that. In that drop down I do the date - 1 2 or 3 days so it works to that aspect, but they're able to keep going back 3 days or whatever.
  8. http://www.mradio105fm.com/iplaylist/mediabase/history.php On there, I have a drop down that says select date, I can go back to three days, and when I click on previous days, I can continue going back in days, but I want it so after the 3 days they can't go anymore. Like if you keep playing with the drop down, you'll notice what it's doing.
  9. I was messing around with the date thing and got it going to where I could do -3 days, etc.. However, the problem is I can keep going to 3 more days, and I'm not stoo sure how to do that part. Can I do something like $mindate or something?
  10. Would I be able to echo say 1-20? I do my rows by 20.
  11. Woah! Hey thanks for your help! I got another question on pagination.. http://www.lite945.com/iplaylist/playlist.html take a look at the bottom.. See how that is. I'm trying to figure out how to get that. I know how to get the results from the database, for what I'm doing, but pagination is a whole nother thing haha.. Any help is greatly appreciated. Thanks again!
  12. I tried the search date and I got a blank page Correction -- It won't display the data for the search date.
  13. Thank you so much! Now if I wanted to say history.php?date=2012-11-23 would I replace CURDATE with something? I know I can do curdate -1 if I wanted to eventually.. Thanks again!
  14. And i've tried the date $sql = "SELECT * FROM historylist WHERE `songtype` = 'S' AND `date_played` = 'date(Y-m-d)"; and no go. I had something to where I got only the time and that worked, but I can't get the SQL to get songs by the current date.
  15. I'm wanting it to do todays date and eventually maybe dependant on what is typed in. say date = 2012-11-23 or whatever
  16. This is in a php page as well.
  17. I have but I'm not having much luck
  18. I am in need of assistance. I'm learning and advancing in php, although I've come across a problem. I'm working on a project and I want to to show the time of something and then another part to show just the date. In my database I have a field called date_played and it has a format like this: 2012-11-23 23:27:06 What I want to do is have php look for the 2012-11-23 for the date and then 23:27:06 for the time and then go even further with the date feature have it echo the time like 11:27 PM ( I think I know that part). Can you please help? Your help would be greatly appreciated!
  19. Hmm.. ok.. How would I build one then possibly put it on a page somehow?
  20. Hello, I am creating a website with the use of php and mysql. While I am not advanced, I've been learning quite a bit on php. However, I am looking to build a tracker type script and hide it into my coding so that if someone were to hack into my website and take my website coding, that it would send me an email notifying that they were using my coding. How would I go about this? If you can help me, i'd be glad to credit you! Thank you!
  21. Hey guys, I got what I needed.. It goes through a database. I had someone from the mIRC chat to help.. My next project is making sperate offices and they show up in the office list if they are registered.. In the user profile it will looks like this: Districts user is listed in: Sample District 1 - Level 5 Sample 2 - Level 0 etc... If they are level 8 on the main user level and I add them into my Admin Area (National Headquarters), and want to assign a level for them so they can do certain things... be like National Headquarters - Level 2 If they have National Headquarters - Level 0 and it show up in the office list, have it say Unauthorized acces to this page. IM me on yahoo... quistifa Thanks, Mike
  22. Hello, This is my first time on this forum, and I tried contacting someone in IRC. I am building a school closing system. I am setting up a profile system and use User Levels. I have 17 levels, well 18 if you would count level 0. The levels echo just like this: <?= $userlevel;?> and generates the user level number... However in the profile I want it to be like this: User Level: 10 - Administration etc, etc. How do I define the user levels? Thanks Mike
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.