Hi!
I saw that you have translated names of blocks .. till now i thought they are hardcoded .. where can i change them .. i use VKP maxxi.
thank you
Hi !
You can change the name of the block showing in the header of the block.
To do so, you have to go to the admin-menü | blocks | select the block you want to change klick on change (at the right you will find the link) and then you can change the name in the title-field.
greetings
jubilee
yo!
yeap i know that .. but i saw that you have translated names of blocks for different languages .. if i change my language .. names of blocks stays the same .. as stated in admin section of blocks .. as you wrote ...
is it possible to see the code of Wer ist onliune block .. i would compare it to mine .. to see which changes are made ..
any1 ?
:cool:
Hi gregy,
sorry, my english is not the best....
In File-Blocks (block-xxx.php) and only there, you can use the variable "$blockfiletitle" to set/get the blocktitle from the languagefile.
sample:
$blockfiletitle=_BWOMAAXONLINE;
and in the global-languagefiles:
define("_BWOMAAXONLINE","Who is Online");
now, that's what i'm talking about :)
i'll try this right now.
thanx
p.s. das ist sicher nicht richtige forum, aber wann kommt neue VKP
p.s.2 ich glaube mein deutsch ist gut genug fuer verstehen :)
Hi gregy :)
Dein Deutsch kann man problemlos verstehen ;)
Das neue VKP kann noch 2-3 Wochen dauern, leider :cry
hja .. es geht nicht so einfach :)
ich habe jetzt diese code in block_categories.php
<?php //* VKP-Maxi, RC 1.0.0.1 - 24.07.2002 - mgl
/************************************************************************/
/* VKP-Maxi, VKP-Midi, VKP-Mini */
/* ============================ */
/* rewrite and modified by: */
/* http://www.maax-design.de */
/* http://www.fsz-design.de */
/* http://micro.myftpsite.net */
/* http://www.shiba-design.de */
/* */
/* */
/************************************************************************/
/************************************************************************/
/* Original from PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-Categories.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $cat, $language, $prefix, $multilingual, $currentlang, $dbi;
$blockfiletitle=_TITLECONTENT;
//-------------MODIFY HERE TO CUSTOMIZE------------->
$image1 = "images/menu/oarrow.gif"; /* iamge path relative to public root */
$mouseOver = "#cacaca"; /* Sets mouseover color */
$mouseOut = "#eeeeef"; /* Sets mouseout color - leave blank for default background */
$highlite = "#eeeeef"; /* Sets background of selected catagory */
//--------END-----------END----------END------------>
$actionMenu = "onMouseOver=\"this.style.background='$mouseOver'\" onMouseOut=\"this.style.background='$mouseOut'\" style=\"cursor:pointer;cursor:hand\" onclick=\"window.location.href=";
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')"; /* the OR is needed to display stories who are posted to ALL languages */
} else {
$querylang = "";
}
$result = sql_query("select catid, title from ".$prefix."_stories_cat order by title", $dbi);
$numrows = sql_num_rows($result, $dbi);
if ($numrows == 0) {
return;
} else {
$boxstuff = "<font class=\"content\">";
while(list($catid, $title) = sql_fetch_row($result, $dbi)) {
$result2 = sql_query("select * from ".$prefix."_stories where catid='$catid' $querylang", $dbi);
$numrows = sql_num_rows($result2, $dbi);
if ($numrows > 0) {
$res = sql_query("select time from ".$prefix."_stories where catid='$catid' $querylang order by sid DESC limit 0,1", $dbi);
list($time) = sql_fetch_row($res, $dbi);
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $dat);
if ($cat == 0 AND !$a) {
$boxstuff .= "<tr><td align=\"right\"><b>"._ALLCATEGORIES."</b> <img src=$image1 BORDER=0></td></tr>";
$a = 1;
} elseif ($cat != 0 AND !$a) {
$boxstuff .= "<tr $actionMenu'modules.php?name=News'\"><td align=\"right\"><a href=\"modules.php?name=News\">"._ALLCATEGORIES."</a> <img src=$image1 BORDER=0></td></tr>";
$a = 1;
}
if ($cat == $catid) {
$boxstuff .= "<tr bgcolor=$highlite><td align=\"right\"><b>$title</b> <img src=$image1 BORDER=0></td></tr>";
} else {
$boxstuff .= "<tr $actionMenu'modules.php?name=News&file=categories&op=newindex&catid=$catid'\"><td align=\"right\"><a href=\"modules.php?name=News&file=categories&op=newindex&catid=$catid\">$title</a> <img src=$image1 BORDER=0></td></tr>";
}
}
}
$boxstuff .= "</font>";
$content .= "<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=\"100%\">\n";
$content .= $boxstuff;
$content .= "</TABLE>\n";
}
?>
und in lang_slovenian.php (es ist im language directory) habe ich
define("_TITLECONTENT","Vsebina");
well .. das funkcionirt nicht .. weil dann in block title habe ich _TITLECONTENT
nicht name des block ...
hab ich was falsh gemacht im categories block when i insterted code blocktitle?
thanx .. ja mein deutsch ist wirklich gut genug .... ich hoffe
Hi!
well i can't get it to work .. module Wer ist online is ok .. i made it .. but all others . no way ..
i also added tag $blockfiletitle into globals and then define into language file now code looks like this
<?php //* VKP-Maxi, RC 1.0.0.3 - 26.07.2002 - ae
/************************************************************************/
/* VKP-Maxi, VKP-Midi, VKP-Mini */
/* ============================ */
/* rewrite and modified by: */
/* http://www.maax-design.de */
/* http://www.fsz-design.de */
/* http://micro.myftpsite.net */
/* http://www.shiba-design.de */
/* */
/* */
/************************************************************************/
/************************************************************************/
/* Original from PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
global $prefix, $dbi, $currentlang, $blockfiletitle, $admin;
if (eregi("block-Modules.php", $PHP_SELF)) {
Header("Location: ../index.php");
die();
}
$blockfiletitle=_TITLECONTENT;
//-------------MODIFY HERE TO CUSTOMIZE THE MENU------>
$mouseOver = "#cacaca"; /* Sets mouseover color */
$mouseOut = ""; /* Sets mouseout color - leave blank for background*/
$image1 = "images/menu/rarrow.gif"; /* image path relative to public root*/
$image2 = "images/menu/barrow.gif"; /* image path relative to public root*/
$image3 = "images/menu/oarrow.gif"; /* image path relative to public root*/
$viewSearch = "0"; /* "0" = no search -- "1" = yes search */
$dropDown = "0"; /* "0" = dropdown style -- "1" = block style */
$row2show = "5"; /* "NUMBER YOU SELECT (default is 5)" = numbers of rows visible when block style */
define ("mSECTION1","General"); /* title Menu Section 1 */
define ("mSECTION2","Community"); /* title Menu Section 2 */
define ("mSECTION3","Stuff"); /* title Menu Section 3 */
//--------END-----------END----------END------------>
this is block_menugerman.php which displays content links ... at www.balonarstvo.com on the left side up ...
thanx
Hi Gregy :)
Eigentlich sollte es funktionieren, es stimmt so....
Was mich irritiert, ist der Dateiname der Language-Datei
Zitatund in lang_slovenian.php (es ist im language directory) habe ich
Die müsste
lang-slovenian.php heissen, wird wirklich die richtige Sprachdatei eingebunden?
Hallo Andi
.. nur ein type fehler hier in forum ... in my direcotry es ist lang-slovenian.php ...
aber ich habe eine andere idee ... Wer ist online hat ein directory in language directory ... die andere welche funkcionieren nicht haben keine directory in language directory ...
for example:
language/maaXoN/maaxon-german.php
das funkcioniert am homepage wann ich klick ma deutsche sprache ...
ich hoffe du verstehst was ich wollte zu sagen .. um schreiben :)
danke
Komisch, habe gerade mal die Variable bei mir in den Block reingeschrieben, funktioniert einwandfrei....
Es muss irgendwas mit der language Datei falsch sein. Das brauch keine eigene für den Block sein. Es genügt, wenn es in der globalen steht (/language/lang-slovenian.php)
Schreibe doch mal folgendes in den Block, an welcher Stelle ist egal.
$blockfiletitle = _COMMENTS;
_COMMENTS ist bereits in der globalen Language drin.
superrrr .. es hat funkcioniert, aber pass auf ... was war los?
ich habe in language-slovene.php dass insert
/****************************************************
/* Block Names
/****************************************************
define("_TITLESURVEY","Anketa");
define("_TITLEWHO","Kdo Je Prisoten");
define("_TITLELANGUAGES","Jeziki");
define("_TITLECALENDAR","Festivali");
define("_TITLEGALERIJA","Nekaj Iz Galerije Slik");
define("_TITLEREVIEWS","Vaša Doživetja");
define("_TITLEFAQ","Pogosta Vprašanja");
define("_TITLELINKSNEW","Nov V Imeniku");
define("_TITLEPARTNER","Partnerji");
define("_TITLEOLDART","Stari Članki");
und hat nicht funkcioniert .. dann habe ich mit deine vorschlag probiert .. hat geklappt .. dann hab ich ale _TITLE... defines raus aus dem "Block Names folder" gegeben .. und insert es in normal .. wo andere sind z.b.
define("_READS","prebrano");
define("_GOBACK","[ <a href=\"javascript:history.go(-1)\">Pojdite nazaj</a> ]");
define("_COMMENTS","komentarjev");
define("_TITLECONTENT","Vsebina");
define("_PASTARTICLES","Prejšnji članki");
hier .. jetzt funckioniert alles :)
danke noch einmal .. ich hoffe daß diese problem (solved) hilft auch andere.
Andi ... numero uno :)
Hi Gregy
prima dass es funktioniert :) :)
Was anderes:
Hast Du die language-files des VKP komplett in slovenisch übersetzt?
Wenn ja, würdest Du sie uns eventuell zur Verfügung stellen?
Hallo Andi!
Ja ich hab uberstezt die module die ich brauchen .. admin language ist gar nicht ubersetzt .. aber ich kann daß machen ... ein bischen zeit und ich mache daß .. daß soll mein teil in diese ganze projekt sein :))