Author Topic: main.php question  (Read 6341 times)

0 Members and 1 Guest are viewing this topic.

Offline lakeside

  • Full Member
  • ***
  • Posts: 123
    • View Profile
main.php question
« on: April 24, 2003, 05:40:30 PM »
I see in the /lang/english/ directory there is a main.php file that contains some of the language used.

Im stumped by why it wont let me add anymore.

For example there is:
$lang['register'] = "Registration";

Directly under that I added:
$lang['reregister'] = "Signup";

Now in the category.html template I put in
{lang_reregister} but nothing shows up for it.

Whats the trick here, please keep in mind this is all new to me and Im trying to find my way around.

Thanks,

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
main.php question
« Reply #1 on: April 24, 2003, 05:56:14 PM »
that's not that easy ;)
u have to register {...} tags in the .php files.
for example, look in almost any "main" .php files in root dir for "msg" =>
that creates {msg} tag
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 Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: main.php question
« Reply #2 on: August 16, 2005, 11:40:57 AM »
Right this is my problem!

Sorry, but in which PHP-File I have to register these tags?

e.g. I want to show {lang_new_stats} on the index of my page, so I must edit the index.php?

for example

  "msg" => $msg,
  "clickstream" => $clickstream
  "lang_new_stats" => $lang['new_stats']

is that okay?

I hoped it was easier than that way, but it doesnŽt seem so...  :?

Project offline

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: main.php question
« Reply #3 on: August 16, 2005, 02:57:49 PM »
yes, it almost would work ;)
just remmember, only last item in the array should not have comma, the rest of the items MUST have comma:
Quote
  "msg" => $msg,
  "clickstream" => $clickstream,
  "lang_new_stats" => $lang['new_stats']
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 Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: main.php question
« Reply #4 on: August 16, 2005, 03:11:36 PM »
IŽll try this, perhaps that was cause of my error  :mrgreen:

Project offline