vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Ultimate Now Playing Hack - WA3 plugin / data stored in database (https://vborg.vbsupport.ru/showthread.php?t=45604)

N!ck 11-10-2002 10:00 PM

Ultimate Now Playing Hack - WA3 plugin / data stored in database
 
It's here! A real "Now Playing" hack. A WA3 plugin feeds data to the database. (Note: I did not write the plugin - credit for that goes to Brandon Martus of pubarso.com). Once loading a simple script, the plugin runs silently in the background without intervention.

Features:
+"Now Playing" information (at time of post, not currently) is shown next to posts.
+Currently Playing / All History / My History pages
+Dynamic downloading - user needn't edit any files once downloaded.
+Only last two weeks of songs are stored so database usage doesn't get too high.
+Password protected updating


Current Version: 1.0.1

Download: click here

Enjoy! Screenshots will follow.

N!ck 11-10-2002 10:48 PM

Screenshot 1: "Currently Playing" page

N!ck 11-10-2002 10:49 PM

Screenshot 2: "How To Use" page

N!ck 11-10-2002 10:49 PM

Screenshot 3: Member Profile

N!ck 11-10-2002 10:50 PM

Screenshot 4: Postbit

Pancreas Paul 11-10-2002 11:15 PM

Nice man.

Neo 11-10-2002 11:19 PM

Finally.

snyx 11-10-2002 11:44 PM

whoa, this is almost too much
for us running music based sites this should be great
thx mate

N!ck 11-11-2002 12:32 AM

:) glad you guys like it

ZiRu$ 11-11-2002 01:11 AM

Gonna Install It Now.....thx man

EDIT: I cant find

Code:

eval("\$headinclude = \"".gettemplate('headinclude')."\";");
ANYWHERE....or nothing like it.....i will pm you my global.php now man.....

N!ck 11-11-2002 01:41 AM

make sure you're editing the one in your root folder, not in the admin folder

M.C. 11-11-2002 02:09 AM

really nice but can you do it for WinAmp as well???

mheinemann 11-11-2002 02:11 AM

Works great, the only problem I have is that some songs have a ' in the, and they show up with a /.

ie: Adam's Song
turns into: Adam\'s Song

N!ck 11-11-2002 02:21 AM

mmmmm...hold on and i'll get that fixed right up

M.C. This IS for Winamp (Winamp 3 = WA3).

N!ck 11-11-2002 02:35 AM

