PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 4.0 (http://www.photopost.com/forum/bugs-vbulletin-4-0/)
-   -   No Css in Gallery When Logged Out (http://www.photopost.com/forum/bugs-vbulletin-4-0/146067-no-css-gallery-when-logged-out.html)

Chani June 24th, 2011 08:24 PM

No Css in Gallery When Logged Out
 
vBGallery 3.01 and vB 4.1.4

Whenever a guest views the gallery, all CSS disappears.

It's fine once logged in.

Any ideas?

Chuck S June 25th, 2011 09:02 AM

You have a url? Baseurl in vbulletin on or off?

Chani June 25th, 2011 11:45 AM

Ahhh...yes...it's only when the forums are turned off. :(

Baseurl is turned on, but I'm using the patch found elsewhere here.

cemagraphics.com/gallery/index.php

(Won't let me post a link yet)

Chuck S June 25th, 2011 07:25 PM

so you turn your forum off it breaks vbgallery

Chani June 25th, 2011 07:41 PM

Yes. I can still use the gallery as an admin, but when I log out, the gallery breaks.

Once I get everything styled properly I'll open the forum again, but I've taken the Navbar out for guests right now.

I guess it's no big deal, but it would be nice to know why this happens. :)

Chuck S June 25th, 2011 07:51 PM

yeah I will have to play around with that. I would suspect its because the vbulletin url to find css.php is not there.

Chani June 25th, 2011 07:57 PM

Thanks!

I'm sure you've figured out that my Gallery is above my forums (cemagraphics.com/gallery -- cemagraphics.com/pages)(second one is my forums)

I don't remember what the fix was so that you didn't need to shut the baseurl off, but it's interesting that it only happens with visitors and not with Admins.

tbworld July 11th, 2011 12:07 AM

vbgallery v3.01 and vbulletin 4.14

I seem to have the same problem.

The problem did go away with setting the forum url to no. Of course this caused other problems, until I patched the datastore plugin. Now I am back to the original problem of no CSS for logged out users when selecting the gallery navtab. Other then the normal CKeditor problem everything else seems to work fine. My forum and gallery setup is for my family: so there is no guest access. I am guessing this is why the problem has not been seen by many others.

Let me know how I can help.

Chuck S July 11th, 2011 08:44 AM

Well the problem is coming from the forum standard_error templates and how they load the css. I do not see where this code is in the vb files to suggest a patch.

You only see this issue when using the required login on the forum or gallery before seeing anything right?

You can try making sure css.php has been added to all your replacement sections at the top of your modify settings page in vbgallery admin.

tbworld July 11th, 2011 02:45 PM

Quote:

You only see this issue when using the required login on the forum or gallery before seeing anything right?
The problem is only on the gallery tab. The rest of vb is showing the correct CSS.

Quote:

You can try making sure css.php has been added to all your replacement sections at the top of your modify settings page in vbgallery admin.
Good thought! So far it hasn't worked, but I am still playing around with it. Let me get back to you after I do a bit more investigating. Thank you for your quick response. I did not expect it!

Chuck S July 11th, 2011 05:54 PM

Yes I know the problem is only on your gallery. The issue is in how vbulletin has relative urls in there code. The error script or standard_error templates as I beleive they are called are used for the required login and however that script is done in vbulletin has a relative url to there css.php script thats your issue. Basically requiring login before anyone can see anything uses that special vb login page which runs before any replacement or anything can be done. Maybe turn on in your vb settings the baseurl thing to yes?

Chani July 11th, 2011 06:08 PM

I had an issue turning on the baserurl. I think it was that I couldn't upload any images. I'll have to check that again.

Chuck S July 11th, 2011 06:29 PM

http://www.photopost.com/forum/1285755-post2.html

this will help with baseurl on gallery urls

tbworld July 11th, 2011 06:34 PM

We are in agreement with what the problem is: Thank you for clarifying. I had already turned the base URL back on after entering the url paths to CSS.PHP, in admincp, as you suggested. Unfortunately, no success.

Thanks so much for the response. I thought you deserved a quick reply since you took the time.:)

Chuck S July 11th, 2011 07:42 PM

Yeah I will see if I can find anything but from what I remember I think this issue is solely a vbulletin bug. vbulletin should make sure they use there forum url in front of any links to there script names in there coding. Thats my opinion and has not changed in over 8 years of being a vb customer.

Maybe hard code your forum url on line 4492 of the class_core.php file in your vbulletin includes directory

Code:

Content visible to verified customers only.


All times are GMT -5. The time now is 06:04 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97