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-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.


All times are GMT. The time now is 07:59 AM.

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.01072 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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