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
Bigboy177
Worker
Worker


Joined: Jul 07, 2004
Posts: 192

PostPosted: Mon Dec 27, 2004 9:43 am Reply with quote Back to top

Raven wrote:
Find this code in the modules index.php file
Code:
header("Refresh: $refreshRate;");

and right after it, insert this line with the proper Polish character set
Code:
header("Content-Type: text/html; charset=iso-8859-1");


Nope still nothing... Sad

d*** I don't know where the hell the coding is hidden... :/
View user's profile Send private message
Bigboy177
Worker
Worker


Joined: Jul 07, 2004
Posts: 192

PostPosted: Mon Dec 27, 2004 10:25 am Reply with quote Back to top

I found a quite strange thing...

Before I put the module to the block or to the themes.php in which I've added my modules based on who-is-where... (of course I put them in an iframe...) the require_once("mainfile.php"); doesn't cause problems... but it still doesn't repair anything... All letters are OK if I put
require_once("includes/meta.php"); into the file... And still no errors... but when I want to put the module inside the iframe and into the themes.php file I get errors about missing files... This is quite strange...
Why does the coding work when it's not called from an iframe but when it is, the coding is all messed up...
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Mon Dec 27, 2004 10:35 am Reply with quote Back to top

Because the IFRAME is not in the nuke environment and is no longer relative. You can try using absolute paths.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Bigboy177
Worker
Worker


Joined: Jul 07, 2004
Posts: 192

PostPosted: Mon Dec 27, 2004 10:45 am Reply with quote Back to top

Unfortunatelly it won't work... because it's all like a chain... When I want to use the absolute paths, I get errors in other files... something about the lib.php file... Guess it won't work... Sad
View user's profile Send private message
Bigboy177
Worker
Worker


Joined: Jul 07, 2004
Posts: 192

PostPosted: Mon Dec 27, 2004 12:09 pm Reply with quote Back to top

I fixed it... All did is add:

Code:

echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=\"charset=iso-8859-2\">\n";


To the begining of each file... Smile

Thanks for your time... Problem is solved... Smile
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Mon Dec 27, 2004 12:21 pm Reply with quote Back to top

That's exactly what the header() code should have done.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
dssripper
Regular
Regular


Joined: Feb 16, 2004
Posts: 69

PostPosted: Mon Jan 10, 2005 7:15 pm Reply with quote Back to top

I am using Raven's Who Is Where block. The text is black in the box.
The title is white. All my other blocks have white text in them?
Any suggestions?
Only registered users can see links on this board!
Get registered or login to the forums!


Larry
View user's profile Send private message
Bigboy177
Worker
Worker


Joined: Jul 07, 2004
Posts: 192

PostPosted: Mon Jan 10, 2005 7:21 pm Reply with quote Back to top

Put <font color=\"white\"></font> in the RWH module, where the text is echoed... and everything will be like it should be... Wink
View user's profile Send private message
dssripper
Regular
Regular


Joined: Feb 16, 2004
Posts: 69

PostPosted: Mon Jan 10, 2005 7:33 pm Reply with quote Back to top

