Home arrow Forum
wrong path in button "Go Up"&"Go Down"
  Welcome, Guest. Please login or register.
January 07, 2009, 09:18:12 PM
Home New Posts Search Calendar


Login with username, password and session length
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: wrong path in button "Go Up"&"Go Down" « previous next »
Pages: [1] 2 Go Down Print
Author Topic: wrong path in button "Go Up"&"Go Down"  (Read 10570 times)
Sid Vishez
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
wrong path in button "Go Up"&"Go Down"
« on: June 19, 2005, 06:31:29 AM »

I have site http://uc.zra.ru/site & forum http://uc.zra.ru/site/forum.

Button "Go Down" has path http://uc.zra.ru/site/site/index.php?option=com_smf&Itemid=78&expv=0&topic=61.0#bot , but right path is http://uc.zra.ru/site/index.php?option=com_smf&Itemid=78&expv=0&topic=61.0#bot. The same is true for button "Go Up".

If I use url "http://uc.zra.ru/site/forum" to go at forum, then button "Go Down" & "Go Up" has right path - http://uc.zra.ru/site/forum/index.php?topic=71.0#bot

P.S. My english is bad Smiley, i`m - russian

* wrong path2.PNG (18.64 KB - downloaded 25 times.)
« Last Edit: June 20, 2005, 01:05:25 PM by Sid Vishez » Logged
Sid Vishez
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #1 on: June 20, 2005, 01:13:12 PM »

The same is true for new version 1.3.1.3  Cry
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: wrong path in button "Go Up"&"Go Down"
« Reply #2 on: June 20, 2005, 01:19:39 PM »

Sid,

I can't access your site.

EDIT: I guess what you just need to do is edit your SMF theme file and remove the extra "/site" on the link.
« Last Edit: June 20, 2005, 01:37:33 PM by cowboy » Logged
Sid Vishez
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #3 on: June 20, 2005, 02:35:03 PM »

Quote
I can't access your site.
Unfortunately, hosting of my site open only for intranet.

Quote
I guess what you just need to do is edit your SMF theme file and remove the extra "/site" on the link
But when I use url "http://uc.zra.ru/site/forum" to go at forum, then buttons "Go Down" & "Go Up" has right path http://uc.zra.ru/site/forum/index.php?topic=71.0#bot (theme is good) ...
I think, it is wrong solution. May be third level domain with subfolder guilty. Has anybody such configuration, which works?
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: wrong path in button "Go Up"&"Go Down"
« Reply #4 on: June 20, 2005, 02:40:09 PM »

But does your other button links work?
Logged
Sid Vishez
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #5 on: June 20, 2005, 02:43:02 PM »

Yes, it is.
Only "Go Up" & "Go Down" does not work.
Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: wrong path in button "Go Up"&"Go Down"
« Reply #6 on: June 20, 2005, 03:00:03 PM »

I believe you can edit the theme via the SMF admin. If you really cannot edit it, my suggestion is to disable that button for now.
Logged
Sid Vishez
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #7 on: June 22, 2005, 10:38:36 AM »

I disabled this buttons, but today I found another wrong link Sad
wrong - http://uc.zra.ru/site/site/ ...
good - http://uc.zra.ru/site/ ...
« Last Edit: June 22, 2005, 10:57:01 AM by Sid Vishez » Logged
cowboy
Administrator
Hero Member
*****

Karma: +30/-0
Offline Offline

Posts: 663



View Profile WWW
Re: wrong path in button "Go Up"&"Go Down"
« Reply #8 on: June 22, 2005, 01:02:46 PM »

what SMF theme are you using? Can you try the default theme first. I'm suspecting it's a theme issue.
Logged
Sid Vishez
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #9 on: June 22, 2005, 03:06:34 PM »

I am using default theme with russian pictures, but I try using original default theme from smf_1-0-4_install.zip (i fully replaced theme folder). wrong links kept.
Firefox JavaScript console display errors on some pages:
Logged
kdizzle
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 7


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #10 on: July 13, 2005, 09:11:24 PM »

I have the exact same go up and go down button problem with mmy mambo install.    My forum is in the SMF directory under Mambo so it repeats:

/mysite/Mambo/Mambo/index.php?option=com_smf&Itemid=33&expv=0&topic=3.new#top

I have tried it with the Rangnarok and the Default theme.

Thank you
Logged
Kabir
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 3


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #11 on: July 18, 2005, 09:15:36 PM »

The same problem exists among the links of instant messages in the inbox. In addition, deleting instant message doesn't work, either.
Logged
Kabir
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 3


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #12 on: July 19, 2005, 03:07:45 PM »

In administrator/components/com_smf/functions.smf.php, find the following code in function fixMamboUrl(), comment out what is in the if statement block.

        else if (substr($nonsefurl,0,1)=='#') {
            $oldurl[] = "/href=\"".$nonsefurl."/s";
            $sefurl = substr($_SERVER['REQUEST_URI'], 1, strlen($_SERVER['REQUEST_URI']));
            $nonsefurl = "href=\"".sefRelToAbs($sefurl.$nonsefurl);
            $newurl[] = (substr($nonsefurl,strlen($nonsefurl)-1) == "/" ? substr($nonsefurl,0,strlen($nonsefurl)-1) : $nonsefurl);
        }

When a URL starts with "#", I think it can be left as it is. No need to fix it. After this hack, both "Go up", "Go down" & instant message links work again.
Logged
kdizzle
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 7


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #13 on: July 20, 2005, 02:21:59 AM »

Awesom job Kabir!  That fixed it right away.

You must know you stuff.  Thanks again.
Logged
Kabir
Newbie
*

Karma: +1/-0
Offline Offline

Posts: 3


View Profile
Re: wrong path in button "Go Up"&"Go Down"
« Reply #14 on: July 21, 2005, 03:33:58 PM »

In addition, deleting instant message doesn't work, either.

By the way, deleting IMs works. The problem I encountered was due to a hack done by myself.  Grin
Logged
Pages: [1] 2 Go Up Print 
Forum  |  MamboHacks.com  |  Mambo-SMF Forum 1.3.0 Support  |  Topic: wrong path in button "Go Up"&"Go Down" « previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by MamboHacks.com. Powered by Mambo. All rights reserved.
TERMS OF USE