Arnold and Evaders. Im asking for you guys because you are helpful and knowledgeable. Ive searched and searched for this, but found only dead end threads, or information that I could not utilize, So - I throw you two quick questions.
Forget snakes on a plane, we gots JAVA ON A BLOCK!!!
After searching for hours to find a working Ventrilo status block, and reading through threads that are three years old! - I found
They status your server for you and let you cop/paste the code.
The code works fine, but I would like to embed it into a little block on either side of my site. When I paste the code into the block and click create...i get the error that "Tag is not allowed"
So I added - script>2" or whatever - still the same problem. ive also read that i need to add this to my includes, but what and how do i add it? does it matter that i dont actually have the script on my machine - I am just calling it from ventrilospy?
2 - Unread posts show up for my users as read after a few clicks. Ive gathered that this is an issue with cookies or cookie paths. Ive read where peopel change it or leave it black. Where and how do I do this?
THANKS A LOT, NUKE COPS ROCKS!!!
arnoldkrg Major
Joined: Aug 03, 2003
Posts: 936
Location: United Kingdom
Posted:
Fri Aug 25, 2006 1:06 am
I presume the code you have may contain usernames, passwords, server ports and other sensitive information. PM me with the code you have and I will try to turn it into a block for you. Send all instructions they give. I will test it and PM you back with the code. I have made a working ventrilo block in the past, but its a couple of years ago now.
_________________
Goodjorb Nuke Soldier
Joined: Mar 26, 2005
Posts: 14
Posted:
Fri Aug 25, 2006 6:05 am
arnold, once again your true colors shine through.
you are a wonderful person!
Anyone have any ideas on those unread posts being marked as read/cookies?
Thanks!
Last edited by Goodjorb on Fri Aug 25, 2006 6:17 am; edited 1 time in total
Goodjorb Nuke Soldier
Joined: Mar 26, 2005
Posts: 14
Posted:
Fri Aug 25, 2006 6:12 am
Irony! I cant even PM the code, even if it is nested within the CODE tags. hahaha...
Ill just goahead and post it here and explain any changes I had to make in order to post it.
---------Start code------------
Code:
(script language="javascript" type="text/javascript")
var vspy_width=400;
var vspy_height=300;
var vspy_style="400x300_html";
var vspy_server="server.name.com:port";
(/script)
(script language="javascript" type="text/javascript" src="http://www.ventrilospy.net/js/show_ventrilo.js")(/script)
--------end code-----------------
I made every < and > into ( and )
Ive even tried this and get the same "not allowed" error
<?php
if (eregi("block-Ventrilo.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
}
$content = "";
$stuff = <<< End_Stuff
<s cript language="javascript" type="text/javascript">
var vspy_width=400;
var vspy_height=300;
var vspy_style="400x300_html";
var vspy_server="blast.typefrag.com:18776";
</s cript>
<center>
<s cript language="javascript" type="text/javascript" src="http://www.ventrilospy.net/js/show_ventrilo.js"></s cript>
</center>
End_Stuff;
$content .= $stuff;
?>
(I have added a space after the s in the opening and closing script tags to allow it to post)
Save the above as block-Ventrilo.php and upload to the blocks directory of your site. Go to admin.php.....blocks and create the block by scrolling down and giving it a title. Next select Ventrilo from the dropdown Filename menu. Then click create. Works best as a center block.
Now I am gonna explain how that works because the procedure is failsafe and can be used to produce any javascript/html block.
See in the code where it says
Code:
$stuff = <<< End_Stuff
That tells the code that everything from now till the next End_Stuff is to be assigned exactly as it is to the $stuff variable. So after that, I added your code just as it came and then added End_Stuff; to tell it to stop assigning. (its called a heredoc).
Next we concatenate the $stuff variable to the $content variable and wonder of wonders, it all works.
All you have to do in future is to paste any new block code where your ventrilo code is, change the name of the file and the name in the top line of code and, Hey Presto you have yourself a new block.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum