PDA

View Full Version : Add-On Releases - ShoutCast Status - NavBar


m002.p
01-17-2008, 10:00 PM
*This Mod requires Zachariahs ShoutCast Status Forumhome (https://vborg.vbsupport.ru/showthread.php?t=126007) to be installed*
------------------------------------------------

What does this modification do?

This will simply add a more prominent ShoutCast Server Status in your navbar which will aid in more forum members and guests being aware your site has a ShoutCast broadcast enabling them to listen in using windows media player, if online.

What do I need?

You need Zachariahs vb3.6 ShoutCast Server Status Mod installed as mentioned above & a working vbulletin 3.6. You can also use this mod with vBadvanced with the further instructions included.

What have you tested this on?

Tested on vb3.6.8, ShoutCast Status Forumhome mod 2.0 & vBa v3.0 RC2

Demo?

http://www.sog-team.co.uk/index.php > SEE NAVBAR

Instructions:

1)
Firstly upload the image attached "shoutcast_offs.gif" to your styles image misc folder. Example; "domain"/images/misc/

2)
Now open your styles "navbar" template and find:

<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions</strong></div>
</if>
</td>

Underneath add:

<!-- / START SOG-TEAM SCAST NAVBAR STATUS -->

<if condition="$streamstatus">
<td class="alt1" nowrap="nowrap"><div class="smallfont"><img border="0" src="$stylevar[imgdir_misc]/radio.gif" alt="$servertitle: $vbphrase[online] ($currentlisteners/$maxlisteners @ $bitrate kbs)" ALIGN=LEFT><center><b>$servertitle</b><br /><a href="#" onclick="window.open('/forum/$vboptions[forumhome].php?do=mp','mp','statusbar=no,menubar=no,toolbar= no,scrollbars=no,resizable=no,width=360,height=75' ); return false;"><span style="text-decoration: blink;">Tune In</span></a></center></td>

<else />

<td class="alt1" nowrap="nowrap"><div class="smallfont"><img border="0" src="$stylevar[imgdir_misc]/shoutcast_offs.gif" alt="$servertitle: $vbphrase[offline]" ALIGN=LEFT><center><b>$servertitle</b><br/>$vbphrase[offline]</center></td>

</if>

<!-- / END SOG-TEAM SCAST NAVBAR STATUS -->

3)
Save Template

Complete!

--------------------------------------------

How do I get this to also work on VbAdvanced?

If you use VbAdvanced, the variables used will result in the following modification not working unless you perform the following steps. Note you likely need vBa v3.0 to get it to work!

1)
Go to Plugin Manager; "Admin CP > Plugins & Products > Plugin Manager"

Find: "Shoutcast Status Full - Main"

Edit plugin & Change the "Hook Location" to "parse_templates"

2)
Save Plugin

3)
Go to vBa options; "Admin CP > vBa CMPS > Default Settings > Main Options"

Now find: "Portal Output Global Variables"

Copy the following into the box exactly in the format below:

streamstatus
servertitle
bitrate
currentlisteners
maxlisteners

4)
Save Settings

Complete!

How do I get this working on PhotoPlog?

1)
If not done so already; Go to Plugin Manager; "Admin CP > Plugins & Products > Plugin Manager"

Find: "Shoutcast Status Full - Main"

Edit plugin & Change the "Hook Location" to "parse_templates"

2)
Save Plugin

3)
Go to "Admin CP > vBulletin Options > PhotoPlog Settings > Global Variables"

4)
In the "Global Variables" text box add the following in the exact format:

streamstatus
servertitle
bitrate
currentlisteners
maxlisteners

5)
Complete
----------------------------------------

*NOTE - The "Tune In" link will only flash / blink in firefox!*

If you have any other requests or ideas, post them here so I can include them in the next version. The next version will include a product xml.

Please Click Installed if you use this modification!

[B]Version History:

v1.0 - Initial release

m002.p
01-18-2008, 12:29 PM
Reserved for future use & updates

tanyeri24
01-18-2008, 07:17 PM
hi this zachariahs script is one of the best but always I enable the plugin my server load grows up still server not reachable, because of that I have to disable this plugin always.. :(

m002.p
01-18-2008, 07:20 PM
hmm that hasnt happened to me ^^^^^

Perhaps your server hosting package isnt capable of dealing with these type of scripts.

tanyeri24
01-18-2008, 07:40 PM
but the shoutcast is on other server, I dont know why this problem happened at mine vbulletin..

m002.p
01-18-2008, 08:01 PM
You could try setting shoutcast to update its cache at a longer interval....

tanyeri24
01-18-2008, 08:04 PM
the value is 20 at mine, what is your choice?

m002.p
01-18-2008, 08:32 PM
60 ;) ^^^^

