Fork me on GitHub

PHP include problems in AutoTheme  Bottom

Go to page 1 - 2 [+1]:

  • I just recently started using PN. I was attracted to AutoTheme for it's simplicity, but now I'm starting to think I would have more freedom and control using theme.php (now that I have an understanding of the template system).

    My problem is trying to use PHP includes in the AutoTheme HTML files. I'm trying to include this file in the homepage. The file is parsed correctly, and recognizes you as a logged in user when entering the URL directly, but when I include it in the HTML files for AutoTheme it sees the user as a guest, even if they're logged in.

    I've been playing with it for a while, and I can't seem to figure it out.

    Thanks,

    Jason
  • Very nice looking site.

    Have you tried including it as an Autoblock with a Block of the PHP type assigned to the autoblock. Not sure it will work, but you could try it.
  • Concerning understanding the theme.php method, you do know that the core theme engine is changing in the next major release (.8).

    Now to what you're trying to do, isn't there a command in AutoTheme to do that basic thing anyway?

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Doh ... I should have thought of that.

    I think its
  • Thanks for the compliments and suggestions guys.

    Quote

    Have you tried including it as an Autoblock with a Block of the PHP type assigned to the autoblock. Not sure it will work, but you could try it.
    I tried inserting the code in a block, but ended up with the same results. I'll admit I don't know a lot about PHP, but I'm learning, and I'm baffled by this problem.

    Quote

    Concerning understanding the theme.php method, you do know that the core theme engine is changing in the next major release (. 8) .


    Right, but knowing how development usually goes (at least for me), and my limited exposure to the PostNuke community, it sounds lke the release of .8 is ways off, correct?

    The problem is, command applies to PN members, and I'm trying to include the member bar for my forums (IPB). That's how things were setup on my old site, so I need to figure out a way to get it working with PN.

    I love everything that PostNuke offers, and I've been meaning to make the change for a while, I just wish I could get this figured out!

    Thanks again for the help!
  • Can you give us an URL to illustrate what you are trying to accomplish. I'm not quite getting it (but then I'm pretty slow LOL).
  • Haha, I know what you mean about feeling slow!

    If you look here you'll see the member bar located under the banner. Go ahead and login with our test account (user: tester, pass: tester). Now go back to that previous link and you'll notice that it has changed to reflect the fact that you've logged in.

    NOW, go here and look to the left of the search bar. See how it still thinks you're a guest, even though you're logged in? I'm calling this file, which if viewed directly does recognize that you're logged in. For some reason, when including it in my PN template, it's screwing it up. It's not outputting any DB connect errors though, so it genuinely thinks the user isn't logged in.

    :(
  • It's probably a cookie thing. I think there is an IPB <-> PN connector, but I'm not sure where from, or if it even exists still. Most PN Sites use either PNphpBB, pnForum (which is based off of an earlier PHPBB version) or X-Forums because they integrate the user bases of both systems.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Right, I'm aware of my integration options. But I'm only using PN as a CMS, so integration with for my members doesn't matter (the management side will remain transparent to them).

    I'm just trying to more closely integrate the forums with my site so that users can make use of their controls, read PM's, and search for new posts from any page on the site.
  • That can probably be done with some custom developed blocks.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Ah, okay thanks for the tip!

    Runs off to learn about developing blocks...
  • Any progress skicrave? I've had customers ask for the same thing and I'd like to know if you find a solution.
  • I'm definitely bringing this one back up from the depths. :)

    Unfortunately, there's no new progress to report on this issue. I'll admit I haven't looked at it in a while (I've had other site issues to deal with), but it's about time I get it figured out.

    If anyone has some tips on where to go from here, I'd love to hear them.

    Thanks,

    Jason
  • Is this what you are looking for?



    Look ma I'm NOT logged in...





    Look ma I'm logged in...





    Look ma I'm admin...



    Regards
    Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • Lobos

    Is this what you are looking for?



    Look ma I'm NOT logged in...





    Look ma I'm logged in...





    Look ma I'm admin...



    Regards
    Lobos


    And with the new AT-Lite .8, PHP code can be added as an AutoTheme Custom Command that is global for the whole site, or only for specific themes.

    --
    Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress!

Go to page 1 - 2 [+1]:

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