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: 86

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: 946

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: 86

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: 86

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: 946

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
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 86

PostPosted: Sun Nov 02, 2008 1:43 am Reply with quote

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!
 
View user's profile Send private message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 86

PostPosted: Mon Nov 03, 2008 3:18 am Reply with quote

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



Joined: Feb 12, 2005
Posts: 946

PostPosted: Mon Nov 03, 2008 9:01 am Reply with quote

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 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 86

PostPosted: Tue Nov 04, 2008 3:10 am Reply with quote

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



Joined: Feb 12, 2005
Posts: 946

PostPosted: Tue Nov 04, 2008 8:03 am Reply with quote

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 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 86

PostPosted: Tue Nov 04, 2008 8:51 am Reply with quote

Thanks. I have just sent SPChat to you.
 
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 307

PostPosted: Wed Nov 05, 2008 9:05 am Reply with quote

I must check out SPChat again sometime. I removed it a while ago due to unfixed security issues.

_________________
Spam Stopper - Comments Modules - Security News - Script Installer 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 86

PostPosted: Wed Nov 05, 2008 9:22 am Reply with quote

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



Joined: Jul 18, 2005
Posts: 307

PostPosted: Wed Nov 05, 2008 9:26 am Reply with quote

Slackervaara wrote:
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.

Thats one way of doing it Smile

_________________
Spam Stopper - Comments Modules - Security News - Script Installer 
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 - 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