| Author |
Message |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 58
|
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: 896
|
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: 58
|
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: 58
|
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: 896
|
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 |
|
|
 |
|
|