Montego Scripts: Forums
 

 

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



Joined: Dec 04, 2008
Posts: 16

PostPosted: Mon Aug 24, 2009 1:14 pm Reply with quote

I have written out the rewrites and GT links for the shout box, but for some reason the few links after the first, will not work correctly, with the first link shoutbox.html keep showing up in every link after upon my website, where am i going wrong:

.HTACCESS :
Quote:

#ShoutBox
RewriteRule ^shoutbox.html modules.php?name=Shout_Box [L]
RewriteRule ^shoutboxpage-([0-9]*).html modules.php?name=Shout_Box&page=$1 [L]
RewriteRule ^editshout-([0-9]*)-([0-9]*).html modules.php?name=Shout_Box&Action=Edit&shoutID=$2&page=$1 [L]
RewriteRule ^deleteshout-([0-9]*)-([0-9]*).html modules.php?name=Shout_Box&Action=Delete&shoutID=$3&page=$1 [L]



GT_Shout_Box.php and GTB-block-Shout_Box : :
Quote:

$urlin = array(
'"(?<!/)modules.php\?name=Shout_Box"',
'"(?<!/)modules.php\?name=Shout_Box&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&Action=Edit&shoutID=([0-9]*)&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&Action=Delete&shoutID=([0-9]*)&page=([0-9]*)"'
);

$urlout = array(
'shoutbox.html',
'shoutboxpage-\\1.html',
'editshout-\\1-\\2.html',
'deleteshout-\\1-\\2.html'
);


I have also added shoutbox to the GTB-block-Modules.php file, but although shoutbox.html works, the other links seem to come up like:

shoutbox.html&Action=Edit&shoutID=3&page=1

Are the above written as they are supposed to, or have i done something wrong?

I noticed this happen to a few others i have modified, is there a specific reason as to why this could happen, as it would be really appreciated to know please.

Thank you.
xxBlessxx
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Aug 25, 2009 8:59 am Reply with quote

The rewrites will be attempted within the order you list them. You have to move your less selective items towards the bottom.

_________________
“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
pureliving
Newbie
Newbie



Joined: Dec 04, 2008
Posts: 16

PostPosted: Wed Sep 16, 2009 1:55 pm Reply with quote

Sorry i have took a while coming back to this issue, but i have rearranged the order, and still only the one link shoutbox.html is working; however the delete and edit link, when pressed keeps coming up as:
Quote:

shoutbox.html&Action=Edit&shoutID=4&page=1
shoutbox.html&Action=Delete&shoutID=4&page=1


I then changed the code a little to indicate a - where page is, etc, and still it is not working correctly.

Quote:

#ShoutBox
RewriteRule ^deleteshout-([0-9]*)-page([0-9]*).html modules.php?name=Shout_Box&Action=Delete&shoutID=$3&page=$1 [L]
RewriteRule ^editshout-([0-9]*)-page([0-9]*).html modules.php?name=Shout_Box&Action=Edit&shoutID=$2&page=$1 [L]
RewriteRule ^shoutbox-page-([0-9]*).html modules.php?name=Shout_Box&page=$1 [L]
RewriteRule ^shoutbox.html modules.php?name=Shout_Box [L]


Quote:

$urlin = array(
'"(?<!/)modules.php\?name=Shout_Box&Action=Delete&shoutID=([0-9]*)&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&Action=Edit&shoutID=([0-9]*)&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box"'
);

