php forum
php mysql forum
php mysql smarty
 
Topic Options
#246871 - 05/17/03 01:17 PM how to make stylesheets work on the rest of the site too?
Beentheredonethat Offline
Member

Registered: 05/10/02
Posts: 160
Loc: Not here
Can you please tell me what code i have to ad to a web page if i wanted it to use a cetain stylesheet

Top
#246872 - 05/17/03 01:37 PM Re: how to make stylesheets work on the rest of the site too? [Re: charts]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
You'll need to make the classes you use for the styles the same in the rest of your site like you have in threads <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#246873 - 05/18/03 01:23 AM Re: how to make stylesheets work on the rest of the site too? [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yeah basically where you have <td> you might want something like <td class="lighttable"> or <td class=darktable><br /><br />Every element on your page needs a CSS class assigned to it - coresponding with the Threads Classes for them to appear. <br /><br />Then it knows what it's supposed to display in what color and with what properties. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#246874 - 05/18/03 01:14 PM Re: how to make stylesheets work on the rest of the site too? [Re: Daine]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Looking at your page - you have created the page in FrontPage - and it has added <br /><br />style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1"<br /><br />These will overwrite any table settings within the Stylesheet - go to the html view and remove these items.<br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#246875 - 05/18/03 02:21 PM Re: how to make stylesheets work on the rest of the site too? [Re: SurfMinister]
Beentheredonethat Offline
Member

