PDA

View Full Version : Forum Home Enhancements - Ventrilo Stats Block without needing vBadvanced


Crimm
02-10-2009, 10:00 PM
This mod has been replaced! https://vborg.vbsupport.ru/showthread.php?t=240495

This mod does NOT require vbadvanced. So some people liked my vbadvanced mod that displayed the Ventrilo Status, but didn't want vbadvanced.

I have now made this one that doesn't require vbadvanced, but it does require Style changes. I hope you enjoy!

Support Thread: http://www.mmo-mods.com/forum/showthread.php?p=13858

Author:

Crimm - Included because I have been finding my mods all over the internet taken via RSS :P

Description:

This will place a Ventrilo status block in a column on your vbulletin home. It uses some of the files found on Ventrilo.com's download section plus things I have learned to integrate them into vBulletin.

NOTE 1: Debug option may display server information. Hide the block to non-admins when debugging the block or else malicious individuals could get their hands on your server information.

NOTE 2: Style Changes required! To place this on your forum home, you must make some changes to your forumhome template. All styles are not made the exact same. I will offer examples below, but I can NOT support all the styles for vBulletin. If you have trouble I suggest you contact the style developer for your style.

Difficulty:

6/10 - It's mainly normal installs, but it's difficult to debug this ventrilo status script and it requires template edits.

Requirements:


