Joined: Oct 30, 2002 Posts: 1043 Location: RedNeck Land (known as Kentucky)
Posted:
Sun Sep 05, 2004 12:28 pm
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 Try removing the section of GT that controls profile linking and see if it clears it up
Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
Posted:
Mon Sep 06, 2004 12:44 am
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;
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Mon Sep 06, 2004 12:08 pm
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
Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
Posted:
Mon Sep 06, 2004 1:34 pm
As I glare into my crystal ball, I see a "Patched 2.6" in the near future!
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.
Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
Posted:
Thu Sep 09, 2004 11:03 pm
I'm using 0.4a now
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
Joined: Mar 06, 2004 Posts: 1156 Location: Sanbornton, NH USA
Posted:
Fri Oct 15, 2004 6:34 pm
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
Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
Posted:
Fri Oct 15, 2004 6:43 pm
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
}
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