Author Topic: Templates and Flash Demos  (Read 9692 times)

0 Members and 1 Guest are viewing this topic.

Offline dezina

  • Newbie
  • *
  • Posts: 40
    • View Profile
    • Dezina Skins, Templates, Themes
Templates and Flash Demos
« on: March 17, 2005, 07:30:49 PM »
Dezina 4 Images Templates including Flash Header Designs plus
Flash Tutorial Demos on how to configure
certain admin aspects of 4 Images Gallery can be found at
http://www.dezina.co.uk/modules.php?name=Downloads&d_op=viewdownload&cid=45

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Templates and Flash Demos
« Reply #1 on: September 22, 2005, 05:42:54 PM »


Dezina Nimbus, how to add language support to the side menu?


I love your template, and have been using it for a very long time, and have modified it, and I don't know if you recall our conversations on the previous lost forum... anyway, here I have another questions.

I know that {*****_language} doesn't work under the dezinanimbus.php file, which is used for the left sub menu underneath user information.
Is there any way to add Language Support to it?

When I add the tag, it just simply displays it, does not parse it.

Anyway?
Than You..

Please Vote for my site: Here

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: Templates and Flash Demos
« Reply #2 on: September 23, 2005, 01:04:16 AM »
you could try use something like:
Code: [Select]
<?=$****_language;?>
(this method would only work with 4images v1.7.1)
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 hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Templates and Flash Demos
« Reply #3 on: September 23, 2005, 05:52:19 AM »
Dear Vano,

thanks for your reply, but actually found another way.
There was dezinanimbus.php, which was just an include on every page as a menu.

What I did was, I changed that content to be an active menu..

Now, since that didn't support language, I moved the whole content into user_loginform and the other one (not logged in)

I went into /lang/eng/main.php and lang/xxxx/main.php and added my own declarations at the bottom of the page right before ?>
such as
Code: [Select]
$lang['Menu_Mp3_Music'] = "Mp3 and Music";
$lang['Menu_Videos'] = "Videos";
$lang['Menu_Programs'] = "Programs";
$lang['Menu_Cool_Links'] = "Cool Links";
$lang['Menu_Link_to_us'] = "Link to us";

so I would use {Menu_Link_to_us} in that menu, and make it actively changing according to language..

however when I use above tag, it returns empty. (I remember seeing this problem on several posts in your LANGUAGE MOD, so say no further, I will check that topic tomorrow morning)

After reading through all those posts, I am sure i will solve it (was there something with global.php) anyway.. after trying if i still cannot solve it, i will post here or there.

 Thanks :)

Please Vote for my site: Here

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Templates and Flash Demos
« Reply #4 on: September 23, 2005, 03:47:35 PM »
Dear Vano,

I check the other topic with language select mod, it wasn't there..

Besides declaring each phrase in main.php, do we have do anything else for them to show up correctly?
I did as above, and they return blank. As if 4images doesn't recognize the tag as , well, a tag.  :(

What's the difference between
Code: [Select]
$lang['logout'] = "Log Out";

and what I added

Code: [Select]
$lang['Menu_Calibrate'] = "Calibrate";

How come {lang_logout} can return Logout (in selected language);
but {lang_Menu_Calibrate} cannot return Calibrate ?

Is it the underscore that's confusing 4images?

-Edit:
No, not the underscore.
I changed it to $lang['calibrate'] = "Calibrate";
and used {lang_calibrate}, still returns blank..  :oops:

-Edit 2:
I guess I must declare them elsewhere as well.. Let me see if it is in global/functions/page_header/ or in any other php...

-Edit 3:
"What's the difference between what I added and what was already there?" as I asked above..
The difference is that they must be declared/defined in page_header.php (in /includes/) first.
Although it is a tidy task, for a limited number of words that you want to display, it works quite well!

Vano, thanks for not replying right away and letting me find it myself (although if you were around you'd probably point me to it anyway)..  :wink:

So that's how it is done.
 :lol:

Please Vote for my site: Here

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: Templates and Flash Demos
« Reply #5 on: September 24, 2005, 12:27:07 AM »
Reading you replys, I'm not quet sure how did u manage to make to work...
Your dezinanimbus.php file is not teplate, therefore it will not be parsed by template engine, but its a .php file and will be executed by PHP on the server.
Because of that, you have an opportunity add your own php code that would display whatever you want in the place the file was included.
But, there is one little problem with variables. Becuase this file will be executed inbetween a function (template engine), none of the "normal" variable from 4images will not be accessible from in that file, unless you add then into global list. For example, if you want to display anything from $lang array, you must do this:
Code: [Select]
<?php
global $lang;
echo 
$lang['Menu_Mp3_Music'];
?>

Hope its little more clear how it works.
I'm looking forward to see what you did to make it to work ;) :)
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 hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Templates and Flash Demos
« Reply #6 on: September 25, 2005, 07:37:38 PM »
Well, I think I already mentioned that I cancelled dezinanimbus.php content and commented them out, leaving only the flash clock that I added and a few lines..

I moved the whole active menu to user_loginform and user_logininfo, therefore making them get parsed/compiled by 4images, while making it look like seperate from the menu. If you can see it is still part of the userlogin box.

Now, the NEXT thing to do is, language specific menu content, what I mean is, if it is ENGLISH, there will be a different menu, and if it is Turkish, there will be a different menu with different links.. Although I would still want to keep the links there, but still being able to do it would be a good option.

I hope it is clear now, and I am pretty sure I mentioned moving them into the login seciton, probably on your other topic.

While I have you, do you plan on any revisions to File List / Files Mod?
Thanks for all your contribution to 4images!

Please Vote for my site: Here