$urlout = array(
'deleteshout-\\1-page\\2.html',
'editshout-\\1-page\\2.html',
'shoutbox-page-\\1.html',
'shoutbox.html'

_________________
Purity 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Sep 16, 2009 2:48 pm Reply with quote

I just noticed the name of your GT file. Is it really this:

GT_Shout_Box.php

If so, it needs to be this instead:

GT-Shout_Box.php

_________________
“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
pureliving
Newbie
Newbie



Joined: Dec 04, 2008
Posts: 16

PostPosted: Sat Sep 19, 2009 3:02 pm Reply with quote

Sorry that was just a typo error on here.
Checking over my files, it is already the way you state, though i am still left with the links not working, as stated above.

Have i written the RewriteRules and urlin/urlout links correct?

I don't suppose you have any further advice please, as it would truely be appreciated and of grateful help.

xx Bless xx

_________________
Purity 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Sep 19, 2009 3:58 pm Reply with quote

I don't really have a need for the Shout box nor ever used it, so would you mind PM'ing me your web address so that I can take a look at the links from the web?

Thanks!
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Sep 28, 2009 8:31 am Reply with quote

pureliving,

Would you please send me your GTB and GT files for Shoutbox please? Send them to montego || at || montegoscripts // dot // com.

BTW, I tried to get into the admin via the credentials that you gave me, but they would not work on the pop-up. But, that is ok as I do not need access to admin at this time. Also, I suspect that my PM/Forum post auto-replies are going into your junk mail because you have not picked up my PM response to you PM from Saturday.

_________________
“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
spasticdonkey
Newbie
Newbie



Joined: Sep 05, 2007
Posts: 78

PostPosted: Sat Oct 10, 2009 9:51 am Reply with quote

i happen to have tapped the shoutbox Smile
I used "lobby-chat" but replace as needed

this will work for:
GT-Shout_Box
GTB-block-Shout_Box

Code:
$urlin = array(
'"(?<!/)modules.php\?name=Your_Account&amp;op=userinfo&amp;username=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Your_Account&amp;op=([a-z_]*)"',
'"(?<!/)modules.php\?name=Your_Account"',
'"(?<!/)modules.php\?name=Shout_Box&amp;Action=Delete&amp;shoutID=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&amp;Action=Edit&amp;shoutID=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box"'
);

$urlout = array(
'userinfo-\\1.html',
'account-\\1.html',
'account.html',
'lobby-chat-delete-\\1-page-\\2.html',
'lobby-chat-edit-\\1-page-\\2.html',
'lobby-chat-archives-\\1.html',
'lobby-chat.html'
);


and htaccess
Code:
#Shoutbox
RewriteRule ^lobby-chat-delete-([0-9]*)-page-([0-9]*).html modules.php?name=Shout_Box&Action=Delete&shoutID=$1&page=$2 [L]
RewriteRule ^lobby-chat-edit-([0-9]*)-page-([0-9]*).html modules.php?name=Shout_Box&Action=Edit&shoutID=$1&page=$2 [L]
RewriteRule ^lobby-chat-archives-([0-9]*).html modules.php?name=Shout_Box&page=$1 [L]
RewriteRule ^lobby-chat.html modules.php?name=Shout_Box [L]
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Oct 10, 2009 10:06 am Reply with quote

The issue I believe that pureliving had was in not using "&amp;". I had sent her that feedback a few days back but haven't had confirmation yet from her.

_________________
“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
pureliving
Newbie
Newbie



Joined: Dec 04, 2008
Posts: 16

PostPosted: Thu Oct 15, 2009 12:39 pm Reply with quote

Thank you for clarifying my mistake, it surely helped, as all links are working, using the following:

Quote:

#ShoutBox
RewriteRule ^deleteshout-([0-9]*)-page-([0-9]*).html modules.php?name=Shout_Box&Action=Delete&shoutID=$3&page=$1 [L]
RewriteRule ^editshout-([0-9]*)-page-([0-9]*).html modules.php?name=Shout_Box&Action=Edit&shoutID=$2&page=$1 [L]
RewriteRule ^shoutbox-page-([0-9]*).html modules.php?name=Shout_Box&page=$1 [L]
RewriteRule ^shoutbox.html modules.php?name=Shout_Box [L]


Quote:

$urlin = array(
'"(?<!/)modules.php\?name=Shout_Box&amp;Action=Delete&amp;shoutID=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&amp;Action=Edit&amp;shoutID=([0-9]*)&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box&amp;page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box"',
);

$urlout = array(
'deleteshout-\\1-page-\\2.html',
'editshout-\\1-page-\\2.html',
'shoutbox-page-\\1.html',
'shoutbox.html',
);



Though i can not understand now, why after i click to edit a shout from my test user account, why i get this error message:

Quote:

You are not allowed to edit other user's shouts.

_________________
Purity 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Oct 15, 2009 12:56 pm Reply with quote

Thanks for letting us know.

Please turn ShortLinks off temporarily and make sure the error is truly SL related or not. If it isn't, I would rather not address other issues here in a SL thread. But, my guess is that you have to be admin to edit? Don't know as I've never used the module/block.

_________________
“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
kenspa
Newbie
Newbie



Joined: Jul 20, 2005
Posts: 12

PostPosted: Wed May 13, 2015 6:14 am Reply with quote

Hi montego: I know this might be out of date, but the shoutbox is needed!!

I´m using the shoutbox on RN2.5.1, and the shouts come out with full links in both the block and module.
They become [URL] when edit them by only pressing the button update

Tried to add what I thought was missing in Shortlinks: GT_Shout_Box.php and GTB-block-Shout_Box and added rewrites to ShortLinks.htaccess, but nothing changed.

many thanks for any reply!!

_________________
The future is on the web! 
View user's profile Send private message Send e-mail
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu May 14, 2015 9:33 pm Reply with quote

kenspa, sorry. Been out of the game a long while... Not sure I'll be back.

_________________
“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 ©
linear-bunch