| Author |
Message |
guest
Guest

|
Posted:
Wed May 21, 2003 9:32 am |
  |
Hi,
Somewhat newbie here. I'm not completely familiar with php, but i do know what's going on...anyway, here's my question.
What's going on with this site??
http://members.lycos.co.uk/papaschnay
Any help is appreciated!
This is off of a fresh install!
PLEASE HELP!
Papa Schnay |
|
|
 |
 |
Daniel-cmw
Site Admin


Joined: Mar 02, 2003
Posts: 1662
Location: The UK!
|
Posted:
Wed May 21, 2003 9:36 am |
  |
|
   |
 |
Guest

|
Posted:
Wed May 21, 2003 9:45 am |
  |
Most of it's okay,
I'm wondering how to get rid of the lines where this happens
_CURRENTLY 1
_GUESTS 1 _MEMBERS
_YOUARELOGGED
_YOUHAVE 0
_PRIVATEMSGS |
|
|
 |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed May 21, 2003 10:08 am |
  |
You haven't added the language file definitions for your block/module. You need to add the DEFINES for those variables into the language files that you use on your site. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Guest

|
Posted:
Wed May 21, 2003 10:18 am |
  |
|
 |
 |
Guest
Guest

|
Posted:
Wed May 21, 2003 10:23 am |
  |
Wait,
If you mean that they aren't defined in ./language/lang-english.php , they are, it's just that they aren't showing up as the text it's supposed to be! This is really weird! |
|
|
 |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed May 21, 2003 10:37 am |
  |
Check the path in your block/module index.php file to find out where your module/block is expecting the language file to be. It can't find it. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Guest
Guest

|
Posted:
Wed May 21, 2003 11:01 am |
  |
Alright,
This is the piece of code I think you're talking about!
In the block-Who_is_Online.php file
---------------------------------------
if (eregi("block-Who_is_Online.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
Here's the thing...there's no index.php file in /block or /module. I don't know where it's pointing!! |
|
|
 |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed May 21, 2003 11:15 am |
  |
In that file, search for the word 'language' and find where it expects the language file to be. Then, verify that that is where it is. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Guest
Guest

|
Posted:
Wed May 21, 2003 3:14 pm |
  |
|
 |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed May 21, 2003 3:17 pm |
  |
And you're sure that these variables:
_CURRENTLY
_GUESTS
_MEMBERS
_YOUARELOGGED
_YOUHAVE
_PRIVATEMSGS
are all in language/lang-english.php as DEFINES? |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Guest
Guest

|
Posted:
Wed May 21, 2003 8:35 pm |
  |
Hi,
Me again. It's not like this is the only place that this happens. It happens in the poll block, all over the admin page, it's everywhere where this happens. Just wondering what the possible cause of this could be!! |
|
|
 |
 |
Guest
Guest

|
Posted:
Wed May 21, 2003 8:49 pm |
  |
[Edited and removed offensive language]
One example is:
lang-english.php
****************
define("_CURRENTLY","There are currently,");
then you look in block-Who_is_Online.php
****************
etc
etc
$who_online = "<center><font class=\"content\">"._CURRENTLY." $guest_online_num "._GUESTS." $member_online_num "._MEMBERS."<br>";
etc
etc
etc
I'm pretty sure that the periods are supposed to be there, that's how it originally showed up. Anyway, any help appreciated!
Thanks |
|
|
 |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu May 22, 2003 3:04 am |
  |
I understand your frustration, but please read the rules of conduct for posting messages and follow them. I have edited your previous message and removed the cussing.
And yes, the periods are supposed to be there. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Guest
Guest

|
Posted:
Thu May 22, 2003 7:32 am |
  |
|
 |
 |
|
|