Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
bladerunner
New Member
New Member



Joined: Nov 01, 2003
Posts: 9
Location: Scotland

PostPosted: Sat Nov 01, 2003 3:26 pm Reply with quote

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

_________________
There is nothing in this world constant, but inconstancy.........j.swift 
View user's profile Send private message
Frogger
Worker
Worker



Joined: Oct 06, 2003
Posts: 108

PostPosted: Sat Nov 01, 2003 5:26 pm Reply with quote

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.

_________________
Image 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 01, 2003 7:03 pm Reply with quote

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.
 
View user's profile Send private message
Frogger







PostPosted: Sat Nov 01, 2003 7:20 pm Reply with quote

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







PostPosted: Sun Nov 02, 2003 3:47 am Reply with quote

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







PostPosted: Sun Nov 02, 2003 1:57 pm Reply with quote

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







PostPosted: Mon Nov 03, 2003 4:52 am Reply with quote

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







PostPosted: Mon Nov 03, 2003 5:05 am Reply with quote

Do what works Smile. 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







PostPosted: Mon Nov 03, 2003 5:13 am Reply with quote

"but if you come up with a better way"
I don't think there is much chance of this happening. Laughing


If it works for you then I will just have to make it work for me... Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©