Author |
Message |
pureliving
Newbie


Joined: Dec 04, 2008
Posts: 16
|
Posted:
Mon Aug 24, 2009 1:14 pm |
|
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 |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Tue Aug 25, 2009 8:59 am |
|
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 |
|
|
 |
pureliving
Newbie


Joined: Dec 04, 2008
Posts: 16
|
Posted:
Wed Sep 16, 2009 1:55 pm |
|
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 |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Wed Sep 16, 2009 2:48 pm |
|
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 |
|
|
 |
pureliving
Newbie


Joined: Dec 04, 2008
Posts: 16
|
Posted:
Sat Sep 19, 2009 3:02 pm |
|
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 |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Sat Sep 19, 2009 3:58 pm |
|
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! |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Mon Sep 28, 2009 8:31 am |
|
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 |
|
|
 |
spasticdonkey
Newbie


Joined: Sep 05, 2007
Posts: 78
|
Posted:
Sat Oct 10, 2009 9:51 am |
|
i happen to have tapped the shoutbox
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&op=userinfo&username=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=Your_Account&op=([a-z_]*)"',
'"(?<!/)modules.php\?name=Your_Account"',
'"(?<!/)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(
'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] |
|
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Sat Oct 10, 2009 10:06 am |
|
The issue I believe that pureliving had was in not using "&". 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 |
|
|
 |
pureliving
Newbie


Joined: Dec 04, 2008
Posts: 16
|
Posted:
Thu Oct 15, 2009 12:39 pm |
|
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&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',
);
|
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 |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Thu Oct 15, 2009 12:56 pm |
|
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 |
|
|
 |
kenspa
Newbie


Joined: Jul 20, 2005
Posts: 13
|
Posted:
Wed May 13, 2015 6:14 am |
|
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! |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1399
|
Posted:
Thu May 14, 2015 9:33 pm |
|
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 |
|
|
 |
kenspa
Newbie


Joined: Jul 20, 2005
Posts: 13
|
Posted:
Thu Nov 16, 2017 7:34 am |
|
Quote: |
You are not allowed to edit other user's shouts. |
Code: |
$urlin = array(
'"(?<!/)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]*)"',
'"(?<!/)modules.php\?name=Shout_Box&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Shout_Box"',
);
$urlout = array(
'editshout-\\1-page-\\2.html',
'deleteshout-\\1-page-\\2.html',
'shoutbox-page-\\1.html',
'shoutbox.html',
); |
Code: |
#ShoutBox
RewriteRule ^editshout-([0-9]*)-page-([0-9]*).html modules.php?name=Shout_Box&Action=Edit&shoutID=$1&page=$2 [L]
RewriteRule ^deleteshout-([0-9]*)-page-([0-9]*).html modules.php?name=Shout_Box&Action=Delete&shoutID=$1&page=$3 [L]
RewriteRule ^shoutbox-page-([0-9]*).html modules.php?name=Shout_Box&page=$1 [L]
RewriteRule ^shoutbox.html modules.php?name=Shout_Box [L]
|
and in GTZ-PageTap:
after:
Code: |
'"(?<!/)modules.php\?name=Search(?!&)"', |
add:
Code: |
'"(?<!/)modules.php\?name=Shout_Box(?!&)"', |
after:
add:
 |
_________________ The future is on the web! |
|
|
 |
|