vBulletin 3.7+ (http://vbulletin.com)
Ventrilo Server (http://ventrilo.com)
PHP SAFE MODE OFF http://www.php.net/manual/en/features.safe-mode.php - Edit php.ini and turn off


Safe mode being off is very important and will be the biggest problem people have with this script. To test and see if you pass this requirement follow these steps:

1. Create a file called info.php
2. Put this line inside it:

<?php phpinfo(); ?>

3. Upload it to your website.
4. Visit the new page by going to: http://yoursite.com/info.php or wherever you uploaded it.
5. Look for a line that says: "safe_mode"
6. If that says - On next to it... then contact your host, because you can't go any further.

**I was going to try and implement a check, but can't seem to figure out how to do that.**


Support:

Here or my site: mmo-mods.com I spend the majority of my online time at my site so feel free to stop by and ask for help.

FAQ's:

Q: Yes I have seen this mod: https://vborg.vbsupport.ru/showthread.php?page=5&t=113432 Isn't this the same mod?

A: No, it isn't like that. It's a side block. - See screenshots.

Q: I'm getting this: CVentriloStatus->Request() failed. PHP Unable to start external status process. Or this error: (Since friendly errors were turned on in version .2) "Can't find or run ventrilo_status"

A: Please post and I will try to help, best bet is to visit my site where this information is being culminated as a community and where I spend most of my time. http://mmo-mods.com. Experience tells me it has to be one of these three things:

1. Permissions: Make sure to chmod your ventrilo_status to 755 if you are on linux. If you are on Windows, make sure that whatever is running your IIS process can execute ventrilo_status.exe
2. You are in PHP safe mode. This won't work in PHP Safe mode.
3. It's a path problem - I made everything relative. I have included some testing scripts, please use them as directed below.
4. Make sure that you have chosen the correct environment set in your settings.

Q: I'm getting this error: "No response."

A: Check your Server information. You can obtain this from your ventrilo host.

Q: I'm getting this error: "Unknown Error."

A: Copy/Paste the exact error and post it here with your domain so that I can take a look

Q: Whats the best way to debug an issue?

A: I included a debug option in the Ventrilo Status Block Options in vBulletin options, but note be very careful as it displays server information that could be useful to hackers. Make sure to hide the block from non-admins when you have this option checked.

Q: I need to hide this block for non-administrators until I can get it working... What do I do?

A: I was going to show you guys how to do IF statements to hide it from Non administrators but it became to combersome. If you need to hide it. Then do this:


Go to admincp->Style Manager
Click add new style
For title put in: Testing
Hit save.
Do the template edits below in the testing style instead of your forum style.
Once completed go back to admincp->Style manager
Click the style you just created and you will see what it looks like.
After you are done testing you can go back to admincp->Style manager and delete the style and click your default style to go back to it.


In future version coming soon ... I will add a way to hide this in the vb options.


Installation:


Download the ZIP file attached
Upload the includes folder to your forum folder
Browse to the includes/ventrilo folder and chmod ventrilo_status to 755 for linux and check execute permissions if you are using Windows.
Go to admincp -> Products -> Install the product in the zip file
Go to Admincp -> vb options -> Ventrilo Block Settings
Put in your server information and check your environment and other settings
Now edit go to Styles & Templates -> Edit the FORUMHOME template of your style (MAKE A BACKUP FIRST!!!!!) and input the following information:

Special note: This has been tested and operational on the default style. For other styles, please contact your style author as I can't troubleshoot other people's work in respect of that developer.

[For a right column status block do this:]

FIND

$navbar

BELOW ADD:

<!-- Ventrilo Status side column -->
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<!-- / Ventrilo Status side column -->

FIND

$footer

ABOVE ADD

<!-- Ventrilo Status side column -->
</td>
<td width="10px"></td>
<td valign="top" width="160px">
<table class="tborder" border="0" cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" width="100%" align="center">
<tr>
<td class="thead">
<center>Ventrilo Status</center>
</td>
</tr>
<tr>
<td class="alt1">
$ventrilo_include
</td>
</tr>
<tr>
<td class="alt2">
<center><font size="-3">$display2</font></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / Ventrilo Status side column -->



[For a left column do this:]

FIND

$navbar

ADD BELOW
<!-- Ventrilo Status side column -->
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top" width="160px">
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
<tr>
<td class="thead">
<center>Ventrilo Status</center>
</td>
</tr>
<tr>
<td class="alt1">
$ventrilo_include
</td>
</tr>
<tr>
<td class="alt2">
<center><font size="-3">$display2</font></center>
</td>
</tr>
</table>
</td>
<td width="10px"></td>
<td valign="top">

<!-- / Ventrilo Status side column -->
FIND

$footer

ABOVE ADD

<!-- Ventrilo Status side column -->
</td>
</tr>
</table>
<!-- / Ventrilo Status side column -->





If you get an error check the FAQ's above before asking for help.
Problems? Post here No problems? Then you are good to go.


Crimm notation on block:

Please leave the notation back to me in the block to help spread the word. I left it small, so it wouldn't bother your site. Us freelancers have to get some fame somehow :)

Mark as installed:

Please mark as installed if you use this script, and I will assist you with a higher priority than everyone else.

Special Thanks!:

https://vborg.vbsupport.ru/showthread.php?t=119933 - This tutorial and those mods are how I figured out how to add the columns successfully. Thank you very much to Kerry-Anne.

Revisions:

Version 1: Starting to gather scripts together
Version 2: Updated installer and worked on style changes
Version 3: Tested and completed install of product and removed call to global.php
Version 4: Updated Readme and FAQ because of copy/paste mistake :P

Also: Added screenshots

EDIT: Added Product updating code from vb.org

Doctor Death
02-11-2009, 07:29 PM
I would really like to see this just for plain old Vbulletin...

Crimm
02-11-2009, 08:22 PM
This is for plain old vbulletin.

qberty
02-11-2009, 10:09 PM
Urgg, Slight problem. I tryed to follow the FAQ, but its weird. It gives me the no response error. Yet I can esily connect to the info perfectly. Im thinking that the ventrilo_status is not working correctly.

Crimm
02-11-2009, 10:24 PM
1. Some hosts have a status password that is NOT used to connect to as the client.

2. What are the permissions of the ventrilo_status file?

3. If you want you can PM me your site and Vent info and I can check the connection status off my test vB. See where the issue maybe.

qberty
02-11-2009, 10:42 PM
I dont mind its 775

IP 0m3ga.clanvent.com
Port 5530

Forum: 0m3ga.com/forum

How would i find the status password? Thank you for your time

SuperTaz
02-11-2009, 10:44 PM
Actually, I need one for vbadvanced.

Doctor Death
02-11-2009, 10:54 PM
This is for plain old vbulletin.

Doesnt it require vBadvanced CMPS - vbadvanced.com?

qberty
02-11-2009, 10:57 PM
Does anyone look at the title?

It says "Ventrilo Stats Block without needing vBadvanced"

Please read. If anyone bothered to look at his Other stuff from here you would notice that he made one for vBA aswell. Sheesh.

Doctor Death
02-11-2009, 11:01 PM
Does anyone look at the title?

It says "Ventrilo Stats Block without needing vBadvanced"

Please read. If anyone bothered to look at his Other stuff from here you would notice that he made one for vBA aswell. Sheesh.


hey douchebag... before you go slamming someone, maybe you ought to read the README FILE included where it clearly says
Requirements:
vBulletin 3.7+
vBadvanced CMPS - vbadvanced.com
Ventrilo Server
PHP SAFE MODE OFF http://www.php.net/manual/en/features.safe-mode.php - Edit php.ini and turn off

Thanks for being so kind. It also said that in this post under requirements until recently. Sheesh.

Crimm
02-11-2009, 11:10 PM
Everyone easy.

Readme is a typo.

Ill fix later. This one doesn't require vba. My other one does.

Also edit your vent information publicly. Send to me via PM. I will check later for you.

Doctor Death
02-11-2009, 11:13 PM
Thanks Crimm, I am excited about this mod... been looking for one like it for a few years! Thanks for putting the time and effort into it.

DJ29Joesph
02-12-2009, 07:26 AM
Dude I was just about to ask you if there was away to do this without vbadvance yesterday..and then you release the product I want without even asking you....amazing...

BTW great job!:up:

Make sure to hide the block from non-admins when you have this option checked.

How would I do that?

and...

Just a quick note for you...

The absolute path with windows that the program debug returns "\" for seperators...

and it doesn't work if you use "\" you have to use "/". In order for me to get it to work I had to edit ventrilo.php

and looking for this:

$stat->m_cmdprog = $statusscriptpath;

changed to

$stat->m_cmdprog = "G:/Forums/includes/ventrilo/ventrilo_status";

But thats on my trial thread!

Btw..I cant seem to get this to work on the actually live site...gives me the

"Can't find or run ventrilo_status"

any tips...I think it has to do with exec permissions even though I chmod it to 775 and it saids "safe-mode" is off. So I have no clue! Has anyone got this to work with godaddy as their host?

Thanks

Crimm
02-12-2009, 12:17 PM
Make sure to hide the block from non-admins when you have this option checked.


How would I do that?

You would have to add an if statement. I'll add that to the FAQ's later today.

Crimm
02-12-2009, 12:18 PM
Just a quick note for you...

The absolute path with windows that the program debug returns "\" for seperators...

and it doesn't work if you use "\" you have to use "/". In order for me to get it to work I had to edit ventrilo.php

and looking for this:

$stat->m_cmdprog = $statusscriptpath;

changed to

$stat->m_cmdprog = "G:/Forums/includes/ventrilo/ventrilo_status";

But thats on my trial thread!

Btw..I cant seem to get this to work on the actually live site...gives me the

"Can't find or run ventrilo_status"

any tips...I think it has to do with exec permissions even though I chmod it to 775 and it saids "safe-mode" is off. So I have no clue! Has anyone got this to work with godaddy as their host?

Thanks

Thank you. I'll update ventrilo.php to change paths on options set.

As for "Can't find or run ventrilo_status".

I have a godaddy account. I'll test for you later today.

Crimm
02-12-2009, 02:18 PM
Make sure to hide the block from non-admins when you have this option checked.

How would I do that?

I updated the FAQ's to help with that.

DJ29Joesph
02-12-2009, 03:24 PM
Thanks!

Crimm
02-12-2009, 03:50 PM
Thank you. I'll update ventrilo.php to change paths on options set.

As for "Can't find or run ventrilo_status".

I have a godaddy account. I'll test for you later today.

Bad news everyone.

I knew some hosts were going to cause an issue, but I guess I can start to make a list.

GoDaddy blocks this script.

http://echelonalliance.net/ventrilo/ventrilo.php - Is a test display.

Looks like the same issue:

http://www.webhostingtalk.com/showthread.php?t=446827
http://www.badsquad.net/modules.php?name=Forums&file=viewtopic&printertopic=1&t=554&start=0&postdays=0&postorder=asc&vote=viewresult

DJ29Joesph
02-12-2009, 03:57 PM
Ah Bummer! Thanks anyway! :(

Crimm
02-12-2009, 04:01 PM
Sorry!

MasterofWorlds
02-13-2009, 06:56 PM
getting this error once block is activated.

Warning: require_once(./includes/ventrilo/ventrilo.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(402) : eval()'d code on line 13

Fatal error: require_once() [function.require]: Failed opening required './includes/ventrilo/ventrilo.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/xxxxxx/global.php(402) : eval()'d code on line 13

thanks for the help

Crimm
02-13-2009, 07:05 PM
De-activate and I'll be in touch shortly.

Heading home for the night.

jesus likes pie
02-14-2009, 01:15 AM
I'm really getting quite frustrated.

Neither this mod nor the other one are working! I know my server is up (on it right now)....and I have the file chmodded to 755 (if I use the ventrilotest.php files from the ventrilo site the error is "CVentriloStatus->Request() failed. No response from server." so the actual ventrilo_status file is fine).

Ughhh

What is going on?!?!?!

Also, if I enter my vent info on the dozen sites available that do this for you it works fine (such as http://ventrilo.com/status.php)

So it's obviously on the web server side. But what could it be??

edit: host is hostgator.

araliun
02-14-2009, 11:10 AM
Quick question to the author:

My Ventrilo configuration is secured with user-authentication. Meaning, you just don't log on with a pre-assigned server password and any-old user name. My Vent requires use of the User-Editor feature with a pre-assigned user name and password (i.e. each user's password is unique and is tied to their pre-assigned user name for authentication to connect). As such - does your configuration file allow the use of a pre-assigned user name and password? or does it just allow a generic password? If the latter - then it will not work for me.

I know - my Vent configuration is not the norm. But I have over 1,000 members - and thus we run a very tight ship in on Ventrilo.

Thanks!
Mark

Crimm
02-14-2009, 02:12 PM
Ill be back online tonight and respond to everyone. I'm out of town using my Blackberry right now.

MasterofWorlds
02-14-2009, 04:24 PM
no problem, thanks for helping us all. I'm going nuts on my end and can't get a decent answer from my host if it's b/c of there CMOD security.

jesus likes pie
02-15-2009, 03:01 PM
Spoke to my host (hostgator). They won't open ports on shared servers.

Crimm
02-16-2009, 02:25 AM
I'm really getting quite frustrated.

Neither this mod nor the other one are working! I know my server is up (on it right now)....and I have the file chmodded to 755 (if I use the ventrilotest.php files from the ventrilo site the error is "CVentriloStatus->Request() failed. No response from server." so the actual ventrilo_status file is fine).

Ughhh

What is going on?!?!?!

Also, if I enter my vent info on the dozen sites available that do this for you it works fine (such as http://ventrilo.com/status.php)

So it's obviously on the web server side. But what could it be??

edit: host is hostgator.

Spoke to my host (hostgator). They won't open ports on shared servers.


I'm coming to find out that:

Godaddy
Hostgator
Gameservers

Are all blocking the ports on certain plans. I'm going to add this to the FAQ today.

Thank you and good luck with your webhost.

Quick question to the author:

My Ventrilo configuration is secured with user-authentication. Meaning, you just don't log on with a pre-assigned server password and any-old user name. My Vent requires use of the User-Editor feature with a pre-assigned user name and password (i.e. each user's password is unique and is tied to their pre-assigned user name for authentication to connect). As such - does your configuration file allow the use of a pre-assigned user name and password? or does it just allow a generic password? If the latter - then it will not work for me.

I know - my Vent configuration is not the norm. But I have over 1,000 members - and thus we run a very tight ship in on Ventrilo.

Thanks!
Mark

This vent status comes from ventrilo.com. From my knowledge the status can't be blocked with anything other than a simple status password. i.e. Doesn't take user authentication.

I know your security is tight, but if you want you can PM me the following things:

Ventrilo Server address
Ventrilo Server port
Ventrilo Server host

What I have found in the past is that most Ventrilo hosts don't even enable the status password. If nothing else we can punch it into a test. Note: I do NOT need an account to access your ventrilo server to get the status.

If you don't feel comfortable sharing with me. You can go here and give it a shot:

http://ventrilo.com/status.php

getting this error once block is activated.

Warning: require_once(./includes/ventrilo/ventrilo.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(402) : eval()'d code on line 13

Fatal error: require_once() [function.require]: Failed opening required './includes/ventrilo/ventrilo.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/xxxxxx/global.php(402) : eval()'d code on line 13

thanks for the help

Did you upload the files that are in the zip? It seems to not be able to find the ventrilo.php file.

MasterofWorlds
02-16-2009, 11:41 AM
did some more testing and changing the CHMOD and now got this error

Fatal error: Cannot redeclare strkey() (previously declared in /home/xxxxxx/public_html/xxxxxx/includes/ventrilo/ventrilostatus.php:21) in /home/xxxxxx/public_html/xxxxx/includes/functions_ventrilostatus.php on line 17

Crimm
02-16-2009, 12:15 PM
That's odd.

Do this for me. I'm still out of town ... PM me your site and what steps you took for install. Let's get this fixed.

Thanks

jesus likes pie
02-18-2009, 12:01 AM
I ended up just using your block but integrating the html/include from this site here:

http://www.instantventrilo.com/ventrilo-server-status.php

Allows you to set CSS attributes so you can have it fit in with your style(s).

Good enough in my eyes, wish the real thing would work but oh well.

Marked as installed anyways.

Crimm
02-18-2009, 12:17 AM
Yeah sorry your host is giving you troubles.

Thank you for the install.

I'm glad to see you got something working :)

PGAmerica
08-13-2009, 07:31 PM
This definately looks like it has potential.

Question: Is there any way at all to NOT make a side block. I think I would rather have a "Ventrilo" section right under the "Who's Online" block.

Crimm
08-13-2009, 07:57 PM
This definately looks like it has potential.

Question: Is there any way at all to NOT make a side block. I think I would rather have a "Ventrilo" section right under the "Who's Online" block.

https://vborg.vbsupport.ru/showthread.php?t=113432&page=9

That mods should cover that need, yes?

PGAmerica
08-13-2009, 10:42 PM
But that is a 3.5 mod. Is this not going to give me the "Secure Token" error like most of the other 3.5 mods do?

Crimm
08-14-2009, 12:17 PM
But that is a 3.5 mod. Is this not going to give me the "Secure Token" error like most of the other 3.5 mods do?

That security token is only dealing with input.

Check my post here:

https://vborg.vbsupport.ru/showpost.php?p=1740367&postcount=127

I was able to get it to work out of the box for 3.8.1

maddoghalo1
11-04-2009, 07:49 PM
I get this:

Fatal error: Cannot redeclare strkey() (previously declared in /home/squeryc/public_html/fraghard.com/forums/includes/ventrilo/ventrilostatus.php:21) in /home/squeryc/public_html/fraghard.com/forums/includes/functions_ventrilostatus.php on line 16

how to fix it?

Crimm
11-04-2009, 08:57 PM
Ill be online for support.

maddoghalo1
11-04-2009, 09:03 PM
So how do i fix that?

Crimm
11-05-2009, 05:45 PM
So sorry for the delay. When I typed that out I was on my BB driving down the road and I've been swamped since then.

Looking at that error, I'm not exactly sure where that error is coming from because I don't use any function strkey(). I also don't have any files named: functions_ventrilostatus.php and that's what it's referencing.

Could you have more than one of these ventrilo mods installed?

Crimm
04-01-2010, 01:59 PM
I just wanted to let you guys know that I have my development server up now, have put off my WoW raiding for a little while :P, and am working on this. I was about 80% complete with the new version with the new additions, etc. before I stopped working on it.

I plan on working on it today and tomorrow and releasing a vb3 version onto vb.org tomorrow. Then this weekend and early next week port that new version to vb4.

:)