Customizing SMF > SMF Coding Discussion

Styles in portal

(1/2) > >>

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:


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

Make sure the path fits your site. :D
--- End code ---

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


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

--- End code ---

dracomiconia:
Thanks very much!

Another question:

Could I call SSI like this?

Line 1 in every file:


--- Code: ---<?php require("caller.php") ?>

--- End code ---

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....

Navigation

[0] Message Index

[#] Next page

Go to full version