- Moderated by:
- Support
Goto page: [-1] 1 - 2 - 3 - 4 - 5 - 6 [+1]
-
- rank:
-
Freshman
- registered:
- March 2004
- Status:
- offline
- last visit:
- 20.12.05
- Posts:
- 39
OK I added the base tag to my theme which is just a slightly modified pnDefault and now I can type www.site.com/FAQ/index.phtml and it comes up looking just fine, but in the "main menu" whenever I click on something like the FAQ it takes me to www.site.com/FAQ.phtml which gives me a "
Failed to load module FAQ (at function: "main")" this happens for anything in the menu.... any ideas? It seems like I'm really close just not quite there yet. -
- rank:
-
Freshman
- registered:
- March 2005
- Status:
- offline
- last visit:
- 03.11.06
- Posts:
- 14
I have the same version 1.2g, I uploaded the files correctly! and I did tht again once you pointed out at corrupted upload.
I will wait till you find a new patch for this!
Thanks
--
Postnuke Themes -
- rank:
-
Professional
- registered:
- August 2002
- Status:
- offline
- last visit:
- 25.11.05
- Posts:
- 994
I'm busy for the next few days, then I'm gonna have a closer look at pn0.76. Some of the fundamentals has been implemented (specifically the use of the Base tag), so I should be able to make a more compact package, especially as I now know exactly what the minimum changes need to be. I can then make a separate module package with the non-essentials and third party changes like for AutoTheme.
Desee,
Mostly I've left URLs for old modules up to the Xanthia filter as they're being phased out. The old Xanthia filter produced URLs for older modules like FAQ like /FAQ.phtml, which in this implementation assumes a new module instead, and hence for an Old module it would fail to find the Main function. The replaced Xanthia filter (in /modules/Xanthia/plugins/outputfilter.shorturls.php) should instead produce /FAQ/index.phtml for old modules.
If you have AutoTheme, it has its own shorturl system (AutoURLs), which the big packages had modified files for. But on request I made the pn0.76rc package without the 3rd party modules like AutoTheme. This is most likely your problem.
Here's the AutoTheme Lite 0.8 ShortURL changes.
imranbaig
I'll have a closer look at PNphpBB2 when I get back. As with AT, the PNphpBB2 changefiles were only in the bigger pn0.75 and pn0.76 packages.
Restoring header.php should solve the problem. There was a bug. You would then want to manually fix it to insert the tag:
About line 89:
Code
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="'.pnGetBaseURL().'">
';
That hopefully fixes it. -
- rank:
-
Freshman
- registered:
- March 2005
- Status:
- offline
- last visit:
- 03.11.06
- Posts:
- 14
I did what you said, Replaced header.php with the one I got from PN 0.750, and added BaseURL, and it worked really great, not there is no problem with this URL package Thanks alot!
Great Work!
--
Postnuke Themes -
- rank:
-
Helper
- registered:
- May 2005
- Status:
- offline
- last visit:
- 20.11.08
- Posts:
- 129
Martin,
Let me add my thanks for doing this. I would really like to implement this in a site I have running 0.76 and would be happy to debug any issues that come up. Do you feel this is ready to be used on a production site, or should I hold off on that? -
- rank:
-
Helper
- registered:
- September 2004
- Status:
- offline
- last visit:
- 10.10.08
- Posts:
- 111
msandersen:
I don't want to push you (you have already done a great work so far), I am just curious and would want to try your great ShortURLs implementation on 0.760 final... Are you still around? :) -
- rank:
-
Helper
- registered:
- September 2004
- Status:
- offline
- last visit:
- 31.07.06
- Posts:
- 379
msandersen
I'm busy for the next few days, then I'm gonna have a closer look at pn0.76. Some of the fundamentals has been implemented (specifically the use of the Base tag), so I should be able to make a more compact package, especially as I now know exactly what the minimum changes need to be. I can then make a separate module package with the non-essentials and third party changes like for AutoTheme.
Desee,
Mostly I've left URLs for old modules up to the Xanthia filter as they're being phased out. The old Xanthia filter produced URLs for older modules like FAQ like /FAQ.phtml, which in this implementation assumes a new module instead, and hence for an Old module it would fail to find the Main function. The replaced Xanthia filter (in /modules/Xanthia/plugins/outputfilter.shorturls.php) should instead produce /FAQ/index.phtml for old modules.
If you have AutoTheme, it has its own shorturl system (AutoURLs), which the big packages had modified files for. But on request I made the pn0.76rc package without the 3rd party modules like AutoTheme. This is most likely your problem.
Here's the AutoTheme Lite 0.8 ShortURL changes.
imranbaig
I'll have a closer look at PNphpBB2 when I get back. As with AT, the PNphpBB2 changefiles were only in the bigger pn0.75 and pn0.76 packages.
Restoring header.php should solve the problem. There was a bug. You would then want to manually fix it to insert the tag:
About line 89:
Code
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="'.pnGetBaseURL().'">
';
That hopefully fixes it.
when using this with AutoTheme, should i replace the .htaccess that came with AutoTheme with the one included in this package?
I have actually tried that and get an error 500?
Goto page: [-1] 1 - 2 - 3 - 4 - 5 - 6 [+1]
