| Author |
Message |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Thu Jan 31, 2008 2:09 pm |
|
Thanks for your input, which made me to get it to work. I have only tested it on my test server locally, but it was working there in Firefox, Explorer and Opera.
This is the GT-SPChat.php file I used:
<?php
/************************************************************************
* Script: TegoNuke(tm) ShortLinks
* Version: 1.0
* Author: Rob Herder (aka: montego) of http://montegoscripts.com
* Contact: montego@montegoscripts.com
* Copyright: Copyright © 2006 by Montego Scripts
* License: GNU/GPL (see provided LICENSE.txt file)
************************************************************************/
//GT-NExtGEn 0.4/0.5 by Bill Murrin (Audioslaved) http://gt.audioslaved.com (c) 2004
//Original Nukecops GoogleTap done by NukeCops (http://www.nukecops.com)
$urlin = array(
'"(?<!/)modules.php\?op=modload&name=SPChat&file=chat&rid=([0-9]*)&first=([0-9]*)"',
'"(?<!/)modules.php\?op=modload&name=SPChat&file=index&roomid=([0-9]*)"',
'"(?<!/)modules.php\?name=SpChat"'
);
$urlout = array(
'spchat-room-\\1.html',
'spchat-\\1.html',
'spchat.html'
);
?>
This is the .htaccess
#SpChat
RewriteRule ^spchat-room-([0-9]*).html modules.php?op=modload&name=SPChat&file=chat&rid=$1&first=$2
RewriteRule ^spchat-([0-9]*).html modules.php?op=modload&name=SPChat&file=index&roomid=$1
RewriteRule ^spchat.html modules.php?name=SPChat |
Last edited by Slackervaara on Sat Feb 02, 2008 4:33 am; edited 1 time in total |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 946
|
Posted:
Thu Jan 31, 2008 11:13 pm |
|
Well, I am sure glad you did get this to work, as I was plum out of ideas.  |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Sat Feb 02, 2008 2:26 am |
|
I have added the GT-SpChat.php and the lines in .htaccess now on my web hotel, but Shortlinks does not work here. If I debug, it complains that no GT-SpChat.php exists in the File path, although it is present allright in the Shortlinks directory. On the local server, the identical files works perfectly.
I have made a chat block: GTB-block-spchat.php
<?php
/******************************************************************************
* Script: TegoNuke(tm) ShortLinks "Block Tap" for the block-spchat.php
* block file.
* Version: 1.0
* Author: Rob Herder (aka: montego) of http://montegoscripts.com
* Contact: montego@montegoscripts.com
* Copyright: Copyright © 2006 by Montego Scripts
* License: GNU/GPL (see provided LICENSE.txt file)
******************************************************************************/
$urlin = array(
'"(?<!/)modules.php\?op=modload&name=SPChat&file=chat&rid=([0-9]*)&first=([0-9]*)"',
'"(?<!/)modules.php\?op=modload&name=SPChat&file=index&roomid=([0-9]*)"',
);
$urlout = array(
'spchat-room-\\1.html',
'spchat-\\1.html',
);
?>
It taps the links correct in Firefox, but it does not produce a correct chat window at all. The debug of this is allright |
Last edited by Slackervaara on Sat Feb 02, 2008 4:31 am; edited 1 time in total |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Sat Feb 02, 2008 4:31 am |
|
I have found the error GT-SpChat.php should be named GT-SPChat.php instead, because the web hotel has a Linux server that is case sensitive. It is working now. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 946
|
Posted:
Sat Feb 02, 2008 8:40 am |
|
Ah, good find! |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Sun Nov 02, 2008 1:43 am |
|
I have found a new problem with Shortlinks and SPChat. With Shortlinks off chatters are in the chat window greeted by a welcome message and the last 10 earlier chat messages, but if Shortlinks is enabled this is not seen and it is just white.
I know the program code in SPChat that is involved, but I can't post it here, because Sentinel stops it. Grateful for suggestions! |
| |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Mon Nov 03, 2008 3:18 am |
|
I have experimented this morning a little on my test server and maybe found a solution. Earlier you suggested a modification in mainfile.php to solve a problem I had with IP-look up for guests in forum. I have modified it to include SPChat:
| Code: |
if ((isset($name) && isset($file)) && ($name == 'Forums' && $file == 'modcp')|($name == 'SPChat' && $file == 'index')) {
} else {
if (isset($tnsl_bUseShortLinks) && $tnsl_bUseShortLinks && file_exists(INCLUDE_PATH.'includes/tegonuke/shortlinks/shortlinks.php')) {
define('TNSL_USE_SHORTLINKS', TRUE);
@include_once(INCLUDE_PATH.'includes/tegonuke/shortlinks/shortlinks.php');
}
}
|
Instead of index I tried out, receive and chat, but they did not work.
Can I use this on my productive site? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 946
|
Posted:
Mon Nov 03, 2008 9:01 am |
|
Well, that single '|' character is not going to work. Are you sure your code isn't really using '||', two of them? The '||' is the OR condition in PHP.
Unfortunately I have no familiarity with SPChat. I would think that it would be better to find out which URLs are still needing to be tapped? |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Tue Nov 04, 2008 3:10 am |
|
I have tapped the URL for SPChat absolutely correct, but it is not still working correctly. I have added two || and it is working also. I have also just added it on the productive site and the Welcome message is now visible again. The code of the Welcome message seems to contain javascript and maybe it is the cause of the problem? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 946
|
Posted:
Tue Nov 04, 2008 8:03 am |
|
Ah, yes, embedded links through Javascript. That can cause issues. If you would like me to take a more in depth look at this, do you mind zipping up the SPChat module and sending it to me (because I think you had to make some changes to work with RavenNuke right?). If desired, please send to montego AT montegoscripts DOT com. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Tue Nov 04, 2008 8:51 am |
|
Thanks. I have just sent SPChat to you. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 307
|
Posted:
Wed Nov 05, 2008 9:05 am |
|
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 86
|
Posted:
Wed Nov 05, 2008 9:22 am |
|
I have had problems with hackers that uploaded index.php and config.php through smileyupload.php of SPChat, so I have removed that file and it stopped it completely. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 307
|
Posted:
Wed Nov 05, 2008 9:26 am |
|
|
|
 |
|
|