Quick Nav:  Online Store   |   Login | Register

xHTML and PageBlaster

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Jesper Storinggaard
<20 Posts
Posts:18


08/15/2008 1:27 PM  

Hi John.

My site use a xHTML (CSS) site with a neat user layout feature. Look at this site, at try the "popup" layout menu on your right side of the browser. Backgrounds work fine (it works without a page reload) but the Site Width feature seems stuck on what ever is in the cache.

This looks like my last vital installment problem   

Thx for taking time out read this.
/j


Mad4fuN - Social Networking 4 Gamers using Snapsis modules
Visit my Dotnetnuke Sharing Group
Visit my Profile
Jesper Storinggaard
<20 Posts
Posts:18


08/15/2008 4:50 PM  

Any user logged in gets to change the site width. Any user not logged in see whatever is in the cache, narrow, normal, full with. Typically the narrow with.
How do I change this so unauth user also gets to set this vital site width?

Skin is: http://www.dnnskin.net/cssskin3-black

 

 


Mad4fuN - Social Networking 4 Gamers using Snapsis modules
Visit my Dotnetnuke Sharing Group
Visit my Profile
Jesper Storinggaard
<20 Posts
Posts:18


08/18/2008 10:56 AM  

Hi John,
I've had to postponed the launch of my re-designed site, based on the issue above.
Meanwhile; to gain on the fastness-value of PageBlaster, I've installed it on my live site (old design), using the license key.

Now my Online_Now modules seems to be affected by PB.

If I have understood this correct, all I have to do is add an exclude statement in the config file. Excludes could be the filename of the module doing its thing on a global level. Like you did with my ShoutBox (filename: shoutlog.aspx).

Is this correctly  understood?

Thx,
/j


Mad4fuN - Social Networking 4 Gamers using Snapsis modules
Visit my Dotnetnuke Sharing Group
Visit my Profile
John Mitchell
Posts:3492


08/18/2008 11:17 AM  
You will not be able to cache the page that a user's online module is on if you want it to keep exact track of who's online. This is because the information is injected directly into the page.

What you can do is set that page to cache for a shorter amount of time.

I tried your css toolbar and it appeared to be posting back every time a button was clicked and I didn't see a time when nothing changed. If it does work without a post-back and dynamically changes the width using javascript then PageBlaster caching will not affect that. What may happen is that the javascript will have a problem because of the PageBlaster optimizations, but I didn't see any javascript errors when i tried it.
Jesper Storinggaard
<20 Posts
Posts:18


08/18/2008 11:29 AM  
Ok, so for who's online I add a PB module to the page and set a short cache time. Would that be like 60 sec?

The css toolbar doesn't postback for the top 4 buttons - basically only changes the background. The six (three for width and the lower three for text size) other will do a postback when clicked.
Only unauth users are affected by this. Logged in users sees the width changes.

Mad4fuN - Social Networking 4 Gamers using Snapsis modules
Visit my Dotnetnuke Sharing Group
Visit my Profile
John Mitchell
Posts:3492


08/18/2008 12:31 PM  
Ok, I see now that it is actually causing a GET request and not a POST when clicking on the width buttons.

A GET will not clear cache but a POST will, although I don't understand how it would ever save the user's preference because I didn't see any cookies being saved. You don't really want it to clear cache everytime someone changes their width though, and I would recommend caching longer than a minute unless you have a lot of traffic or you will not gain anything on your home page.

My recommendation would be to make the user's online and the css toolbar only visible to authenticated users.
That way new users will get a fast home page, and then you can take them from there to being a registered user offering personalization as an incentive.

If you really wanted to show the user's online module maybe you could put two of them on the page, and make one show for unauthenticated users (which would be cached longer) and then hide that when someone logs in to show a more dynamic one.
Jesper Storinggaard
<20 Posts
Posts:18


08/18/2008 1:32 PM  

I like your incentive idea, I'll see if I can figure out how to make the < div id="themes"> in the default.aspx to shown up only for auth users. You would happen to know how to "hide" it?

The seperat who's online module for auth and unauth users and a seperate page, I already have.

Please see at the bottom at my attached default.aspx file.


Attachment: 1818322368471.zip


Mad4fuN - Social Networking 4 Gamers using Snapsis modules
Visit my Dotnetnuke Sharing Group
Visit my Profile
goBlanks
<20 Posts
Posts:13


08/18/2008 7:23 PM  

I too have a similar problem I'm using a CSS Selector skin object provided by Engagemodules here: http://www.engagesoftware.com/Blog/EntryID/145.aspx

Same issue, when a user is unauthenticated, it will not work unless doing an F5 to refresh, but works well when a user is logged in. This particular skin object is setup by using cookies, and I've tried to get this to work through PB by adding the proper parimeters in my config for PB, but I must have something set wrong. I've looked at my cookies and it appears the values are being populated, but I'm not sure if I know what I'm doing.

Sorry, no live example at the moment, but attached are my PB config showing my values set for the cookies, and one of my aspx files showing my references the the skin object.

Basically I have 3 skin files set up to change text sizes throughout the whole site by using this selector.

Any help would be great, or simply a solution to hide the selector from unauthenticated users as Jesper is looking for (inside the skin and not an html/text module). I've banged my head on this one and normally get my answers here, and elsewhere before I ask for any help, but I couldn't find any answers on this one.

Edit: Attachments removed by poster


My DNN Projects: NortheastOK.com, goBlanks.com
goBlanks
<20 Posts
Posts:13


10/06/2008 9:23 PM  

I finally found a solution to my problem, and it was actually kinda simple.
In the skin's .ascx, you can wrap the control in a conditional statement to hide it when the user isn't logged in.

In VB.NET

<%if (Request.IsAuthenticated)%><!-- Put controls here --><% end if%>

In C#,

<%if (Request.IsAuthenticated) { ><!-- Put controls here --&amp;><% } %>

I have to thank Brian at engagemodules that pointed me to the obvious.


My DNN Projects: NortheastOK.com, goBlanks.com
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > xHTML and PageBlaster



ActiveForums 3.7
Powered by: Snapsis Software