PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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
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 Back to top

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.
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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Frogger
Worker
Worker


Joined: Oct 06, 2003
Posts: 108

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

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
bladerunner
New Member
New Member


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

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

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


Joined: Oct 06, 2003
Posts: 108

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

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?
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
bladerunner
New Member
New Member


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

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

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
bladerunner
New Member
New Member


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

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

"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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum