Quote:
Originally Posted by testaj
Thanks for the pointer! Made it easy, wasn't even thinking about that....
Have you included files outside of the forum directory while having the "save css as files" enabled? It seems to link the stylesheet as a relative link from forums directory.
And I guess the same problem occurs with images that are relative to the forums directory....
And the links being relative....
|
Yes, that is expected. It is not a problem with vbulletin, but the way in which url's are interpreted by web browsers. The images and css are relative url's by default, and thus would get affected. Even javascript, for that matter.
For example, lets say the vb homepage is at
www.example.com/forums/index.php and it contains an image with src="images/misc/logo.png". The web browser takes the initial portion of the webpage address (everything before index.php) and adds the image location to it. This is fine.
But if you move the homepage to
www.example.com/forums/mypages/index.php without editing the templates, the browser will now look for the logo at
http://www.example.com/forums/mypage.../misc/logo.png - not good.
Unless you plan to create hundreds of custom pages, I recommend you keep them in the forum directory. Makes life easier.