tanyeri24
01-18-2008, 09:34 PM
I will try it for one day, now its night not much user online and I can not say if the server load is real..
Must wait till tomorrow, and there is other problem with firefox:
In internet explorer the cell growing with the dj input text but at firefox it stays fix and if the message is too long its overwriting the other box (welcome, Nickname..).
And in firefox the 'tune in' phrase is blinking and in internet explorer not :)

m002.p
01-18-2008, 11:11 PM
Have you a link to your first issue?

The second issue is due to the fact "text decorations" arent picked up by IE and so unfortunetly as stated in the mod info above, the tune in will only blink for firefox.

Pete C
01-23-2008, 09:37 PM
I had the overflow problem too. I changed the two instances of ALIGN=LEFT to ALIGN=CENTER and that seems to have fixed it.

A couple of questions though: -

I also have Photoplog installed (the free version released here) and since this ShoutCast mod is on the navbar, it also displays in Photoplog . . . problem is that (predictably) it always shows the offline message. The stream status is shown correctly on all other pages, just in Photoplog it says "offline" all the time.

Is there any way to either force the correct display on the Photoplog pages OR remove it from the navbar in Photoplog? Indeed, does it necessarily need to be placed on the navbar, or could this code be added elsewhere on the board - in a side column for example?

The other question is: Most of my members listen with Winamp rather than MediaPlayer. Could the code be altered to call Winamp instead?

Any suggestions on these points would be much appreciated.

m002.p
01-24-2008, 07:55 PM
Hello Belder.

In response to your questions,

1)
Yes you can get it to work with PhotoPlog and ive updated the instructions above with the explanation. Unfortunetly due to the mod using other global variables, you need to add them manually like vba.

2)
You can also use the code elsewhere but may require some more development to be displayed in more areas other than the navbar at this stage. However the good news is, I am currently testing a vBa module with a enhanced status in additon to a few other ideas similar to what you have mentioned. They will be released soon :)

3)
In the next version using an imported product, it will be possible to customise the listening option/s using vbulletin options. However before the new update, you need to do the following:

a) Replace your current navbar code with the one below:

<!-- / START SOG-TEAM SCAST NAVBAR STATUS -->

<if condition="$streamstatus">
<td class="alt1" nowrap="nowrap"><div class="smallfont"><img border="0" src="$stylevar[imgdir_misc]/radio.gif" alt="$servertitle: $vbphrase[online] ($currentlisteners/$maxlisteners @ $bitrate kbs)" ALIGN=LEFT><center><b>$servertitle</b><br /><a href="$listenamp"><span style="text-decoration: blink;">Tune In</span></a></center></td>

<else />

<td class="alt1" nowrap="nowrap"><div class="smallfont"><img border="0" src="$stylevar[imgdir_misc]/shoutcast_offs.gif" alt="$servertitle: $vbphrase[offline]" ALIGN=LEFT><center><b>$servertitle</b><br/>$vbphrase[offline]</center></td>

</if>

<!-- / END SOG-TEAM SCAST NAVBAR STATUS -->

b)
Secondly you need to add the following variable to vBa & / or photoplogs list (see instructions above)

listenamp

Hope that helps, and thanks for installing :)

Pete C
01-24-2008, 09:57 PM
Thanks for the reply m002.p, your code for calling Winamp instead of MediaPlayer is appreciated. Unfortunately I've already changed the hook location for Shoutcast to "Global" in order to have Zachariah's ShoutCast display on other pages as well as forumhome (I should have pointed that out). I'm not altogether sure about changing the hook location again, since the trade-off may be to have it display in Photoplog, but not on the rest of the pages as it does at present??

Admitedly placing your code on the navbar is the ideal option, since this displays throughout the site, it's simply that the "full" display gives members more tuning options.

I have figured how to get it displayed in the sidebar though, and with a little juggling could probably get it to display in various other locations.

Thanks again for your helpful reply - I'll have a play around with the instructions and code you've added, and see if I can find a happy compromise. In the meantime I look forward to your next version, I'm sure it will prove extremely popular with ShoutCast users.

m002.p
01-25-2008, 06:26 AM
Thanks for the reply m002.p, your code for calling Winamp instead of MediaPlayer is appreciated. Unfortunately I've already changed the hook location for Shoutcast to "Global" in order to have Zachariah's ShoutCast display on other pages as well as forumhome (I should have pointed that out). I'm not altogether sure about changing the hook location again, since the trade-off may be to have it display in Photoplog, but not on the rest of the pages as it does at present??

