News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Styles in portal

Started by dracomiconia, June 23, 2004, 09:37:42 AM

Previous topic - Next topic

dracomiconia

Is there any way to get Theme from the web?

I will try to explain a little better:

I have a web, with a SMF forum. I would like to get css from SSI, to see the web with the same colors in forum. If a guest enters, they see with default theme. If is a user, with the theme he has selected...

Is that possible? If it is, how?

Tomer

You mean view all the pages in your site with the same CSS as your forum uses?

Easy, just on every page link to your forum CSS file:


<link rel="stylesheet" type="text/css" href="forums/Themes/default/style.css">

Make sure the path fits your site. :D

dracomiconia

But this only will show default style.

I mean each user could see his Theme (in my forum, users can choose themes)

Tomer

Pretty sure this will work. :D


<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?beta4p" />

dracomiconia

Thanks very much!

Another question:

Could I call SSI like this?

Line 1 in every file:


<?php require("caller.php"?>


And in caller.php I do the call to SSI.php...

This is asked cause I am working in my new web in a subdirectory, and when I move it to root directory, I would have to change all the calling SSI roots....

Tomer


Advertisement: