vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBulletin Radio 2.3.x (https://vborg.vbsupport.ru/showthread.php?t=71950)

johns_ar 04-09-2005 10:15 PM

Quote:

Originally Posted by khaleel
The unknown location bug will be fixed in the next release

good skills mate, cheers

khaleel 04-10-2005 05:38 PM

Next update due This tuesday!

subnet_rx 04-12-2005 12:37 AM

what's coming in this update? I guess if it's coming tomorrow, I'll just wait to update what I have now.

weaver 04-12-2005 03:58 AM

Great hack! I saw a post earlier talking about track numbers. Is there a way to edit track numbers? Mine were uploaded in alphabetical order but I don't want them to play in that order. Thanks :)

khaleel 04-15-2005 08:39 AM

I would not recommend this since Its not neat and tidy ;) but try doing this.
Go to
This is the playlist.php
This randomizes the playlist
Code:

<?PHP

$y=1;
$i=1;
$track = "";

$rbsPath = "sounds/";
$rbsExt = ".rbs";

if ($dir = opendir(".")) {
        while (false !== ($file = readdir($dir))) {
                if ($file{0} != "=") {
                        if (strrchr($file,".") == $rbsExt) {
                                    $last_mod = filemtime($file);
                                    $track[$last_mod] = utf8_encode($file);
                                    $i++;
                            }
                }
        }
}

closedir($dir);

header ("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<tracks>\n";

if ($track != "") {

        // * Shuffled Playlist
        // * by moeli
        // * http://www.moeli.com/scripts/

        $shuffled = array_rand($track, count($track));
        foreach($shuffled as $skey) {
                $newlist[$skey] = $track[$skey];
        }
        while (list ($key,$val) = each ($newlist)) {
                echo "<track trackMod=\"".$key."\" title=\"".utf8_encode(htmlentities(substr($val,0,strrpos($val,'.'))))."\" path=\"".$rbsPath.htmlentities($val)."\"/>\n";
                $y++;
        }
}

echo "</tracks>";

?>

and this if you it alphabetical

Code:

<?php
$y=1;
$i=1;
$track = '';

$rbsPath = 'sounds/';
$rbsExt = '.rbs';

if ($dir = opendir('.')) {
    while (false !== ($file = readdir($dir))) {
        if ($file{0} != '=') {
            if ( strrchr($file,'.') == $rbsExt) {
            $last_mod = filemtime($file);
            $track[$last_mod] = utf8_encode($file);
            $i++;
            }
        }
  }
}
closedir($dir);

header ("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<tracks>\n";
if ($track != '') {
  sort($track);
  while (list ($key,$val) = each ($track)) {
        echo "<track trackMod=\"".time()."\" title=\"".utf8_encode(htmlentities(substr($val,0,strrpos($val,'.'))))."\" path=\"".$rbsPath.$val."\"/>\n";
        $y++;
  }
}
?>


lefthome 04-16-2005 06:49 PM

Clicked Installed! Works great in 3.07

weaver 04-21-2005 07:41 PM

Quote:

Originally Posted by khaleel
I would not recommend this since Its not neat and tidy ;) but try doing this.
Go to
This is the playlist.php
This randomizes the playlist
Code:

<?PHP
 
$y=1;
$i=1;
$track = "";
 
$rbsPath = "sounds/";
$rbsExt = ".rbs";
 
if ($dir = opendir(".")) {
        while (false !== ($file = readdir($dir))) {
                if ($file{0} != "=") {
                        if (strrchr($file,".") == $rbsExt) {
                                $last_mod = filemtime($file);
                                $track[$last_mod] = utf8_encode($file);
                                $i++;
                }
        }
        }
}
 
closedir($dir);
 
header ("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<tracks>\n";
 
if ($track != "") {
 
// * Shuffled Playlist
// * by moeli
        // * http://www.moeli.com/scripts/
 
        $shuffled = array_rand($track, count($track));
        foreach($shuffled as $skey) {
                $newlist[$skey] = $track[$skey];
        }
        while (list ($key,$val) = each ($newlist)) {
                echo "<track trackMod=\"".$key."\" title=\"".utf8_encode(htmlentities(substr($val,0,strrpos($val,'.'))))."\" path=\"".$rbsPath.htmlentities($val)."\"/>\n";
                $y++;
        }
}
 
echo "</tracks>";
 
?>

and this if you it alphabetical

Code:

<?php
$y=1;
$i=1;
$track = '';
 
$rbsPath = 'sounds/';
$rbsExt = '.rbs';
 
if ($dir = opendir('.')) {
while (false !== ($file = readdir($dir))) {
if ($file{0} != '=') {
if ( strrchr($file,'.') == $rbsExt) {
$last_mod = filemtime($file);
$track[$last_mod] = utf8_encode($file);
$i++;
}
}
}
}
closedir($dir);
 
header ("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<tracks>\n";
if ($track != '') {
sort($track);
while (list ($key,$val) = each ($track)) {
echo "<track trackMod=\"".time()."\" title=\"".utf8_encode(htmlentities(substr($val,0,strrpos($val,'.'))))."\" path=\"".$rbsPath.$val."\"/>\n";
$y++;
}
}
?>


Is it supposed to randomize as default? Mine are playing in the order I uploaded them with most recent files uploaded played first.

khaleel 04-22-2005 08:31 PM

Quote:

Originally Posted by snobbymom
Is it supposed to randomize as default? Mine are playing in the order I uploaded them with most recent files uploaded played first.


It has its own mind. :nervous: To everyone about to post for support:

http://www.death-eater.net/forum/sho...=7639#post7639

See that ^ and see www.radioblogclub.com and its forums!

If you really really need help and cant wait till june email me khaleelm@gmail.com ill respond to emails! Emails ONLY! No pms or posting here!

Brandon Sheley 04-23-2005 06:17 AM

Hi. just wanted to say thank you very much for this. took me a full 5mins to install. no problems at all :), by reading the post im guessing you modified the install instructions some, cuz some ppl saying bad insturctions ? well anyways i had no problem and im not the smartest with code work, but i sometimes manages to get things working the way i want..lol..
anyways thank you again, great mod, is the last pieces that i needed to set up my site :D.

Loco Macheen *clicks install*

aloha 04-26-2005 07:18 AM

The radio is pretty easy to make... the flash and so forth.

Can someone possibly turn this into a bigger hack?

By allowing users to 'have their own radio blog' on your site.
Allowing the upload of music, with space limitations by usergroups and subscription based memberships...
Having it extract statistics...
Allowing users to have a webpage within your forum... perhaps just under the top banner... with different information about them... their likes on music... ETC....

I think the possibilities on that are endless, and it can produce a substantial amount of traffic, having your banner on the media player and linking it back to your site... This would definately be great to sites that are dedicated to music... ETC...

Anyone up to doing this? Or no... :ermm:


All times are GMT. The time now is 10:38 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.01299 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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