Registered: 05/10/02
Posts: 160
Loc: Not here
Thank you to all for the responses.<br />Looks like it si going to be more complicated than I anticipated :-)<br />For now I can not even understand what is it that you are suggesting :-( but I will look at it and try to figure it out before my next post for help<br /><br />I take it it will be a lot of work to change all existing pages and that it is not just a matter of adding some headers to the exisating pages...<br />

Top
#246876 - 05/18/03 04:37 PM Re: how to make stylesheets work on the rest of the site too? [Re: charts]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
JaneDoe,<br /><br /> Okay Lets see if I can make it a little easier to understand. You can add as Allen said the stylesheet call that is easy. <br /><br /><link rel="stylesheet" href="/freeboard/stylesheets/infopop.css" type="text/css" /> <br /><br /> However I do not even bother with this. Any page of content on my site I remake into a PHP file and use Threads header and footers. This makes my entire site look uniform. There is a hack here called BasicPage which will show you how to do this. <br /><br /> If you choose to just add the link statement like you already suggested to your HTML files then follow Josh's advice. A stylesheet is made up of CLASS calls. This is what tells the page what to load. In order to accomplish this a class call must be in the html tags where you want them to display the appropriate tag. Here is an example<br /><br /><table class="tableborders"><br /><tr><br /><td class="darktable"><br />CONTENT HERE<br /></td><br /></tr><br /></table><br /><br />This will create a table with Threads table border around it whatever content you place in the table and it will be colored like the darktable in the forums.<br /><br />Allen has posted alot of good links in the New Forum Design Matters here at ThreadsDev that may give you some insight on how CSS works if you have trouble understanding the basics.<br /><br /><br /><br /><br /><br /><br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#246877 - 05/20/03 05:15 PM Re: how to make stylesheets work on the rest of the site too? [Re: sf49rminer]
Beentheredonethat Offline
Member

Registered: 05/10/02
Posts: 160
Loc: Not here
Thank you again.<br />Looks like this is a case of "can not get there from here"<br />I need to learn a few thing before...<br /><br />What would be the best way to make the rest of a site look like UBBthreads?<br /><br />Or is that silly? Should I just make the board look like the rest of the site?

Top
#246878 - 05/20/03 05:17 PM Re: how to make stylesheets work on the rest of the site too? [Re: charts]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he<br /><br />It's easy to do - but your pages have to be setup to use CSS classes. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />You're a client of mine - I'll send you an example. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#246879 - 05/20/03 07:40 PM Re: how to make stylesheets work on the rest of the site too? [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Josh will get ya in the right direction <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />I make my entire site look uniform by using the basic page and calling the headers and footers from Threads as well as the stylesheet. As Josh stated you then need to make sure the html you have gets added the CLASS variable instead of any COLOR variable you use now. <br /> <br />Right now you probally have something like this in your html <br /> <br /><table width="100" color="#00000"> <br /><tr> <br /><td color=#FFFFFF"> <br />BLAH <br />BLAH <br />BLAH <br /></td> <br /></tr> <br /></table> <br /> <br />To use the threads CLASS calls it needs to be something like this for instance <br /> <br /><table width="100" class="tableborders"> <br /><tr> <br /><td class="darktable"> <br />Content here <br /></td> <br /></tr> <br /></table> <br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#246880 - 05/21/03 07:06 AM Re: how to make stylesheets work on the rest of the site too? [Re: charts]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
[]janedoe said:<br />Thank you again.<br />Looks like this is a case of "can not get there from here"<br />I need to learn a few thing before...<br /><br />What would be the best way to make the rest of a site look like UBBthreads?<br /><br />Or is that silly? Should I just make the board look like the rest of the site? [/]<br /><br />Not silly at all - in my site all the other applications used, have to blend into threads - rather than threads blending into them. This might be news, photos, chat etc.<br /><br />Check out the modifications section for some useful mods to benefit you (including a template mod), and also look at the IIP & side bar pal, both to be found in the IIP section.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#246881 - 10/02/03 03:16 AM Re: how to make stylesheets work on the rest of the site too? [Re: charts]
Myke Offline
Power User

Registered: 09/06/99
Posts: 87
Loc: Sydney, Australia
I guess my request is similar to the original poster. I've been using a single stylesheet for the entire site/forum, and everything looks uniform throughout.<br /><br />But I've recently been toying with the idea of creating or installing new stylesheets for the forum but I'd like these to be used throughout the entire site as well. If a user isn't logged in, then the default stylesheet should be used.<br /><br />Is what I'm asking possible? Right now, all my site pages (i.e. non forum) have CSS references to the forum's default stylesheet.<br /><br />Cheers.

Top
#246882 - 10/02/03 12:20 PM Re: how to make stylesheets work on the rest of the site too? [Re: kja]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It's possible if you do 1 of two things...<br /><br />a) Code all your HTML in the regular pages to use Threads classes (tdheader, lighttable, darktable etc....)<br /><br />b) Add the classes you use in the rest of the site to your threads stylesheets. <br /><br />Take a look at the generic page mod posted here.... you'll see how you can included the main.inc.php file and then authenticate the user to get the preferred stylesheet.<br /><br />If these aren't PHP pages, then I'm not sure how it would know what stylesheet to use, and you'd have to hardcode the stylesheet you want into the header of the html pages.<br /><br /><img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#246883 - 10/02/03 10:40 PM Re: how to make stylesheets work on the rest of the site too? [Re: Daine]
Myke Offline
Power User

Registered: 09/06/99
Posts: 87
Loc: Sydney, Australia
All my pages currently are using the threads classes so that part is OK.<br /><br />I'll look into the generic page mod, as that sounds like the kind of thing I need (authentication, looking up stylesheet preference, etc).<br /><br />Cheers.

Top
#246884 - 10/02/03 10:52 PM Re: how to make stylesheets work on the rest of the site too? [Re: kja]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Basically, if it's a PHP page, you need this:<br /><br />
Code:
<br />include("/path/to/your/threads/install/main.inc.php");<br /><br />$userob = new user;<br />$user = $userob -&gt; authenticate("U_StyleSheet");<br /><br />$stylesheet = $user['U_StyleSheet'];<br />if ((!$stylesheet) || ($stylesheet == "usedefault")) {<br />    $stylesheet = $theme['stylesheet'];<br />}<br />
<br /><br />Then something like this in the <head></head> of your page.<br /><br /><link rel="stylesheet" href="http://www.whatever.com/forum/stylesheets/$stylesheet.css" type="text/css" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#246885 - 10/02/03 11:00 PM Re: how to make stylesheets work on the rest of the site too? [Re: Daine]
Myke Offline
Power User

Registered: 09/06/99
Posts: 87
Loc: Sydney, Australia
Thanks Josh! Just what I was needing <img src="/forum/images/graemlins/smile.gif" alt="" />

Top


Who's Online
0 registered (), 25 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
56 minutes 29 seconds ago
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks