Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
washbucket
Hangin' Around


Joined: Jul 17, 2007
Posts: 39
Location: colorado

PostPosted: Sun Jan 13, 2008 3:23 pm Reply with quote

Hi! I am currently purchased crazy talk from iclone Only registered users can see links on this board! Get registered or login! and I tried everything to get it to work inside a php block with no luck it uses html I was wondering if I could email you the folder with the exported codes that it produced let you take a look at it. thanks
 
View user's profile Send private message Send e-mail Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun Jan 13, 2008 3:37 pm Reply with quote

So they give you some HTML or flash code and you just need to put that in a block?

You could try pasting that into a content block, or make a file block.

Here is an example file block:

Code:


<?php
if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}

$content = <<<END_CONTENT
(put all your HTML/flash code here)
END_CONTENT;

?>


Name this file block-Something.php and upload to your blocks directory. Activate it in the admin panel.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
washbucket
PostPosted: Mon Jan 14, 2008 6:46 pm Reply with quote

Hi again! thanks for the help but it didn't work here is my code to the block:
<!-- saved from url=(0014)about:internet -->
<HTML>
<HEAD>
<TITLE>CrazyTalk
</TITLE>
</HEAD><BODY>
<div style="position: absolute; left:300; top:400;">
<OBJECT ID="CrazyTalkIE"
CLASSID = "CLSID:13149882-f480-4f6b-8c6a-0764f75b99ed"
codebase="http://plug-in.reallusion.com/CrazyTalk4.cab#version=4,5,410,1"
Width =300
height=300>
<PARAM Name="ModelName" Value="greeter.ctm">
<PARAM Name="ScriptName" Value="greeter.cts">
<PARAM Name="ControlStyle" Value="1">
<PARAM Name="BorderStyle" Value="0">
<PARAM Name="MenuStyle" Value="0">
<PARAM Name="AutoPlay" Value="0">
<embed type="application/RLCT4Player-plugin" width=300 height=300
pluginspage="http://thesnipersquad.com/snipers/greeter/greeter.html"
NAME="CrazyTalkNetscape"
BorderStyle="0"
ControlStyle="1"
ModelName="greeter.ctm"
ScriptName="greeter.cts"
AutoPlay="0"
MenuStyle="0">
</embed>
</OBJECT>
</div>
<br>
<script type="text/javascript">
if (navigator.appName=="Netscape")
{
var CrazyTalk = CrazyTalkNetscape;
}
else
{
var CrazyTalk = CrazyTalkIE;
}
</script>
</BODY>
</HTML>
the link works, but I cannot make it work in a block, could you please take a look at it maybe there is something I need to remove, and is there a script that will start up this file with out having a link to it so when the website starts up it's there too running in a block. thanks
 
Gremmie
PostPosted: Mon Jan 14, 2008 8:44 pm Reply with quote

Well if that code works as a stand-alone web page, it should work as a block. You'll have to remove the HTML, HEAD, TITLE, etc tags and just strip out the body part and assign it to content as shown above.

Or copy the body part into a content block.

Why do you say it didn't work? What did it do? What version of Nuke are you using?
 
washbucket
PostPosted: Mon Jan 14, 2008 9:00 pm Reply with quote

I'm using 7.9 nuke I'll take the HTML,HEAD,TITLE out and see if that takes care of the problem, I was getting a error message before when I tried to run it, so let see how it works now. thanks
 
Gremmie
PostPosted: Mon Jan 14, 2008 9:10 pm Reply with quote

If you are using 7.9, then disable the WYSIWYG editor before trying to make a content block. A file block should work either way though.
 
washbucket
PostPosted: Mon Jan 14, 2008 9:21 pm Reply with quote

k thanks
 
washbucket
PostPosted: Tue Jan 15, 2008 11:08 am Reply with quote

I think I know the problem the block has to have a script to execute the html located in the folder and contain the results to the content here is a example of the last one ya help me out with
<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<script language=\"JavaScript\" src=\"http://ugt-servers.com/server_status.php?id=dHgyLnVndC1zZXJ2ZXJzLmNvbTo3NjYy&style=RkZGRkZGLDEyLDIwMjEyNSww\"></script>";
?>
I email ya the folder last time then ya email me back with the results, also in the html folder is a script and a character which is activated by the html. sound confusing I know, oh by the way this was a ventrilo ya help me confine in a block. thanks again for the support, Can I just email you the folder so you can see all the workings that not show. should be simple for you once you look at it.
 
Gremmie
PostPosted: Tue Jan 15, 2008 1:13 pm Reply with quote

Did you try this? (Note: this assumes you are running a patched Nuke, otherwise you'll have to change the if !defined with an if eregi)

Code:


<?php

$content = <<<END_CONTENT
<OBJECT ID="CrazyTalkIE"
CLASSID = "CLSID:13149882-f480-4f6b-8c6a-0764f75b99ed"
codebase="http://plug-in.reallusion.com/CrazyTalk4.cab#version=4,5,410,1"
Width =300
height=300>
<PARAM Name="ModelName" Value="greeter.ctm">
<PARAM Name="ScriptName" Value="greeter.cts">
<PARAM Name="ControlStyle" Value="1">
<PARAM Name="BorderStyle" Value="0">
<PARAM Name="MenuStyle" Value="0">
<PARAM Name="AutoPlay" Value="0">
<embed type="application/RLCT4Player-plugin" width=300 height=300
pluginspage="http://thesnipersquad.com/snipers/greeter/greeter.html"
NAME="CrazyTalkNetscape"
BorderStyle="0"
ControlStyle="1"
ModelName="greeter.ctm"
ScriptName="greeter.cts"
AutoPlay="0"
MenuStyle="0">
</embed>
</OBJECT>
</div>
<br>
<script type="text/javascript">
if (navigator.appName=="Netscape")
{
var CrazyTalk = CrazyTalkNetscape;
}
else
{
var CrazyTalk = CrazyTalkIE;
}
</script>
END_CONTENT;
?>
 
washbucket
PostPosted: Tue Jan 15, 2008 3:55 pm Reply with quote

thanks that works
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©