vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Whos online for Vb jukebox (https://vborg.vbsupport.ru/showthread.php?t=74679)

Murphinator 01-18-2005 10:00 PM

Whos online for Vb jukebox
 
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

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:
Code:

                case 'online':
                        $userinfo['action'] = $vbphrase['viewing_whos_online'];
                        break;

under that add
Code:

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

Find:
Code:

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

under that add
Code:

        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/, 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

Quote:

Originally Posted by Murphinator
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

Code:

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

yoyoyoyo 01-19-2005 10:49 PM

Quote:

Originally Posted by Murphinator
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

Code:

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

or:
Code:

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

Quote:

Originally Posted by yoyoyoyo
or:
Code:

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:
Code:

<script>

function doPopUp(){
doPopUpWindow = window.open("vb_jukebox.php","jukepop","location=yes,directories=yes,toolbar=yes,menubar=yes,status=yes,scrollbars=yes,resizable=yes,left=100,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:
Code:

<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

Code:

<script>

var popunder="vb_jukebox.php"

var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=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


All times are GMT. The time now is 01:52 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.01218 seconds
  • Memory Usage 1,758KB
  • 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
  • (11)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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