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 7.6
Author Message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Feb 25, 2005 12:28 pm Reply with quote

The languag should b pulled from the directory its in now. With this code
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

The links are all wired to $module_name so I would guess there is something interfering with the variable $module_name??

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sixonetonoffun







PostPosted: Fri Feb 25, 2005 1:04 pm Reply with quote

In the language files did you prefix the defines to be different from the original ones then propagate the changes in the files?

Because a define can only be made once so there cannot be 2 defines the same.

define("_URL","URL");
would have to be
define("_NewURL","My URL");
or
define("_URL","URL");
Will always be URL.
 
TheShniz
Regular
Regular



Joined: Jan 27, 2004
Posts: 65

PostPosted: Fri Feb 25, 2005 1:10 pm Reply with quote

Ok, figured out the linx not working properly... basically, I didn't go through & update all of the case.php in module/admin/ reason B'ing I updated the 1st 'downloads' function, went on 2 do all the others in the main index.php & 4got 2 go back & tell case.php they were there. W-H-O-O-P-S-!

As 4 the language not kicking in, it makes sense what U said but I don't C how it would B...

Again in case.php:
Code:


$module_name = "Media_Library";
include_once("modules/$module_name/admin/language/lang-".$currentlang.".php");


I'm going through the index.php but am not really sure what 2 B looking 4, hope 2 stumble on it...
- J
 
View user's profile Send private message
TheShniz







PostPosted: Fri Feb 25, 2005 1:12 pm Reply with quote

No, I did NOT change the variable, only what it's defined as...

Xample:
define("_DOWNLOADSWAITINGVAL","Media Waiting for Validation");

I changed 'Downloads' to 'Media' in the description, not the variable representing/equaling it.

- J

:: edited ::

How come $module_name has 2 B set manually 4 the admin/index.php, but can B defined as 'basename(dirname(__FILE__));' in the module/index.php? I'm assuming it's just how the Module Administration was written, but would think it'd B better 2 get rid of a point for error.

:: edited ::

I should note that the entire module is working just as it should, both user-side & admin-side. The user-side language file IS working Xactly as it should. The admin-side is STILL affected somehow & is showing the old 'Downloads' language. Again, not sure Y or how...
 
TheShniz







PostPosted: Tue Mar 01, 2005 2:40 pm Reply with quote

What is the nuke_modules table for? There's no entry for the module there, not sure if I should enter 1x manually... I'm a bit stumped and don't really know what 2 do 2 get this language file working right. Any suggestions?

Back after a nice long weekend Smile
- J
 
sixonetonoffun







PostPosted: Tue Mar 01, 2005 3:29 pm Reply with quote

Modules are read into the table (if something not wrong) do other new modules show up? If not the number of fields may not match the insert statement for the /admin/modules/modules.php
 
TheShniz







PostPosted: Tue Mar 01, 2005 3:48 pm Reply with quote

I'm not quite sure what U're asking, but this is what IS in the table...

1 AvantGo AvantGo 1 0 1 0
2 Content Content 0 0 1 0
3 Downloads Downloads 0 0 1 0
4 Encyclopedia Encyclopedia 0 0 1 0
5 FAQ FAQ 0 0 1 0
6 Feedback Feedback 1 0 1 0
7 Forums Forums 1 0 1 0
8 Journal Journal 0 0 1 0
9 Members_List Members List 0 1 1 0
10 News News 1 0 1 0
11 Private_Messages Private Messages 1 0 1 0
12 Recommend_Us Recommend Us 1 0 1 0
13 Reviews Reviews 0 0 1 0
14 Search Search 1 0 1 0
15 Statistics Statistics 1 0 1 0
16 Stories_Archive Stories Archive 1 0 1 0
17 Submit_News Submit News 1 0 1 0
18 Surveys Surveys 1 0 1 0
19 Top Top 10 1 0 1 0
20 Topics Topics 1 0 1 0
21 Web_Links Web Links 1 0 1 0
22 Your_Account Your Account 1 0 1 0
23 Blocked_IPs Blocked IPs 0 0 1 0
24 Blocked_Ranges Blocked Ranges 0 0 1 0
25 Blocked_Referers Blocked Referers 0 0 1 0
26 IP_to_Country IP to Country 0 0 1 0
27 About_Us About Us 1 0 1 0
28 coppermine Image Gallery 1 0 1 0
29 Calvary_Kids Calvary_Kids 1 0 1 0
30 Fellowship Fellowship 1 0 1 0

Note that 'Media_Library' is NOT in there... it DOES however show up in the module administration & I DID activate it (& shows active).

Me thinx me lost :S
- J
 
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 7.6

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 ©