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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »Zikula 1.3.3 - Selecting a category in Pages not working« 04:19 PM
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
PHP include problems in AutoTheme
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
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
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jul 24, 2004
- Posts: 16
Thanks for the compliments and suggestions guys.
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
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.
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! -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jul 24, 2004
- Posts: 16
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.
:( -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
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
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jul 24, 2004
- Posts: 16
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. -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
That can probably be done with some custom developed blocks.
--
Home Page | Find on Facebook | Follow on Twitter
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jul 24, 2004
- Posts: 16
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 -
- Rank: Expert
- Registered: Dec 02, 2002
- Last visit: Apr 30, 2010
- Posts: 1474
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 -
- Rank: Expert
- Registered: Aug 20, 2002
- Last visit: Jan 12, 2010
- Posts: 1219
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!
- Moderated by:
- Support
