Greetings one and all!
So, I just got a copy of Nukewrapper and think it's the greatest thing ever. However, I have been unable to figure out one detail and was hoping someone might be able to point me in the right direction. I have a menu sideblock set up with links to pages that will then be wrapped by Nukewrapper. When I click the links, the pages display correctly, however my login information gets lost - it is as though I am a guest viewing the site.
I can then re-log in and everything works fine, so the site still functions.... but if I could get rid of this one little glitch, that would be wonderful.
Does anyone have any insight on this?
- shyra posted »MenuTree Mystery« 19:50h
- dks answered »include a file« 18:22h
- dks answered ».764 -> 1.1.1, Can't add new blocks« 17:33h
- craigh posted »PostCalendar 5.5.0RC1 needs testers and translators« 17:24h
- bartl answered »Upgrading 1.0.2 --> 1.1.1« 15:02h
- Charlie-otb answered »SafeHTML output filter and youtube« 10:02h
- dl7und answered »Adding an "About Us" page« 03:34h
Login
Nukewrapper losing login info?
-
- Rank: Freshman
- Registered: 19.02.05
- last visit: 20.02.05
- Posts: 2
-
- Rank: Professional
- Registered: 04.08.02
- last visit: 25.11.05
- Posts: 994
Can't say I've heard of this before. You don't get the logout problem by normal usage? What sort of link gives the problem and which version of PN? -
- Rank: Freshman
- Registered: 19.02.05
- last visit: 20.02.05
- Posts: 2
The version is postnuke .75, and the link I'm using is http://www.mysite.com/page.php?file=myfile.htm (myfile.htm is in the same directory as page.php) - so far, the NukeWrapped pages are the only ones to lose the user's login info... -
- Rank: Freshman
- Registered: 01.04.05
- last visit: 06.12.05
- Posts: 16
Same thing is happening to me. The strainge part is it worked before. I had to move my site to a new host and now this started. I tried a new install of nukewrapper and still this logout issue. I'm using PostNuke 0.7.5.0 and I'm using http://www.mysite.com/page.php?file=myfile.htm also. I even tried setting permissions for nukewrapper and for the link in the menublock, nothing seems to be working.
Div' -
- Rank: Professional
- Registered: 22.09.03
- last visit: 27.06.09
- Posts: 3032
Why O why doesn't anyone post a link to their site?
The likely cause is that the user is logged on to mysite.com (sans "www.") and the link they are clicking on is www.mysite.com/postwrap_stuff - or vice versa... Cookies are incredibly stupid about domains and will not see these two as the same...
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- Rank: Freshman
- Registered: 01.04.05
- last visit: 06.12.05
- Posts: 16
I just came back to tell you I got it fixed, and YES nate, that was the problem. Just paying a little more attention to the address bar revieled the problem. And BTW, my site is http://www.quake3addicts.com/index.php
Thanks for the help.
Div' -
- Rank: Professional
- Registered: 22.09.03
- last visit: 27.06.09
- Posts: 3032
Oh sure, lotta good that does me now ;)
QUAKE 4 ?!!! YES!!!! Surprised that Raven Software's doing it (or did they do Q3?)... Quake II just blew me away quite franky... Haven't played Q3 as I'm not too much into multiplayer (tired of getting my ASS kicked by 12-year old girls!)... Hope Q4 has a good single player experience!
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- Rank: Freshman
- Registered: 01.04.05
- last visit: 06.12.05
- Posts: 16
They say Q4 is focused on single player, so your in luck. And, no, they didn't do Q3, id did. Now that the important chat is out of the way, back to the nukewrapper issue. I can't believe no-one has had this problem b4. Is there a fix or workaround. This means that when someone visits my site and logs in with the www they loose their login if the link doesn't have it and visa versa. Now that I thought about it for a while, this "bug" has surfaced in my weak PHP brain. I can't be the only one to realize this, can I? Can this be right?
Div' -
- Rank: Professional
- Registered: 22.09.03
- last visit: 27.06.09
- Posts: 3032
No, you're not the only who realizes that - after all, I'm the one that's told you about it ;)
This is more of a cookie/server issue.... there are likely other posts on it on these forums, but you *could* probably set either your DNS or server in some fashion so that the domain.com goes to wub-wub-wub.domain.com... I'm sure there's scads of info out there on Google, etc...
P.S. I loved DOOM 3 - except for the pathetically weak final boss... I was exactly what I expected it to be: run' n gun and not too hard on the noggin'
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
- Rank: Professional
- Registered: 04.08.02
- last visit: 25.11.05
- Posts: 994
The only other thing I could've suggested was that NW ships with an htaccess file, which has the line
php_flag session.use_trans_sid off
It has to do with removing session IDs in URLs which search engines don't like. It shouldn't affect the session, but perhaps if the server setup has session cookies turned off or something, making it an issue. But I doubt it somehow, since it was only affecting NW, not the whole site.
So you'd just entered http://quake3addicts.com/page.php?file=server.html
in the menu link, or what? Might put it into the ReadMe, worth knowing and can save others a headache (for those that read the documentation). -
- Rank: Freshman
- Registered: 01.04.05
- last visit: 06.12.05
- Posts: 16
Yes, I put http://quake3addicts.com/page.php?file=server.html in the menu link, but get to the site and login on a bookmark that is http://www.etc. Now, I have www for both. I'm not sure how members get to the site, but I'm sure some-one sometime would go there without the www. Not that it's a critical problem, more like a little glitch, but I would have thought something as minor as that would have been addressed. When it started and I was really trying to figure out what I had done, the thought crossed my mind that the page.php should have been in the modules folder for NW and the module calls it not a link. So it would be a link in the menu like the rest of the modules [Nukewrapper]. But I have edited PHP files according to instructions and don't have a clue how they work, so maybe I'm talkin out my a@$. I've been looking for a site from the developer but this forum is as close as I can come. Maybe if he/she was aware of this, it might be an easy fix, but who am I to know.
Div' -
- Rank: Professional
- Registered: 04.08.02
- last visit: 25.11.05
- Posts: 994
Well, I'm the "developer", so I'm aware of it now. I wrote it for myself and since made it available to whomever wants it, with the idea of having it be as simple as possible and avoid those long URLs you get with the old module calls. Hence the standalone script. Because people wanted it, I made a rudimentary Module of it too, which is included, and can be accessed the way you describe, but with curly braces {NukeWrapper}. I haven't been advertising the fact much, though, since there's no Admin component as yet. But it works exactly the same, I keep the two in sync, except the Modularised version uses an external config file NukeWrapper.conf.php. When I do get back to finishing the module version, I'll keep the standalone script and have it access the same config file, which would be administered by the as-yet unwritten Admin part.
I also need to finish the Search script, a powerful Boolean logic recursive search with Google-like quotes from the results.
It is possible with the Apache URL rewriting engine to fix the www problem, so http://quake3addicts.com/ invisibly gets rewritten to http://www.quake3addicts.com/ and hence there should be no more session trouble.
The only site I have is a set of static pages and downloads, some accessible from the linik below. -
- Rank: Freshman
- Registered: 01.04.05
- last visit: 06.12.05
- Posts: 16
(Pulling foot from mouth) I had no idea you where the developer, oops, sorry. I'm not sure of the apache URL rewrite engine, is that something I can access through my cpanel? I also have another minor problem, the address quake3addicts is a parked domain. The site is acually on http://www.Quake4addicts.com I was getting a jump on things when I changed hosting services. The package came with a free domain name. Thats why I suggested being accessed via a module. Everything else seems to work fine on both domain names via the standard module system. I'll just keep my mouth shut and hope you get allot of free time.
Div' -
- Rank: Freshman
- Registered: 01.04.05
- last visit: 06.12.05
- Posts: 16
Well, I found something you might be interested in if you wanted to have it work like a regular module. The only way to get to it is through a google cache. I can't seem to find it on it's own. http://66.102.7.104/search?q=cache:i1z12tC9MhcJ:www.mdaddons.com/Articolo33.html+diner+wrapper&hl=en&client=firefox-a
But the download link seems to work fine. If there was a way to get it to load the file automatically, and tell it which file, since you can add as many as you want to the HTML folder, it would be perfect. In the install it tells how to get the page to load, but it makes no sence to me. If you have some time, have a look.
Div' -
- Rank: Professional
- Registered: 04.08.02
- last visit: 25.11.05
- Posts: 994
Oh, forgot to mention... Rather than putting the whole URL in the menu, simply put the last part
page.php?file=server.html
or
page.php?URL=www.somesite.com
that makes it a relative link, and no need to worry about sessions.
The Apache URL rewrite engine is a standard module for the Apache web server; most sites use Apache, but some may turn off the URL rewriting. Or if you're in the minority 20% that's hosted on Microsoft IIS, you're out of luck there. Usually you can simply create a file called .htaccess and put it in the PN root with a few choice rewrite rules.
But if you simply avoid the base URL in the menu like suggested above, there really is no need.
I've seen a few attempts at HTML wrappers, the best known is PostWrap. All use frames for local pages. Which is the main reasons I wrote this script.
The link seem to be an old module for a previous version of PN, written by John Cox, one of the previous lead developers on PostNuke, now with Xaraya, a PostNuke offshoot. MD-Pro is another offshoot of PostNuke, still pretty compatible with each other. They prefer the AutoTheme templating system over the Xanthia system chosen for PostNuke.
However, NukeWrapper does work like a regular module as well as a standalone script, I just haven't done the Admin part. As mentioned, in the Main Menu you can put {NukeWrapper}, and if you set a default page in the Config file, it will come up. Else it will ask you to specify a page.
It's the same as putting
index.php?module=NukeWrapper
- Moderated by :
- Support
