PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Sun Sep 05, 2004 12:28 pm Reply with quote Back to top

10 to 1 odds GT is is seeing the word PROFILE and trying to GT it which is why that word is the root of the issue Smile Try removing the section of GT that controls profile linking and see if it clears it up Wink
View user's profile Send private message Send e-mail Visit poster's website
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Mon Sep 06, 2004 12:44 am Reply with quote Back to top

I'm not sure about that Bob... I've NEVER had GT running on my site and I had the same problem until I made the adjustment displayed earlier in this post.

You don't suppose it has anything to do with this?

Code:
   else if ((ereg("profile", $url)) && (!ereg("highlight=profile", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "forums.html&file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;


from the includes/sessions.php
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Sep 06, 2004 8:32 am Reply with quote Back to top

That's the problem code. Good catch! Now we just need to fix it.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Mon Sep 06, 2004 9:55 am Reply with quote Back to top

Try changing:
Code:
else if ((ereg("profile", $url)) && (!ereg("highlight=profile", $url)))

to:
Code:
else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Sep 06, 2004 11:13 am Reply with quote Back to top

worship That appears to fix it. Thanks so much CS!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Sep 06, 2004 12:08 pm Reply with quote Back to top

privmsg and memberprofile have the same problem and will have to be changed accordingly. Here are the lines as they should be
Code:
//   else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
   else if ((ereg("privmsg", $url)) && (!ereg("highlight", $url) && !ereg("privmsg", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); //  and put it back for the modules.php
   }
//   else if ((ereg("profile", $url)) && (!ereg("highlight=profile", $url)))
   else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "forums.html&file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;
   }
//   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   else if ((ereg("memberlist", $url)) && (!ereg("highlight", $url) && !ereg("memberlist", $url)))


Please note that it appears if you are using GT then there is still more work to be done or Private Messages will not work with the above changes Mad
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Mon Sep 06, 2004 1:34 pm Reply with quote Back to top

As I glare into my crystal ball, I see a "Patched 2.6" in the near future!

Smile

Do you need the (modules.php?name=) part in the first $url = str_replace section? and if so, why not in the second "forums" part? The format kind of lost me there.
View user's profile Send private message Visit poster's website
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Thu Sep 09, 2004 10:55 pm Reply with quote Back to top

Raven, did you get this working yet?

If so, can I get a copy of the good code?

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Sep 09, 2004 10:57 pm Reply with quote Back to top

You mean the GT part? I haven't had time to explore that. But if you are not using GT then that code above works, afaik.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Thu Sep 09, 2004 11:03 pm Reply with quote Back to top

I'm using 0.4a now Bang Head

Do you think the private messages problem is related to this section of code using the modules.php?name?

Code:
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); //  and put it back for the modules.php
View user's profile Send private message Visit poster's website
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Fri Oct 15, 2004 4:17 pm Reply with quote Back to top

I hate to say it, but this problem is back again.

I seached for the exact phrase "redirect after login" any results take me to a 404 page.

Just experienced the same thing on
Only registered users can see links on this board!
Get registered or login to the forums!


Gosh, my luck searching for things just stinks... Mr. Green
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Fri Oct 15, 2004 5:08 pm Reply with quote Back to top

Simple fix.
Open sessions.php and find:
Code:
else if (ereg("redirect", $url))

change to:
Code:
else if ((ereg("redirect", $url)) && (!ereg("highlight=redirect", $url)))
View user's profile Send private message Visit poster's website
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Fri Oct 15, 2004 5:21 pm Reply with quote Back to top

Thanks Chatserv!

I had already changed that on my copy of 7.4 which is probably why my site wasn't affected.

Next question is if the Private Messages issue has been fixed (described by Raven above).

Again, thanks!
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Fri Oct 15, 2004 5:54 pm Reply with quote Back to top

64bitguy wrote:
Next question is if the Private Messages issue has been fixed (described by Raven above).

Not sure about the one you mean, care to describe it again?
View user's profile Send private message Visit poster's website
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Fri Oct 15, 2004 6:34 pm Reply with quote Back to top

Raven wrote:
privmsg and memberprofile have the same problem and will have to be changed accordingly. Here are the lines as they should be
Code:
//   else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
   else if ((ereg("privmsg", $url)) && (!ereg("highlight", $url) && !ereg("privmsg", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); //  and put it back for the modules.php
   }
//   else if ((ereg("profile", $url)) && (!ereg("highlight=profile", $url)))
   else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "forums.html&file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;
   }
//   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   else if ((ereg("memberlist", $url)) && (!ereg("highlight", $url) && !ereg("memberlist", $url)))


Please note that it appears if you are using GT then there is still more work to be done or Private Messages will not work with the above changes Mad
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Fri Oct 15, 2004 6:43 pm Reply with quote Back to top

This is my append_sid function:
Code:
function append_sid($url, $non_html_amp = false)
{
   global $SID, $admin, $userdata;
   if (ereg("admin=1", $url) || ereg("admin_", $url) || ereg("pane=", $url)){
                        //  The format is fine, don't change a thing.
   } else if (ereg("Your_Account", $url)){
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
           $url = str_replace("modules", "modules.php", $url); //  and put it back for the modules.php
   }
   else if ((ereg("redirect", $url)) && (!ereg("highlight=redirect", $url)))
   {
           $url = str_replace("login.php", "modules.php?name=Your_Account", $url);       //  Strip the .php from all the files,
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
           $url = str_replace("?redirect", "&redirect", $url);       //  Strip the .php from all the files,
           $url = str_replace("modules", "modules.php", $url); //  and put it back for the modules.php
   }
   else if (ereg("menu=1", $url))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);       //  Strip the .php from all the files,
       $url = "../../../modules.php?name=Forums&file=$url";
   }
   else if ((ereg("privmsg", $url)) && (!ereg("highlight=privmsg", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("privmsg.php", "modules.php?name=Private_Messages&file=index", $url); //  and put it back for the modules.php
   }
   else if ((ereg("profile", $url)) && (!ereg("highlight", $url) && !ereg("profile", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("profile.php", "forums.html&file=profile", $url); //  and put it back for the modules.php
       $dummy = 1;
   }
   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("memberlist.php", "modules.php?name=Members_List&file=index", $url); //  and put it back for the modules.php
   } else {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);
           $url = "forums.html&file=".$url; //Change to Nuke format
   }

   if ($userdata['user_level'] > 1) {
   if ( !empty($SID) && !eregi('sid=', $url) )
   {
       if ( !empty($SID) && !eregi('sid=', $url) )   {
      $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
          }
      }   
   }
   return($url);
}

Private messages seem ok at the site
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum