Page 1 of 1

I need help with this code....

Posted: Fri Oct 04, 2002 9:13 am
by Ernesto
Hi,

This is my first time on this forum and my first time experiencing with PHP.

I have a forum http://www.biz-card.net/forums/portal.php and I had set up Englis and Spanish Languages for it.

What I am trying to achieve is on the news area, to make that depending the language coosed by the user, to post the news on their language.

I have tried many things, well it is my first time editing a PHP code.... the thing is that I have made it react a little I selects one language but then it doesn't recignize at the time I make another language selection.

Here is the code of what I have worked so far....

//////////////////////// INSTALLATION /////////////////////////////
if($member[langfile] == "$English") {
$news_fid = "12";
}

if($member[langfile] == "$Espanol") {
$news_fid = "11";
} // The forum id you want to drag news from. This forum must have HTML Enabled in it!
$news_list_this_many = "5"; // Number of threads to list
$date_format = "D, F jS, Y - h:i a"; // The format of your date (see php.net)
$smdir = "images/smilies/"; // Your smilie directory (with trailing slash)
$navigation = "Portal"; // What you want this to say in the navigation bar
$dgif = "info.gif"; // The default smilie if one isn't present in the post this one will be used
///////////////////// END OF INSTALLATION /////////////////////////

Originally the news line was like this.

$news_fid = "11"; // The forum id you want to drag news from. This forum must have HTML Enabled in it!

I will appreciate any help :)

Greetings,

Ernesto