PDA

View Full Version : Whos online for Vb jukebox


Murphinator
01-18-2005, 10:00 PM
well this is my first modification :D so exciting :P

________________________________________________
what this modification will do is it will let you see who is listening to the jukebox in the whos online page, the jukebox this works for is here (https://vborg.vbsupport.ru/showthread.php?t=74170)

now onto the hack, the instructions are below and in a txt file also.

There is one file to edit, and two edits total
There is one phrase to make.
_
|1|
In ROOT/includes/functions_online.php find:
case 'online':
$userinfo['action'] = $vbphrase['viewing_whos_online'];
break;

under that add
case 'jukebox':
$userinfo['action'] = $vbphrase['jukebox'];
break;


Find:

case 'online.php':
$userinfo['activity'] = 'online';
break;

under that add

case 'vb_jukebox.php':
$userinfo['activity'] = 'jukebox';
break;

__________________________________

alright now go to your FORUMS-->ACP-->LANGUAGES & PHRASES--> PHRASE MANAGER

at the bottom of the page there is a button labled "add new phrase"
click it and follow these steps:

1. enter the varname as follows: "jukebox"
2. Enter the text as "listening to the jukebox"
3. Click save.

Hopefully youll understand this because i tried to make it as clear as possible!

Enjoy, please tell me how i did, it worked for me on 3.05, again this is my first modification so tell me what i could do better!

Click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=74679), please and thank you!

trafix
01-19-2005, 09:32 PM
Nice .... do you want me to code it into the next release?

Murphinator
01-19-2005, 09:38 PM
sure, but i think i might have messed up, idk, its my first one so im realllly nervous

Murphinator
01-19-2005, 09:39 PM
actually try looking it over yourself, just incase i did mess it up :ermm:

yoyoyoyo
01-19-2005, 10:01 PM
works for me!

**clicks install**

Murphinator
01-19-2005, 10:09 PM
cool it worked for you?

yoyoyoyo
01-19-2005, 10:12 PM
cool it worked for you?
had to change the one capital J to a lower case and also changed the varname to jukeboxview (since "jukebox" is too generic for my taste), but otherwise yep.

Murphinator
01-19-2005, 10:18 PM
ok cool!

Murphinator
01-19-2005, 10:27 PM
Ok i found out something i did wrong and did right here :P yes it works perfectly!

yoyoyoyo
01-19-2005, 10:30 PM
here is a screenshot:

http://img52.exs.cx/img52/8295/jukebox5pm.jpg

Murphinator
01-19-2005, 10:43 PM
if you want it to show up in online with a link to the jukebox to heres what you want the text in the phrase to be


Listening to the Jukebox<br><a href="vb_jukebox.php">Jukebox</a>

yoyoyoyo
01-19-2005, 10:49 PM
if you want it to show up in online with a link to the jukebox to heres what you want the text in the phrase to be


Listening to the Jukebox<br><a href="vb_jukebox.php">Jukebox</a>


or:

Listening to the<br><a href="vb_jukebox.php">Jukebox</a>

Murphinator
01-19-2005, 11:07 PM
yeah that would work too

yoyoyoyo
01-19-2005, 11:28 PM
or:

Listening to the<br><a href="vb_jukebox.php">Jukebox</a>


excuse me- I am an idiot- I pasted the wrong code- what I meant to post was a popup window:
try this:

<script>

function doPopUp(){
doPopUpWindow = window.open("vb_jukebox.php","jukepop","location=yes,directories=yes,toolbar=yes,menubar=y es,status=yes,scrollbars=yes,resizable=yes,left=10 0,top=100,screenX=100,screenY=100");
}

</script>
listening to the Jukebox<br><a href="javascript:doPopUp()">JUKEBOX</a>


or for popping up the window on mouseover:
<script>

function doPopUp(){
doPopUpWindow = window.open("vb_jukebox.php","jukepop","");
}

</script>
listening to the Jukebox<br><a href="#" onmouseover="doPopUp()">JUKEBOX</a>

yoyoyoyo
01-19-2005, 11:34 PM
an updated screenshot :D

http://img75.exs.cx/img75/3011/jukelisten4en.jpg

Murphinator
01-19-2005, 11:58 PM
cool :D i only have one install :( :P

yoyoyoyo
01-20-2005, 12:01 AM
use this if you want a pop under window :D

<script>

var popunder="vb_jukebox.php"

var winfeatures="width=800,height=510,scrollbars=1,resizable=1,tool bar=1,location=1,menubar=1,status=1,directories=1"

var once_per_session=0


function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>
listening to the Jukebox<br>
<a href="javascript:loadpopunder()">Jukebox</a>

Murphinator
01-20-2005, 12:21 AM
cool

Murphinator
01-27-2005, 10:40 PM
great to know im the only one who installed! :P