4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: bibabobu on November 28, 2005, 10:16:40 PM

Title: Registrating variables for welcome box
Post by: bibabobu 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
Title: Re: Registrating variables for welcome box
Post by: bibabobu 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?
Title: Re: Registrating variables for welcome box
Post by: V@no 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...
Title: Re: Registrating variables for welcome box
Post by: bibabobu 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: