Author |
Message |
18-delta
Hangin' Around
![](modules/Forums/images/avatars/411ff3df3f8b4940d1ff8.gif)
Joined: Oct 08, 2003
Posts: 36
Location: U.S.
|
Posted:
Tue Oct 14, 2003 12:26 am |
|
Don't know if i got the right area but here it is. This isn't a huge issue, more nit-picky than anything. I download the realtime stat block and it works great. Issue: leaves a space between the block above it instead of sitting flush. I imagine it's a simple code adjustment but I don't know where to look.
[EDITED] ok also with this block: it adopts my theme if i'm logged in as admin or just viewing the page as a guest. when i log in with my regular user name the block content loses it's background (turns white) and font settings (turns to reg. black 12pt.) I'm starting to recognize code so i hunted for an answer. This is my best guess as to where the problem is, like i said, just a guess.
(index.php from realstats module)
Quote: | if ($theme=='fiapple') $bodyTag = "<body bgcolor=\"#F5F5F5\">";
elseif ($theme=='Dezina_Amor'||$theme=='Dezina_Dove') $bodyTag = "<body bgcolor=\"#EEF5FA\">";
else $bodyTag = "";
$db = mysql_pconnect($dbhost, $dbuname, $dbpass) or die('<br />MySQL said '.mysql_error());
mysql_select_db($dbname) or die('<br />MySQL said '.mysql_error());
header("Refresh: $refreshRate;");
echo $bodyTag."<LINK REL=\"StyleSheet\" HREF=\"../../themes/$theme/style/style.css\" TYPE=\"text/css\">"; |
Thanks for any help! |
_________________ Only registered users can see links on this board! Get registered or login!
Last edited by 18-delta on Tue Oct 14, 2003 1:22 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fury
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Sep 09, 2003
Posts: 165
|
Posted:
Tue Oct 14, 2003 1:14 am |
|
I see the problem you are describing, could you try this one thing? Move the block to the other side and see if it follows. If so there is something entering a <TD> or <TR> tag dropping the block placement, also could you paste the exact code you used here for us to look at.
Thanks
Fury |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
18-delta
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 14, 2003 1:25 am |
|
here is the block code. only thing i changed was the refresh rate and admin name.
Quote: | <?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/************************************************************************/
/* Block by Gaylen Fraley */
/* http://gaylenandmargie.com/phpwebsite */
/* For use with nuke 6.5 only */
/************************************************************************/
/************************************************************************/
/* Set the refresh rate for the block */
/************************************************************************/
$refreshRate = 60;
/************************************************************************/
/* Set this to the username of the site admin. The module code will add */
/* (Site-Admin) to the display of the username to let everyone know when*/
/* the Site-Admin is on line. */
/************************************************************************/
$adminName = 'myadminname'; /* CHANGE THIS TO YOUR ADMIN USER NAME */
/************************************************************************/
/* YOU SHOULD NOT HAVE TO MODIFY ANY CODE BENEATH THIS COMMENT BLOCK */
/************************************************************************/
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
if (eregi("block-realtime-stats.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
global $admin, $user, $cookie, $Default_Theme;
$theme = isset($cookie[9])?$cookie[9]:$Default_Theme;
if (is_admin($admin)) $is_admin=1;else $is_admin=0;
$content = "<iframe frameborder=\"0\" src=\"modules/realtime-stats/index.php?is_admin=$is_admin&adminName=$adminName&refreshRate=$refreshRate&theme=$theme\" width=\"100%\" height=\"200\"><ilayer src=\"modules/realtime-stats/index.php?is_admin=$is_admin&adminName=$adminName&refreshRate=$refreshRate&theme=$theme\" width=\"100%\" height=\"200\"></ilayer></iframe>";
?>
<p> </p> |
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fury
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 14, 2003 1:39 am |
|
can you change the block weight and see if the problem follows the block.
Thanks
Fury |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
18-delta
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 14, 2003 1:42 am |
|
still follows.
{edit} changed themes, fix block weight conflict, moved block, no change. going to try reinstall of the realstat block. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fury
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 14, 2003 2:02 am |
|
i will check back tomorrow and maybe have a fresh idea i need SLEEP!!! so good night.
Thanks
Fury |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
18-delta
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 14, 2003 2:05 am |
|
FIXED CELL SPACING!
I did a complete reinstall of real-stat and also deleted my cookies. one, both, but most likely the reinstall did the trick.
As for the other issue which is still present after reinstall:
Quote: | it adopts my theme if i'm logged in as admin or just viewing the page as a guest. when i log in with my regular user name the block content loses it's background (turns white) and font settings (turns to reg. black 12pt.) I'm starting to recognize code so i hunted for an answer. This is my best guess as to where the problem is, like i said, just a guess.
if ($theme=='fiapple') $bodyTag = "<body bgcolor=\"#F5F5F5\">";
elseif ($theme=='Dezina_Amor'||$theme=='Dezina_Dove') $bodyTag = "<body bgcolor=\"#EEF5FA\">";
else $bodyTag = "";
$db = mysql_pconnect($dbhost, $dbuname, $dbpass) or die('<br />MySQL said '.mysql_error());
mysql_select_db($dbname) or die('<br />MySQL said '.mysql_error());
header("Refresh: $refreshRate;");
echo $bodyTag."<LINK REL=\"StyleSheet\" HREF=\"../../themes/$theme/style/style.css\" TYPE=\"text/css\">";
|
just to clarify, i don't loose the border of the block, it retains the theme style, just the actuall bg and text inside the block loses the theme.
I could post my code if you want but it is the exact code from the download here. I changed nothing upon reinstall, and it still happens. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Oct 14, 2003 8:00 am |
|
One of those things that are on my list of things to-do! As you see I hard code theme checks in which need to be changed to accept the user or default theme instead.
Look at this post, especially the comments by StephanL. Although he is referring to the site info block, I think the technique will be the same.
http://www.ravenphpscripts.com/postt215.html |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
18-delta
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Oct 14, 2003 12:25 pm |
|
looks like a lot of file jumpin starts when addressing this one I'll leave it alone until someone mods the code. I'm in no rush, just trying different things out now that my site is stable and stuff. Like I said, no hurry.
Thanks guys |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|