![]() |
How to let Javascript popup HTML pages read $lng.lbl_xxx?
I'd like to ask how one is able to change the languages in any extra html pages we did, that opens on a new screen with javascript. We've created a few HTML info pages in English, but I'd like to replace all the text with $lng lables for the future alterations.
Would be great to be able to include {$ImagesDir} paths to the pure HTML popup pages as well! Thanks in advance everyone. |
Yes this can be done.
The basic process is as follows: - the pop up should be a php file with an added variable that dictates what to display - the php file will call smarty and other includes as per home.php - the php file assign a template to display. See help.php for an example - create a main template (the one referred to above) that includes other templates for the content. (help/index.tpl for an example) - other templates hold the lanaguage placeholders. (see help/about.tpl) |
Thanks Funkydunk!
Very precise and exactly what I was looking for! You're a saint. |
Hi,
I'm trying to do the same. I have want the send to friend section open in a popup. So I made a php file - send_to_friend_window.php and have the following in that: Code:
require "./auth.php"; when the popup opens it briefly displays a message about redirection, then loads the page: error_message.php?access_denied any guidance on what I'm doing wrong would be most appreciated :) |
All times are GMT -8. The time now is 10:12 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.