vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   hack request - a plugin to print the contents of a text file and output into postbit (https://vborg.vbsupport.ru/showthread.php?t=49087)

Dominick 02-18-2003 09:06 PM

hack request - a plugin to print the contents of a text file and output into postbit
 
reason?
xmms and winamp both have plugins to print the current song and artist to a file. If vB could read this file then it could print what the poster is currently listening to.

of course this would probably be a pain in the toosh but I suppose any hack this good (in mine eyes) is worth atleast requesting.

here is the plugin info for the xmms changer

Code:

#!/usr/bin/perl

open (TEMPFILE, "> /tmp/xmms.song")
        or die "Couldn't open the local temporary file!!";

print TEMPFILE "Now Playing: ";
for (@ARGV) {
        print TEMPFILE " $_ ";
}

and here is the file that it works with... (irc plugin of course)

Code:

#!/usr/bin/perl -w
$start = "true";
IRC::register("Now-Playing", "0.1", "", "");
IRC::add_command_handler( "np", "print_to_channel");

sub print_to_channel
{
        open(INFO, "/tmp/xmms.song");
        @lines = <INFO>;
        IRC::command( $lines[0] );
        close(INFO);

        return 1;
}

here is linkage to the winamp app called nowplaying that does just about the same damn thing.

http://drpizza.arsware.org/nowplaying/

:banana:

so can we get a go at it?

-Dom

amykhar 02-18-2003 09:12 PM

That hack is already made. Search for nowplaying :D

Dominick 02-18-2003 09:18 PM

w00w000w000000!

thanks ya

Dominick 02-18-2003 10:09 PM

just went through it. not what Im looking for. the hack I am refering to will automatically pull whatever is playing

amykhar 02-18-2003 10:22 PM

there are two now playing hacks. One you have to type it in. The other uses the winamp plugin.

Amy

amykhar 02-18-2003 10:23 PM

ps I know it exists cause I am using a modified version of it on my board for premium members.

Dominick 02-19-2003 12:37 PM

http://tech-lounge.com/forum/showthr...=&threadid=852
worked perfectly

thank you
:)

amykhar 02-19-2003 12:53 PM

No prob. Happy to see you got it working.

Amy


All times are GMT. The time now is 04:26 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.00993 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete