You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 52 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - How do I change Module titles to use the language files [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
quicklan
Nuke Cadet
Nuke Cadet


Joined: Jul 03, 2003
Posts: 1


PostPosted: Thu Jul 03, 2003 2:35 am Reply with quoteBack to top

This isn't quite working like I hoped, I put in the following code as a block title hoping it would make reference to an entry in the relevant language file, does anyone know if its possible ?

my code was <?php <p>"._TITLE001."</p> ?>
I tried <p>"._TITLE001."</p>
too but to no avail...

Many thanks if someone can help... Very Happy Very Happy Very Happy
Find all posts by quicklanView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Jul 03, 2003 7:31 am Reply with quoteBack to top

Interesting challenge! There could be a number of ways to do this. One way, which is admittedly a kludge but is quick, would be the slam dunk method. Say you have define(_TITLE001, 'This is title one'); defined in your language file. In blocks/block-Modules.php, find these lines
Code:
    $sql = "SELECT title FROM ".$prefix."_modules";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $title = $row[title];

Now, let's assume that you have a module titled _TITLE001 (nothing else). So far so good? Okay! Now, add these lines after the $title = $row[title]; statement above.
Code:

$title = str_replace('_TITLE001',_TITLE001,$title);
I haven't tried it, but it seems like it should work. If not, let me know; it's got to be close. You would just add as many other str_replace statements as you need. Actually, that could be automated too if you're interested Wink

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.170 Seconds - 337 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::