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

PostPosted: Sun Dec 16, 2007 10:25 pm Reply with quote

I have PHP-Nuke 7.6 with patch 3.3 and the PH2 theme with Shortlinks 1.20. When members tries to edit a Private Message in the Outbox it fails and one is transferred to the Inbox.

This is the link to Edit in a Message with Shortlinks on:
http://localhost/nuke/messages.html&file=index&mode=edit&p=16531&sid=7c2d0342e1cb51c0d1270a1623e65f8c

This is the link to Edit in a Message with Shortlinks off:
http://localhost/nuke/modules.php?name=Private_Messages&file=index&mode=edit&p=16531&sid=48fccb7ed88ad45f570216e3264d22e1
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Dec 17, 2007 8:27 am Reply with quote

Interesting. I don't think the original creators of this (nor myself since) ever even considered something editing their posts after it was sent. Wink

Try this:

=== OPEN FILE ===

ShortLinks/GT-Private_Messages.php

=== FIND LINE ===

Code:

'"(?<!/)modules.php\?name=Private_Messages&amp;file=index&amp;mode=(reply|quote)&amp;p=([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',


=== REPLACE WITH ===

Code:

'"(?<!/)modules.php\?name=Private_Messages&amp;file=index&amp;mode=(reply|quote|edit)&amp;p=([0-9]*)((\")|(&amp;sid=[a-zA-Z0-9]*))"',


=== OPEN FILE ===

.htaccess

=== FIND LINE ===

Code:

RewriteRule ^messages-(reply|quote)-([0-9]*).html modules.php?name=Private_Messages&file=index&mode=$1&p=$2 [L]


=== REPLACE WITH ===

Code:
RewriteRule ^messages-(reply|quote|edit)-([0-9]*).html modules.php?name=Private_Messages&file=index&mode=$1&p=$2 [L]


=== DONE ===
 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 126

PostPosted: Mon Dec 17, 2007 10:21 am Reply with quote

Many thanks for the rapid response! It fixed the problem I had.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Mon Dec 17, 2007 10:36 am Reply with quote

Excellent. Thanks for letting me know. I have made this a Sticky and this will be fixed in an upcoming 1.2.1 release after the New Year.

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