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...
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Thu Jul 03, 2003 7:31 am
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.
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
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