PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
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 Back to top

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!


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

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
Hangin' Around


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

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

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 */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* 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 */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* 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>
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:39 am Reply with quote Back to top

can you change the block weight and see if the problem follows the block.
Thanks
Fury
View user's profile Send private message
18-delta
Hangin' Around


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

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

still follows.

{edit} changed themes, fix block weight conflict, moved block, no change. going to try reinstall of the realstat block.
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 2:02 am Reply with quote Back to top

i will check back tomorrow and maybe have a fresh idea i need SLEEP!!! so good night.
Thanks
Fury
View user's profile Send private message
18-delta
Hangin' Around


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

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

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


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

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

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.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
18-delta
Hangin' Around


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

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

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

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