This fixes a minor problem with song titles that have apostrophes in them. To upgrade from 1.0, follow these instructions (note: in step one, { imagesfolder } should not have the spaces - this is just so vb.org won't parse it):

Code:

1. In admin/functions.php, replace:
----------------------------------------
$post[nowplaying]="<br><br><img src=\"{ imagesfolder }/np.gif\" alt=\"Currently playing...\"> ".$post[npartist]." &raquo; \"".$post[npsong]."\"";
----------------------------------------
With:
----------------------------------------
$post[nowplaying]="<br><br><img src=\"{ imagesfolder }/np.gif\" alt=\"Currently playing...\"> ".stripslashes($post[npartist])." &raquo; \"".stripslashes($post[npsong])."\"";
----------------------------------------

2. In root/global.php, replace:
----------------------------------------
                eval("\$nptext = \"".gettemplate("header_np")."\";");
----------------------------------------
With:
----------------------------------------
                $nowplaying[song]=stripslashes($nowplaying[song]);
                $nowplaying[artist]=stripslashes($nowplaying[artist]);
                eval("\$nptext = \"".gettemplate("header_np")."\";");
----------------------------------------

3. In root/member.php, replace:
----------------------------------------
    $membernptext=$membernowplaying[artist]." &raquo; \"".$membernowplaying[song]."\" (Began $membernpwhenstarted)&nbsp;";
----------------------------------------
With:
----------------------------------------
    $membernptext=stripslashes($membernowplaying[artist])." &raquo; \"".stripslashes($membernowplaying[song])."\" (Began $membernpwhenstarted)&nbsp;";
----------------------------------------

4. Overwrite nowplaying.php with the one in the new zip.

Done!

New version file attached.

Velocd 11-11-2002 02:41 AM

Job well done Nick, although it would be great to have this implemented with Sonique as well..so I'll go search for a similar plugin that might possibly be available.

*clicks install*

ZiRu$ 11-11-2002 02:44 AM

AGH ++++KKKKKKKKKKKKKK

It dosent work....it says "Nothing Recently"

Does that mean it dosen't work with winamp 2.xx?

Velocd 11-11-2002 03:00 AM

It probably only works for Winamp3, according to the Chiefdelphi site inwhich it is from.

mheinemann 11-11-2002 03:02 AM

Quote:

Originally posted by nicksaunders
This fixes a minor problem with song titles that have apostrophes in them. To upgrade from 1.0, follow these instructions (note: in step one, { imagesfolder } should not have the spaces - this is just so vb.org won't parse it):

[snip]

New version file attached.

Worked! Great job on this!

N!ck 11-11-2002 03:02 AM

Velocd is right. also, follow the directions on your "how to use" page to set it up properly.

anyway, i realize that sonique is a popular one, but i'm no good at winamp plugins even, let alone sonique.

Velocd 11-11-2002 03:38 AM

I personally can't stand Winamp3, for it's un-needed complexity, weird features and ugly skins, so I'm not sure how long I'll be able to fiddle around with the app. Although I'm curious to see how the plugin works....so, I'll hold out till then. ;)

N!ck 11-11-2002 03:57 AM

i know what you mean, but i disagree in some ways. search for the moodlogic skin...it's pretty imo.

mister 11-11-2002 04:14 AM

Quote:

Originally posted by nicksaunders
(Note: I did not write the plugin - credit for that goes to Brandon Martus of pubarso.com)
Gee. thanks for letting me know about this.

Thanks also for letting me know you were sending out a direct link to download the ListenTo plugin off my sites forums. >:|

-Brandon Martus

MarkB 11-11-2002 06:23 AM

It's nice to see my genius has inspired such great hacks :D

*runs away from the thrown tomatos and heckling*

Great hack :D

Joe Page 11-11-2002 03:06 PM

I get parse errors in functions.php :(

N!ck 11-11-2002 04:20 PM

mister, i simply provided the means for people to get it that way because i don't want to redistribute something that's not mine. if you want and permiss, i'll include it in the zip if it's causing b/w problems for you.

joe, describe them.

Limpkinw 11-11-2002 04:39 PM

If anyone can help me with the login to Vb using winsock (Delphi or Visual Basic) I have an API that will update the songs in 2.8x. (Developed in Delphi)

NuclioN 11-11-2002 05:00 PM

It's working for me but a member tries to play a song and there is no output to the database at all. I took this member step by step trough the tutorials, screendumps etc. but no results. :(

N!ck 11-11-2002 05:04 PM

make sure they've downloaded the XML file (separate from the ZIP)

NuclioN 11-11-2002 05:18 PM

Do they have to put info in the ListenTo xml file? I see my name in a file that was separated from the zip. (??)

N!ck 11-11-2002 05:41 PM

no, it is dynamically customized for whoever is downloading it. but the file DOES need to be downloaded nevertheless.

NuclioN 11-11-2002 06:01 PM

Ok tnx, it's working for me though. Others are having difficulties with the installation, i shall try to translate it to Dutch. ;)

mister 11-11-2002 06:08 PM

Quote:

Originally posted by nicksaunders
if you want and permiss, i'll include it in the zip if it's causing b/w problems for you.
Either put it in the zip, or on a different website somewhere. I'd rather not have it linked from my site. Just change the default URL provided in the scripts, and leave my name on it. Be sure to include the iTunes3 one also, for the Mac users.

Thanks.

N!ck 11-11-2002 07:35 PM

done. i hope there was no real harm done. :(

NuclioN 11-11-2002 08:40 PM

Members getting a "....does not appear to have a valid description block" kind of error when they're playing a sound. I'm sure they went trough the tutorial in a strickt order with screendumps and files that were uploaded binairy and ascci to look if there's an error somewhere. They have the latest winamp so i don't know how to go further, we spent the whole afternoon to figure out what's wrong and now we're stuck. :(

N!ck 11-11-2002 08:48 PM

:/ i've got no idea. like i said, i suck at WA plugins. anyone else having this problem?

N!ck 11-11-2002 09:04 PM

Quote:

Originally posted by MarkB
It's nice to see my genius has inspired such great hacks :D

*runs away from the thrown tomatos and heckling*

Great hack :D

i'd love to see it on UltimateMetal.com. wouldn't take too much to adapt it to coordinate with what you've got already.

Limpkinw 11-11-2002 09:13 PM

Does anyone have a board I can test my WinAmp 2.x Application on with this hack? I would install but I have too much going on with my site to install this RIGHT NOW, but I will install Soon.

N!ck 11-11-2002 10:04 PM

just send it to me like i said; i'll try it out

Limpkinw 11-11-2002 10:11 PM

I am still in testing stages I need a working board to test it, I have sucessfully logged into Vbulletin with winsock, retrieved song from winamp, but I need to get the commands to send the song to vBulletin. Until then it will not function.


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01163 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete