| Author |
Message |
bladerunner New Member


Joined: Nov 01, 2003 Posts: 9 Location: Scotland
|
Posted:
Sat Nov 01, 2003 3:26 pm |
|
I have installed on my nuke 6.5 your real time stats block.
This block works perfectly........except for..... When logged in as a member the link to the theme style.css is not working. I only use one theme by the way.
Any ideas?
Any help is greatfuly appreciated.
Lang may yer lum reek Raven |
|
|
|
 |
Frogger Worker


Joined: Oct 06, 2003 Posts: 108
|
Posted:
Sat Nov 01, 2003 5:26 pm |
|
I was having the same problem with 7.0 site and just made the following change in the modules/.../index.php
| Code: | Line 45 else $bodyTag = "";
to
$bodyTag = "<body bgcolor=\"#C8C8C8\">"; |
This doesn't assign the theme font, but it looks better with my theme. |
|
|
 |
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sat Nov 01, 2003 7:03 pm |
|
I seem to remember that I could never get it to do exactly what I wanted, so I just to the cheap way out and used this code | Code: | if ($theme=='fiapple') $bodyTag = "<body bgcolor=\"#F5F5F5\">";
elseif ($theme=='Dezina_Amor'||$theme=='Dezina_Dove') $bodyTag = "<body bgcolor=\"#EEF5FA\">";
else $bodyTag = ""; | Just replace your theme(s) (case sensitive) in place of 'Dezina_Amor Dezina_Dove fiapple' and the color tag also. To use what Frogger suggested is the default and will kick in if the theme names never match. Or, for just 1 theme, just eliminate the 'ifs' and just have one statement | Code: | | $bodyTag = "<body bgcolor=\"#EEF5FA\">"; | and substitute the color to match your other blocks. |
|
|
|
 |
Frogger Worker


Joined: Oct 06, 2003 Posts: 108
|
Posted:
Sat Nov 01, 2003 7:20 pm |
|
That is a lot better.
I was gonna see if that would work, but was afraid to try it with everything else that's happening lately...  |
|
|
 |
 |
bladerunner New Member


Joined: Nov 01, 2003 Posts: 9 Location: Scotland
|
Posted:
Sun Nov 02, 2003 3:47 am |
|
Thanks for the swift response.
I Have a lot of html experience but I am still (gingerly) finding my way round php.
Thanks again guys.  |
|
|
|
 |
Frogger Worker


Joined: Oct 06, 2003 Posts: 108
|
Posted:
Sun Nov 02, 2003 1:57 pm |
|
Using realtime stats everything works well with the theme until a member or admin logs in.
After logging in the font used in the realtime stats is changed to courier.
I have checked my theme and css for it and all fonts are arial, verdana.
What else do I need to check? |
|
|
 |
 |
bladerunner New Member


Joined: Nov 01, 2003 Posts: 9 Location: Scotland
|
Posted:
Mon Nov 03, 2003 4:52 am |
|
I did what raven said, got rid of the ifs and just used the bgcolor. The problem after this is that the scrollbar color is not the same as defined in the style sheet and obviously the font is what your browser sets.
I think the best way round it is to define the style in the modules/index.php. to match the style of your theme.
Raven if this sounds insane let me know. I am just a novice. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Nov 03, 2003 5:05 am |
|
Do what works . Using my original code and substituting the correct theme and color has always worked for me but if you come up with a better way I will be happy to implement it. |
|
|
|
 |
bladerunner New Member


Joined: Nov 01, 2003 Posts: 9 Location: Scotland
|
Posted:
Mon Nov 03, 2003 5:13 am |
|
"but if you come up with a better way"
I don't think there is much chance of this happening.
If it works for you then I will just have to make it work for me...  |
|
|
|
 |
|
|
|
|