Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: [-1] 1 - 2 - 3 - 4 - 5 - 6 [+1]

Bottom
Proposal for Better ShortURLs
  • Posted: 22.08.2005, 05:50
     
    deseee
    rank:
    Freshman 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.
  • Posted: 22.08.2005, 12:06
     
    imranbaig
    rank:
    Freshman 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
  • Posted: 24.08.2005, 21:55
     
    msandersen
    rank:
    Professional 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.
  • Posted: 24.08.2005, 23:21
     
    msandersen
    rank:
    Professional Professional
    registered:
     August 2002
    Status:
    offline
    last visit:
    25.11.05
    Posts:
    994
    I've re-uploaded the PN-0.75 package with a fixed header.php. All it really needs is the change above for the Base tag.
  • Posted: 25.08.2005, 10:27
     
    imranbaig
    rank:
    Freshman 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
  • Posted: 30.08.2005, 20:48
     
    msandersen
    rank:
    Professional Professional
    registered:
     August 2002
    Status:
    offline
    last visit:
    25.11.05
    Posts:
    994
    Thanks. I've got it working on pn0.76, but I haven't had time to package everything yet.
  • Posted: 04.09.2005, 23:00
     
    Paustian
    rank:
    Helper 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?
  • Posted: 05.09.2005, 01:13
     
    Imoq
    rank:
    Helper Helper
    registered:
     September 2004
    Status:
    offline
    last visit:
    10.10.08
    Posts:
    111
    msandersen:

    I am just waiting for your 0.760 final package so I can test it on my site.

    Thank you very much for your hard work on this! :)
  • Posted: 08.09.2005, 20:13
     
    Imoq
    rank:
    Helper 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? :)
  • Posted: 13.09.2005, 22:37
     
    Imoq
    rank:
    Helper Helper
    registered:
     September 2004
    Status:
    offline
    last visit:
    10.10.08
    Posts:
    111
    msandersen:

    We miss you! :P :)
  • Posted: 15.09.2005, 14:28
     
    samuelb
    rank:
    Freshman Freshman
    registered:
     June 2005
    Status:
    offline
    last visit:
    21.04.06
    Posts:
    12
    Im also realy interested in testing this thing for PN-760!! Seems likee a very good thing! :)
  • Posted: 16.09.2005, 02:35
     
    Imoq
    rank:
    Helper Helper
    registered:
     September 2004
    Status:
    offline
    last visit:
    10.10.08
    Posts:
    111
    It is, let's hope msandersen gets back soon.

    I wonder what would happen if we tried the RC5 version of his files on 0.760 final... umm.. :D
  • Posted: 01.10.2005, 11:45
     
    Ruudje
    rank:
    Freshman Freshman
    registered:
     September 2004
    Status:
    offline
    last visit:
    06.11.06
    Posts:
    24
    Any progress on a final package for PN 0.76x ?
  • Posted: 02.10.2005, 09:41
     
    Imoq
    rank:
    Helper Helper
    registered:
     September 2004
    Status:
    offline
    last visit:
    10.10.08
    Posts:
    111
    Doesn't seem so :(
  • Posted: 06.10.2005, 17:30
     
    motion-ex
    rank:
    Helper 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]

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula