Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 58

PostPosted: Thu Jan 31, 2008 2:09 pm Reply with quote

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&amp;name=SPChat&amp;file=chat&amp;rid=([0-9]*)&amp;first=([0-9]*)"',
'"(?<!/)modules.php\?op=modload&amp;name=SPChat&amp;file=index&amp;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
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 896

PostPosted: Thu Jan 31, 2008 11:13 pm Reply with quote

Well, I am sure glad you did get this to work, as I was plum out of ideas. Sad

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 58

PostPosted: Sat Feb 02, 2008 2:26 am Reply with quote

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&amp;name=SPChat&amp;file=chat&amp;rid=([0-9]*)&amp;first=([0-9]*)"',
'"(?<!/)modules.php\?op=modload&amp;name=SPChat&amp;file=index&amp;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
View user's profile Send private message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 58

PostPosted: Sat Feb 02, 2008 4:31 am Reply with quote

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.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 896

PostPosted: Sat Feb 02, 2008 8:40 am Reply with quote

Ah, good find!

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
Forum - Join the conversation on the Thoughts.com forums
Search Engine Ranking Placement - Improve your SEO services. Premium web content, intelligent links, quality optimization & competitive search engine placement. You deserve better rankings!
executive resumes - Providing complimentary resume analysis
PhpNuke Themes
Lobo Links Web Directory
linear-bunch
linear-bunch