Admitedly placing your code on the navbar is the ideal option, since this displays throughout the site, it's simply that the "full" display gives members more tuning options.

I have figured how to get it displayed in the sidebar though, and with a little juggling could probably get it to display in various other locations.

Thanks again for your helpful reply - I'll have a play around with the instructions and code you've added, and see if I can find a happy compromise. In the meantime I look forward to your next version, I'm sure it will prove extremely popular with ShoutCast users.

In either way, the code is flexible. Just remember if you change the hook location to global_start then it could start to slow the web server up hence why using parse_templates does the exact thing for you on PhotoPlog & VbA

Good to see all is working and hopefully in the next version, it will be flexible enough for you to use in all areas of the forum / website without difficulty.

Regards

Matt

swissknife
01-25-2008, 10:37 AM
hi!

Thank you for this great hack!

but i got a little problem: only on forumhome the stat is shown. all other pages, its shown as offline... :(


i plan to show there more than one stream? is it pssible to do ?

Pete C
01-25-2008, 11:56 AM
Your advice has proved invaluable m002.p. I changed the Hook Location to "parse_templates" and made the additions to the Photoplog global variables. Not only does the display work perfectly, but the Stats and History are once again working in the main Shoutcast display!

Previous advice to change the hook location to global start had caused the stats & history to stop displaying, and despite requesting advice in the original Shoutcast Mod thread, I was left believing this was a trade-off for having the display on other pages as well as forumhome.

I'm extremely grateful, not only for your own modification, but for the advice you gave which has led to considerable improvement in our Shoutcast displays. Thank you.


@ swissknife: I'm sorry I can't be more specific, but the path to your forumhome is substantially different to the path to other pages on your site. I suspect this is where your problem lies.

The original Shoutcast display mod needs to be in the root directory of http://www.boards-united.com/neuigkeiten-fragen-kritik-board/ for it to work on those pages.

Currently it appears to reside in the root directory of http://www.fetter-esel.de/ so it may just be a case of uploading it again to the relevant directory.


I hope that helps.

swissknife
01-25-2008, 12:31 PM
thank you, but this seems not to be the problem. the tld boards-united.com is the main url. (record a )

m002.p
01-25-2008, 06:28 PM
@Belder > My Pleasure :) Glad you got it working! If you want to get it to work for the arcade of your site, you also need to add the variables there too :)

@swissknife > Ive looked at your site to understand the issue. It appears the reason why it only shows on the forumhome is because you havent changed the plugin hook location!

To get it to work on other pages you need to a) change the plugin location of "ShoutCast Status Main - Full" to "parse_templates". b) add the variable list for / to the pages concerned.

Please re-read the instructions above and hopefully all will be clear :)

Good Luck!

swissknife
01-29-2008, 11:37 PM
hi!

Thank you a lot , i got it working!!

One little Question: how to configure, if i want to display vidz ?

and: is there a option to get in to the vbcms ?

m002.p
01-30-2008, 08:33 PM
hi!

Thank you a lot , i got it working!!

One little Question: how to configure, if i want to display vidz ?

and: is there a option to get in to the vbcms ?

Great!

I dont understand your first question. What is "vidz"?

Secondly, yes you can get it to work on vbadvanced, if thats what you mean. See the instructions above for vba :)

swissknife
01-30-2008, 08:54 PM
sry. i meant video-streaming.

and my other question was: is there a way so get that code working anyware outside this navbar. for exmaple a new module ?

m002.p
02-04-2008, 01:49 PM
Yes you can get this code working in other modules I believe.

Secondly, unfortunetly no this mod doesnt support video streaming.

Zachariah
02-05-2008, 10:03 PM
Yes you can get this code working in other modules I believe.

Secondly, unfortunetly no this mod doesnt support video streaming.

I have looked in on it, it will soon. :D

BTW: nice on adding to the navbar. I have a lot of changes planned. ;)

m002.p
02-06-2008, 11:11 AM
Thanks Zachariah, especially with helping on the vbA issue :)

murrtex
06-04-2008, 07:08 PM
Thanks
it works only forum home page on me.it does not work on the other forum pages,
what can we do to fix it?
my vb version is 3.7.1

leodestroy
04-22-2009, 02:17 PM
Any one have update for new Vb, like 3.8 or 4.0? ;)

210665
01-29-2010, 04:25 PM
Hello

Here you can rake with an update for VB4.
Would I use much again, perhaps you can simply enter an information if there will be what.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxx

Hallo

Kann man hier mit einem Update für VB4 rechen.
Würde ich dringend wieder gebrauchen, vielleicht könnt ihr hier einfach eine Info geben ob es was geben wird