You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 42 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - arnoldkrg and evader99! Please Help! Cookies and Java FTL! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Goodjorb
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2005
Posts: 14


PostPosted: Fri Aug 25, 2006 12:14 am Reply with quoteBack to top

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

www.ventrilospy.com

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!!!
Find all posts by GoodjorbView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Fri Aug 25, 2006 1:06 am Reply with quoteBack to top

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.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
Goodjorb
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2005
Posts: 14


PostPosted: Fri Aug 25, 2006 6:05 am Reply with quoteBack to top

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
Find all posts by GoodjorbView user's profileSend private message
Goodjorb
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2005
Posts: 14


PostPosted: Fri Aug 25, 2006 6:12 am Reply with quoteBack to top

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

$content .= "(script language="javascript" type="text/javascript") "
$content .= "var vspy_width=400; "
$content .= "var vspy_height=300; "
$content .= "var vspy_style="400x300_html"; "
$content .= "var vspy_server="blast.typefrag.com:18776"; "
$content .= "(/script) "
$content .= "(script language="javascript" type="text/javascript" src="http://www.ventrilospy.net/js/show_ventrilo.js">(/script) "
Find all posts by GoodjorbView user's profileSend private message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Fri Aug 25, 2006 8:00 am Reply with quoteBack to top

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

Image

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.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
Goodjorb
Nuke Soldier
Nuke Soldier


Joined: Mar 26, 2005
Posts: 14


PostPosted: Fri Aug 25, 2006 10:31 am Reply with quoteBack to top

Thanks SOO much. The block works like a CHARM.

Thanks for also explaining the issue.

Anyone have an idea on teh cookie issue?
Find all posts by GoodjorbView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.198 Seconds - 168 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::