Fork me on GitHub

Zikula theme configuration  Bottom

Go to page [-1] 1 - 2 - 3 - 4 - 5:

  • Only certain URLs work with the plugin. For example, these URLs work:

    Code

    index.php?module=PNphpBB2
    index.php?module=PNphpBB2&file=login
    index.php?module=PNphpBB2&file=viewforum&f=1
    index.php?module=PNphpBB2&file=viewtopic&t=1



    While the following URLs do not work:

    Code

    index.php?name=PNphpBB2&file=login&redirect=posting&mode=reply&t=1
    index.php?name=PNphpBB2&file=login&redirect=privmsg&folder=inbox
    index.php?name=PNphpBB2&file=faq
    index.php?name=PNphpBB2&file=search



    As you can see, there's no consistency as to why some work and some don't (unless someone can point something out that I am missing).


    Note that these observations were made before and after the theme had been adjusted to have PNphpBB2-specific ini and template files and the plugin above by dreamingmonkey is already in use.






    edited by: Wendell, Jul 20, 2008 - 04:40 AM
  • When I first go into my forums all the menu links work fine except for the 'Log in to check your private messages' link, which jumps back out of the wide theme. Is there some way to alter the links in PNphpBB2 to fix this?. It also happens when a non registered user tries to post, and maybe in other areas. I don't mind hacking the core on this one as it will be going away in a few months.

    Also, when your in the Admin panel of PNphpBB2 and jump back to the froums index it's not being placed back into the wide format :(

    I guess these are small quirks and I'm only guessing but PNphpBB3 should have these all worked out.

    TIA...



    edited by: mesteele101, Jul 20, 2008 - 05:35 AM

    --
    Kindest regards,
    Michael...

    WINSNORT.com Management Team Member
    --
    Pick up your FREE Windows Snort installation guides
    mailto:support@winsnort.com
    Website: http://www.winsnort.com
    Snort: Open Source Network IDS - http://www.snort.org
  • Wendell,

    I can't see any reason why some of the URLs wouldn't be transformed provided that they're all part of what's returned to $maincontent. The reason I used eregi_replace in that thing I hacked together is that it's about the most forgiving way to very simply replace one string with another. I figured if there was going to be a problem, it was going to be that things would get transformed that weren't supposed to (like maybe if they used forumname= or username= somewhere it would get transformed to forummodule= and usermodule=). So, I can't tell you without a good look at the source of the page what might be causing the problem.

    So, if you would, shoot me a link to a forum with your configurations and my modifier applied. And, if you have the time and inclination to do it, get me admin and FTP access to a test site with the theme you're trying to use and the version you're using of the forum. I don't have the time to set up a test site for this problem and my current test site is so hacked up in the core that I'm afraid any solution I find there wouldn't translate. But, I'm doing a fair amount of "hurry up and wait" stuff this week, so I'm more than happy to help.

    If nothing else, here's a nutty idea. Why not set up your theme so that the default layout is the one you want for the forum and then override the layout for every other module? Not the most efficient way to do things, I know. But for now, it might be the easiest solution.

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • Well, ok, I'm partially an idiot here. I needed to clear out my caches after the last revisions. The PNphpBB2 FAQ and Search are now working properly within the theme.


    dreamingmonkey

    If nothing else, here's a nutty idea. Why not set up your theme so that the default layout is the one you want for the forum and then override the layout for every other module?
    Nice idea, and I've already implemented it. icon_biggrin


    I think I have narrowed down the reason why the modifier is not working though. It seems that anything beyond the second argument in the URL is what's causing it to jump back to the two-column template. That would explain why this works:

    Code

    index.php?module=PNphpBB2&file=login


    and these do NOT work:

    Code

    index.php?name=PNphpBB2&file=login&redirect=posting&mode=reply&t=1
    index.php?name=PNphpBB2&file=login&redirect=privmsg&folder=inbox


    PM on the way for access privileges. :)



    edited by: Wendell, Jul 20, 2008 - 09:48 AM
  • Wendell,

    The modifier is working perfectly. It's not the additional parameters. The problem is an internal redirect inside the module. And it's sort of the least of your problems. Here's what I see (and if you see something else that I'm not seeing, let me know).

    The links that aren't working are all login links. When, for instance, you attempt to start a new thread and the module detects you're not logged in, it internally redirects to its own login form (name=PHphpBB2&file=login&redirect=whatever&param1=this&param2=that). That login form is supposed to be a clone of the Zikula login form, but it doesn't work. When I try to log in with it, I get redirected to user.php without being logged in. From user.php, I can use the standard login form and get logged in with no trouble.

    You need to go into the module and re-code that form so that it is the same as the Zikula login form. Then, build the $URL parameter from input, changing name= to module=. That's the tricky part. There are lots of possible parameters. You might be best off writing a plugin to grab the parameters and build the value. Something along the lines of:

    Code

    list ($file, $folder, $mode, $f, $t) = pnVarCleanFromInput('redirect', 'folder', 'mode', 'f', 't');

    $url = 'module=PNphpBB2&func=posting';
    if (isset($f))    {
        $url .= '&f='.$f;
    }
    if (isset($t))    {
         $url .= '&t='.$t;
    }
    if (isset($folder))    {
        $url .= '&folder='.$folder;
    }
    return $url;
    }


    I have the credentials you sent me, but I don't have the get-up-and-go to do this tonight. If you can do it on your own, go for it. That will solve every problem I can see. If not, then I'll give it a shot tomorrow some time.

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • Guys,

    You need to stop here and go back to square one. I spent about 6 hours trouble shooting a failure to post, and delete to PNphpBB2. I also couldn't uninstall it. The problem is the original hack is munging the veriables some how. Posting gets a 'No post mode specified' which means it's lost becuse it needs some veriables that's missing, I guess.

    Wendell, I tested posting on the development site and its doing the same thing.

    The reason it took so long to diagnoise was becuse I was backtracking, and I did a LOT after I installed the hack.

    --
    Kindest regards,
    Michael...

    WINSNORT.com Management Team Member
    --
    Pick up your FREE Windows Snort installation guides
    mailto:support@winsnort.com
    Website: http://www.winsnort.com
    Snort: Open Source Network IDS - http://www.snort.org
  • Ahh. Yeah, I can see that. OK. Well, it's becoming apparent that there's no quick fix. So, going back to square one, there are a few options:

    1. Set up your theme so that the default layout is what you want for the forum and override it for every other module.

    2. Hack the Zikula core to get it to force it to get along with the module (not a good idea in most cases)

    3. Go way beyond the modifier I hacked together and write a wrapper module that takes a totally non-compliant module and "wraps" it in a compliant module, passing data back and forth as required by each the module and Zikula. It's feasible. I've done it for .cgi scripts and non-Zikula .php scripts. I can't give you a how-to on this one. Each one if very different. The wrapper I wrote for CPShop (a commercial Perl script for cafepress.com shop owners) is 3 functions and took a couple hours to write. The one I'm working on for Crafty Syntax Live Help is far more complex and I've been working on it for a couple months now. But the goal is to write an API compliant module that ties the third-party script to the Zikula system without modifying any of the third-party code.

    I think no matter what, this thread should serve as an indication to the developers of the module that if it is to remain a viable module, they need to concentrate on full API compliance so that users don't have to choose between using the module and using the other cool features Zikula offers.

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • Absolutely, the PNphpBB team should have concentrated on getting a viable option out there for Zikula, even if it meant that some coding needed done on PNphpBB2, then they could have focused all their time on the new PNphpBB3. They've left their users somewhat disappointed.

    I need a viable solution and if I can find a decent theme for pnForm 2.7.1 in charcoal gray I'd change now.

    --
    Kindest regards,
    Michael...

    WINSNORT.com Management Team Member
    --
    Pick up your FREE Windows Snort installation guides
    mailto:support@winsnort.com
    Website: http://www.winsnort.com
    Snort: Open Source Network IDS - http://www.snort.org
  • Write up your requirements for a theme and get quotes. I'd imagine Wendell could probably do it for you. I'd be happy to quote it for you. Or there's zikulapro.be. A pnForum theme is pretty easy is to put together and if the look of the forum is the entire basis of your decision to go with PNphpBB2 over pnForum, you're far better off creating a theme than hacking up the other forum to make it work.

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • PNphpBB2 has my theme already and is was ready to go, or so I thought. My site is not complicated or high traffic. It's lasted 5 years without an update, other then security upates. I really don't care what forum I use but it needs to work and not feel like your jumping into another diminsion when going from Zikula to the forum. I don't want to go live with it until it's 100%. I'm presently installing zWebstore, so I'm slowing things down becuse of these problems and not going live for a couple more weeks.

    TIA...

    --
    Kindest regards,
    Michael...

    WINSNORT.com Management Team Member
    --
    Pick up your FREE Windows Snort installation guides
    mailto:support@winsnort.com
    Website: http://www.winsnort.com
    Snort: Open Source Network IDS - http://www.snort.org
  • This problem has probably been solved - please try this version of pnMod.php, test the changes and report how it goes icon_wink

    --
    Guite | ModuleStudio
  • The download link at the bottom let you Download in the orig… format (pnMod.php)
    Thanks a lot Axel !

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Perfect...

    Guite

    This problem has probably been solved - please try this version of pnMod.php, test the changes and report how it goes icon_wink


    Thank you so much...
  • Simple overwrite :)

    nestormateo

    The download link at the bottom let you Download in the orig… format (pnMod.php)
    Thanks a lot Axel !


    Thank you...
  • Thak you VERY much, I solved in this moment the issue, this file will be the one for zikula 1.0.3?

Go to page [-1] 1 - 2 - 3 - 4 - 5:

This list is based on users active over the last 60 minutes.