Code:
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
if (eregi("block-RWHWhoIsWhere.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
global $cookie, $Default_Theme;
$theme = isset($cookie[9])&&!empty($cookie[9])?$cookie[9]:$Default_Theme;
if (!file_exists("themes/$theme/index.php")) $theme = $Default_Theme;
$content = "<iframe frameborder=\"0\" allowtransparency=\"true\" src=\"modules/RWH_WhoIsWhere/index.php?refreshRate=$refreshRate&theme=$theme\" width=\"100%\" height=\"200\"><ilayer  src=\"modules/RWH_WhoIsWhere/index.php?refreshRate=$refreshRate&theme=$theme\" width=\"100%\" height=\"200\"></ilayer></iframe>";
?>


Thanks, but where would I put it?


Larry
View user's profile Send private message
Bigboy177
Worker
Worker


Joined: Jul 07, 2004
Posts: 192

PostPosted: Tue Jan 11, 2005 6:00 am Reply with quote Back to top

You Gave The content of the block and I wrote about the module...

In the file modules\RWH_WhoIsWhere\index.php change these lines:

Code:

echo "<b><u>Guest(s) Online</b></u><br />".count($guest).' guest(s)';


Code:

$reg = "<b><u>".$notHiddenCount." User(s) Online</b></u><br />".$reg;


Code:

echo "<center>($refreshRate sec. refresh)</center>";


You should change them to:

Code:

echo "<font color=\"white\"><b><u>Guest(s) Online</b></u><br />".count($guest).' guest(s)</font>';


Code:

$reg = "<font color=\"white\"><b><u>".$notHiddenCount." User(s) Online</b></u><br />.$reg</font>";


Code:

echo "<font color=\"white\"><center>($refreshRate sec. refresh)</center></font>";


I think it should work... but I haven't tested it...
View user's profile Send private message
dssripper
Regular
Regular


Joined: Feb 16, 2004
Posts: 69

PostPosted: Tue Jan 11, 2005 6:18 am Reply with quote Back to top

Sweet! That worked!
Thanks alot!!
I appreciate the help!


Larry
View user's profile Send private message
christianb
Worker
Worker


Joined: Nov 24, 2004
Posts: 131
Location: Batesville, AR

PostPosted: Wed May 25, 2005 3:09 pm Reply with quote Back to top

Is there a version of Who is Where that works with 7.7? I tried 2.3 and it doesn't work, or at least not in the present.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


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

PostPosted: Wed May 25, 2005 8:46 pm Reply with quote Back to top

christianb wrote:
Is there a version of Who is Where that works with 7.7? I tried 2.3 and it doesn't work, or at least not in the present.
The wiw block that you are talking about is NOT the one discussed in this thread. My WhoIsWhere block is version 1.2 and works perfectly with all versions of phpnuke.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
christianb
Worker
Worker


Joined: Nov 24, 2004
Posts: 131
Location: Batesville, AR

PostPosted: Wed May 25, 2005 9:12 pm Reply with quote Back to top

Ahh, well, that makes a lot of sense. Figures. Thanks Raven.
View user's profile Send private message Visit poster's website
Josh_S
New Member
New Member


Joined: Jan 26, 2006
Posts: 6

PostPosted: Sat Jan 28, 2006 3:26 pm Reply with quote Back to top

In your installation it says to:

Code:

[FIND]
$home = 1;

[INSERT AFTER]
/////////////////
include_once('includes/RWH_wiw.inc.php');
/////////////////


But there isn't a $home = 1; in my index file...
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Sat Jan 28, 2006 6:48 pm Reply with quote Back to top

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
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sun Mar 26, 2006 9:12 am Reply with quote Back to top

I would relly like to get this to work on my site.
I have looked at about 10 defrent fixes for this issue but i dont have the bad code are the good code so it must be a version thing.
the error is

Quote:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/xxhidenxx/public_html/modules/RWH_WhoIsWhere/index.php on line 151


line 151 is

Quote:

$data = mysql_fetch_row($cmd);


Im at a loss
View user's profile Send private message
JTD
Hangin' Around


Joined: Nov 21, 2005
Posts: 45
Location: Indiana

PostPosted: Mon May 01, 2006 7:06 am Reply with quote Back to top

I also have a question about this. I am running phpnuke 7.9 And have installed this addon which works in a fashion. But it says to edit 2 files. I went in to edit them and neither have the code that it says to add after IE
How do i get this to work properly?

$home = 1; (in index.php) or $name = trim($name); (in modules.php)




Code:
edit index.php.  On or about line 24
[FIND]
$home = 1;

[INSERT AFTER]
/////////////////
include_once('includes/RWH_wiw.inc.php');
/////////////////


edit modules.php.  On or about line 22
[FIND]
$name = trim($name);

[INSERT AFTER]
/////////////////
include_once('includes/RWH_wiw.inc.php');
/////////////////
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Raven
Site Admin/Owner


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

PostPosted: Mon May 01, 2006 12:43 pm Reply with quote Back to top

In index.php use define('HOME_FILE', true); instead of $home = 1;

In modules.php use $name = addslashes(trim($name)); instead of $name = trim($name);
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
JTD
Hangin' Around


Joined: Nov 21, 2005
Posts: 45
Location: Indiana

PostPosted: Mon May 01, 2006 9:52 pm Reply with quote Back to top

Thank you. Very Happy
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
ugcmadman
New Member
New Member


Joined: May 10, 2006
Posts: 2

PostPosted: Tue Jun 27, 2006 5:49 pm Reply with quote Back to top

Im running nuke 7.6
The RWIW block works great except for one thing:
One the "Most Ever Online" it shows the same number as the
"People online".
It never keeps the number no matter how many people were on line.
If only one person is online, it says the most people ever online were one. Two shows as two, ect.ect.
It shows the same number as now online no matter what. Any Ideas?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Tue Jun 27, 2006 6:09 pm Reply with quote Back to top

ugcmadman wrote:
Im running nuke 7.6
The RWIW block works great except for one thing:
One the "Most Ever Online" it shows the same number as the
"People online".
It never keeps the number no matter how many people were on line.
If only one person is online, it says the most people ever online were one. Two shows as two, ect.ect.
It shows the same number as now online no matter what. Any Ideas?

My WIW block doesn't even have a "Most Ever Online". You are using someone else's.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
ugcmadman
New Member
New Member


Joined: May 10, 2006
Posts: 2

PostPosted: Wed Jun 28, 2006 2:29 pm Reply with quote Back to top

Thanks for your reply... That settles it ..Im going to use yours now!!
Yours work!
View user's profile Send private message
ciph3r
Worker
Worker


Joined: Jun 01, 2005
Posts: 176

PostPosted: Fri Jul 28, 2006 3:20 pm Reply with quote Back to top

Just a suggestion......the site info block is awesome, and I think it would completely eliminate the who is where in general, if there was a way to make the info display in the site info block.

* = mail image to PM user
[] = profile image to link to users profile

For example:
Online Now
[]* cipher @ Forums

I think this would be an awesome mod, and if I was a decent coder I would do it myself....but im a nub.

One thing I really liked about PNC CMS (
Only registered users can see links on this board!
Get registered or login to the forums!
) is their Who Is Where module.

It can be seen here:
Only registered users can see links on this board!
Get registered or login to the forums!


A smaller who is where block, without the refesh would be much better IMO because the refresh just makes the page load every 60 seconds. (although at this point i havent really played with RN who is where to much) so please forgive me if this has already been addressed.

Just adding my 2 cents to an awesome community.


Last edited by ciph3r on Wed Aug 23, 2006 1:24 am; edited 1 time in total
View user's profile Send private message Visit poster's website
ciph3r
Worker
Worker


Joined: Jun 01, 2005
Posts: 176

PostPosted: Tue Aug 01, 2006 5:55 pm Reply with quote Back to top

actually Ive got another version of Who is where, and it can be seen @
Only registered users can see links on this board!
Get registered or login to the forums!


Seems to be working fine in ravennuke 7.6 as well Smile
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic