Author Topic: Registrating variables for welcome box  (Read 4083 times)

0 Members and 1 Guest are viewing this topic.

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Registrating variables for welcome box
« on: November 28, 2005, 10:16:40 PM »
Hi @ all,

I duplicated the box with the categories in home .html.
After that i put this code at the end of the main.php file in all of my languages.
Code: [Select]
//-----------------------------------------------------
//--- Welcome box -------------------------------------
//-----------------------------------------------------
$lang['lang_welcome'] = "Welcome";
$lang['welcome'] = "Welcome Text";

Then i also inserted the {welcome} and {lang_welcome} to the new table in the home .html.

Now my question:
What else do i have to insert in which file :?:
Index.php or page_header.php :?:

Please gimme short advice. Thanks

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Registrating variables for welcome box
« Reply #1 on: November 28, 2005, 10:59:00 PM »
ok folks,

i solved it on my own.
i inserted following code to my page_header.php
Code: [Select]
//----- Welcome Box -----Anfang------------
$site_template->register_vars(array("lang_welcome" => $lang['lang_welcome']));
$site_template->register_vars(array("welcome" => $lang['welcome']));
//----- Welcome Box -----Ende--------------

But I have still one question:
How could i make it the same looking like the categories table on my home.html (please have a look)=>borders?
And could i also use BB-Code?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Registrating variables for welcome box
« Reply #2 on: November 29, 2005, 12:24:01 AM »
mmm....I belive the borders is something you'll need to do in the templates not in .php code...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Registrating variables for welcome box
« Reply #3 on: November 29, 2005, 12:32:26 AM »
Yes, you are right of course, I think.
I tried different solutions. I tried differnet existing CSS classes and html code but i did not get the same configuration like the box of the categories.
hmm  :roll: