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
firedemon666
Hangin' Around


Joined: Apr 28, 2006
Posts: 31

PostPosted: Fri Jul 07, 2006 7:27 pm Reply with quote

Hello once again all. It's been a little while since I've posted here and since I visited last we have rethemed our site and reloacted it to a 100 mbit server.

I just a had a quick question and am hoping that there is a simple solution.

It seems that several people have derived a way of making the web messenger srvice offered by e-buddy.com into a php nuke block.

All e-buddy does is allow you to access messenger services such as aim, msn, and yahoo through the web without having to have them installed on the PC. Like the way AIM express works.

The script people are using to get the login content into a block is quite simple. They just set it up as a block, and remote link to the PHP login script.

Code:


<?php

if (eregi(\"block-MSN_Login.php\",$_SERVER[\'PHP_SELF\'])) {
   Header(\"Location: index.php\");
   die();
}

$content = \"<scr~ipt src=\\\"http://www.e-messenger.net/everywhere.php\\\"></scr~ipt>\";
?>



That works nicely as a block. But what I had in mind was to remove the content from the block, and make it a permanent part of a php page. Specifically this one:
Only registered users can see links on this board! Get registered or login!

And place it directly below the join area for our chatroom. It would make sense this way since both are "webchats" and would be located on the same page.

I have tried several options including the simplest of them all by inserting the line:

include ("http://www.e-messenger.net/everywhere.php");

into the index file of that page. If you visit that link to the everywhere script however, you will notice its a plain page with a bunch of raw code and the login area. It works fine however when implemented as a block.

What procedure do I need to go about to move the login area from a block to a web page?

Many thanks in advance.[/code]
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Fri Jul 07, 2006 8:07 pm Reply with quote

How about this (of course, remove the ~ in scr~ipt):
Code:
<?php

if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}
if (stristr($_SERVER['QUERY_STRING'],'%25')) header("Location: index.php");

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);


echo "<scr~ipt src=\"http://www.e-messenger.net/everywhere.php\"></scr~ipt>";

?>

Save it as index.php and put it in modules/Web_Chat directory. It assumes you're using the latest Nuke patch.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
firedemon666
PostPosted: Fri Jul 07, 2006 9:24 pm Reply with quote

Wow. That worked like a charm.

Thanks man.

Does anyone know if the e-buddy site also has these "everywhere" scripts for aim and yahoo?

I know they have aim and yahoo web chats on their sites, just not sure if they have the php scripts you can remote link to like the msn one.
 
firedemon666
PostPosted: Fri Jul 07, 2006 10:22 pm Reply with quote

OK. Found the links for the aim and the yahoo.

Only problem left is getting everything sorted nice and neat.

What I mean is i put in the index.php a simple line

include ("messenger.html");

and organize the code in it like this, mixed with html and php.




Code:


HTML HEADER HERE
Msn web info here
HTML FOOTER HERE

PHP HEADER HERE
php msn code here
PHP FOOTER HERE

HTML HEADER HERE
yahoo messenger info here
HTML FOOTER HERE

PHP HEADER HERE
php yahoo code here
PHP FOOTER HERE



Except when I load the web page, it categorizes everything by the type of scripting used. so the web page will display like this:

Code:


MSN INFO HERE

YAHOO INFO HERE

MSN LOGIN HERE

YAHOO LOGIN HERE


Which looks just plain sloppy.

You can go to Only registered users can see links on this board! Get registered or login!
to see what i mean. How do i fix this annoyance?
 
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 ©