Author Topic: how to make file.html to {file}  (Read 5626 times)

0 Members and 1 Guest are viewing this topic.

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
how to make file.html to {file}
« on: July 24, 2009, 08:07:38 PM »
Hey all,
I have a question, how can i make "file.html" to code like this: {file}

Thanks.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: how to make file.html to {file}
« Reply #1 on: July 24, 2009, 10:28:46 PM »
... with all your informations ...  :wink:

in functions.php ... or ... xx.php ...

Code: [Select]
$file = "file.html";
$site_template->register_vars("file", $file);

and now you can use in your template xx.html ...

Code: [Select]
{file}
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: how to make file.html to {file}
« Reply #2 on: July 24, 2009, 11:03:45 PM »
in functions its not working, what it is xx.php?

thanks.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: how to make file.html to {file}
« Reply #3 on: July 25, 2009, 12:25:50 AM »
... on the right place ... it works ... ;)
... xx is "details" or "categories" or s.o. ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: how to make file.html to {file}
« Reply #4 on: July 25, 2009, 12:47:04 PM »
Sorry for all these questions, but where is the "right place"? i dont know where and i got error when i put the code in bad places.

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
Re: how to make file.html to {file}
« Reply #5 on: July 25, 2009, 05:59:27 PM »
Let's start over.
Please explain with more details what exactly are you trying to do.
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 Marcovich

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • High Definition Wallpapers
Re: how to make file.html to {file}
« Reply #6 on: July 25, 2009, 07:43:11 PM »
OK :)
Let assume i have page in template thats called : Bannerbar.html, like header.html or footer.html, i would like to call it {Bannerbar}
When i'll put this code : {bannerbar} it will put the code from Bannerbar.html

As the system do with {header} and {footer} tags.

Thanks!