Keyword

No CSS on K2 item view when logged-in!

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69674 by Brandon G. Little
No CSS on K2 item view when logged-in! was created by Brandon G. Little
I recently installed and began using K2 on one of my websites, Backslash Online. I thought everything was great, until I attempted to view an Item as a logged-in user. For some reason, the CSS style does not render, but only in ITEM view (Category view is just fine), and only as a LOGGED-IN user (the CSS renders perfectly when viewing an Item as a Guest).

Any idea what's causing this?? HELP!!!!!!!!!!!!!!!!!!!!!!!!!

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69675 by Lefteris
Replied by Lefteris on topic No CSS on K2 item view when logged-in!
Hi. Can you please provide some more info? What's the group of the user you are logging in? Also check that the K2 CSS files are loaded.

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69676 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Have tried as both Registered user and Site Owner... Same result. K2 CSS files are fine and load properly on all pages except Item View (template CSS also does not load in Item View) and only when logged in to the site (CSS loads just fine for Guests in Item View)

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69677 by Lefteris
Replied by Lefteris on topic No CSS on K2 item view when logged-in!
Hi again. This is very strange. I guess that an other CSS file overrides some of K2 CSS code. Are you completely sure that the CSS files of K2 are NOT loaded by the browser?

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69678 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Yes. There is no CSS styling of any kind. Create an account on the site and see for yourself.

How do I fix it??!

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69679 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Anyone else??................ Anyone??

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69680 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Here is the page source code for the site when rendered properly (viewed as a guest):







[the code won't display on these forums.... go to the page and see it straight from the source... ITEM]






























...and then it continues on with the rest of the article...


And here is the page source for the same page when viewed as a registered user (CSS does not render):




[the code won't display on these forums.... go to the page, create your own user login and see it straight from the source... ITEM]

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69681 by Lefteris
Replied by Lefteris on topic No CSS on K2 item view when logged-in!
OK i logged in and the site seems to work fine. I have the same output as a guest. Also code seems fine in both cases. So what's the problem?

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69682 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Hmmm... Could it just be me and my computer???? Truthfully, I'd be relieved, as my primary concern is how everyone else views the site, but... What might cause that?? Some kinda malware?? And why just on K2 items??


What browser are you using? I'm on Firefox.

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69683 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Well, I just tried it on some other browsers....

Google Chrome had the same result as Firefox -- Guest view is fine, but Logged-In vew had no CSS.

And Internet Explorer would not even load. It starts loading the page, and seems to be doing just fine, and then gives me a message that "Internet Explorer cannot open the Internet site at www.backslashonline.com/. Operation aborted". I click "OK" (my only option), and it takes me to the standard IE error page.


I'm going to go try it out on some other computers..............

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69684 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Just tried it on two other computers... An older one with IE6 and Firefox.... same result.

And a new one with Windows Vista, also on both IE and Firefox...... same result (CSS doesn't render in Firefox, and the page won't even load in IE).


Can anyone else confirm that Item View renders the CSS properly while Logged IN on the site, www.backslashonline.com ???

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69685 by Lefteris
Replied by Lefteris on topic No CSS on K2 item view when logged-in!
The message "Internet Explorer cannot open the Internet site at www.backslashonline.com/. Operation aborted" indicates a javascript error. You might have a javascript error from other extensions. Try to disable some extensions and see what happens.

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69686 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
The site uses a number of MooTools scripts, which I am of the understanding conflicts with jQuery. I used to have Community Builder installed on the site, which uses a lot of jQuery in the profile component, but a few weeks ago I removed CB and installed JomSocial. JomSocial also uses jQuery, but the JomSocial pages are completely detached from the K2 pages.

I've gone through every extension, disabling them one at a time and hoping for a change, but no luck.

Am I going to have to abandon K2 ???

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69687 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
EUREKA!!!!!!!! I got it!!!!!!!!!!!!!


So... I'm brainstorming on what could possibly cause a script error, but ONLY when logged-in. I looked at every detail on the K2 configuration, and then I got down to the "Comments" section. Comments were enabled only for registered users (the way I want it), and I figured that HAD to be it! Surely enough, I disabled comments for everyone, reloaded an item while logged-in, and voila... SUCCESS!

Now, it presents a new problem... What's the conflict with the comments, and how do I re-enable comments successfully?!?

But, for now at least, the website is functional in item view. I'll tackle the "Comments" issue after I go tackle a piece of the blueberry muffin coffeecake that just came out of the oven.

Much thanks for all your help, and if you have any thoughts on what to do about the Comments conflict so that they can be re-enabled, by all means, do share.......

:-D

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69688 by Just Kat
Replied by Just Kat on topic No CSS on K2 item view when logged-in!
I too am having this issue. Man, did I think I was the only one. Individual item view is the only place where K2 seems to throw the stylesheet out of the window. Its been frustrating. I tried different browsers and it is the same thing.

Blog further describes it here, complete with screenshots (since this NING site doesnt allow blogs from other guests).
rosettesandcss.blogspot.com/2009/07/k2-extension-for-joomla.html

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69689 by Just Kat
Replied by Just Kat on topic No CSS on K2 item view when logged-in!
Addendum: To clarify, Brandons solution of disabling the commentary at all (I originally had it set so that everyone could comment) was the way to get individual item view to behave. So now its a choice between having CSS on individual item view or allowing commentary in any way shape or form (registered only or everyone).

Kat

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69690 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Got it... the problem was from the "reCaptcha". I re-enabled comments, and disabled reCaptcha, and it's working just fine.

Although, now I'll probably get spammed up the wazoo. Still, I have a fully-functioning site. STOKED!!!

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69691 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
hey, kat... it's the reCaptcha that's causing the trouble. you can enable comments, but disable reCaptcha, and everything is working fine for me. not sure how bad the SpamBots are going to hit without the reCaptcha, but i now have a fully functioning site with comments and CSS in item view whether guest or logged-in!

Please Log in or Create an account to join the conversation.

  • Brandon G. Little
  • Brandon G. Little's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 9 months ago #69692 by Brandon G. Little
Replied by Brandon G. Little on topic No CSS on K2 item view when logged-in!
Just found this: forum.joomlaworks.gr/index.php?topic=7767.0

Apparently, the culprit is the public/private reCaptcha keys.

You have to go to the reCaptcha website and sign up for an account to get the keys: recaptcha.net/whyrecaptcha.html

Please Log in or Create an account to join the conversation.

More
15 years 9 months ago #69693 by Just Kat
Replied by Just Kat on topic No CSS on K2 item view when logged-in!
Yeah. Your theory is correct. So, we have now got it pinpointed to the part *about* the comments system that is driving it wonky. Note that I did not set any sort of CAPCHA keys other than the mere act of having it enabled. How about you, Brandon? Did you set any private/public keys? Maybe we have to in order to enable CAPCHA, enable comments, and not have CSS on page issues.

My site is not live so CAPCHA is a non issue...at the moment. That I could at least live with better than not allowing comments at all. If this site ends up being like another site I had, than Ill definitly be seeing spambots.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum