Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
18-delta
Hangin' Around



Joined: Oct 08, 2003
Posts: 36
Location: U.S.

PostPosted: Tue Oct 14, 2003 12:26 am Reply with quote

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 
View user's profile Send private message Visit poster's website
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Tue Oct 14, 2003 1:14 am Reply with quote

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







PostPosted: Tue Oct 14, 2003 1:25 am Reply with quote

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>&nbsp;</p>
 
fury







PostPosted: Tue Oct 14, 2003 1:39 am Reply with quote

can you change the block weight and see if the problem follows the block.
Thanks
Fury
 
18-delta







PostPosted: Tue Oct 14, 2003 1:42 am Reply with quote

still follows.

{edit} changed themes, fix block weight conflict, moved block, no change. going to try reinstall of the realstat block.
 
fury







PostPosted: Tue Oct 14, 2003 2:02 am Reply with quote

i will check back tomorrow and maybe have a fresh idea i need SLEEP!!! so good night.
Thanks
Fury
 
18-delta







PostPosted: Tue Oct 14, 2003 2:05 am Reply with quote

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.
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Oct 14, 2003 8:00 am Reply with quote

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







PostPosted: Tue Oct 14, 2003 12:25 pm Reply with quote

looks like a lot of file jumpin starts when addressing this one Smile 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
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

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 ©