Author Topic: Small question  (Read 5850 times)

0 Members and 1 Guest are viewing this topic.

Offline Shabu

  • Newbie
  • *
  • Posts: 13
  • Marks and Marker
    • View Profile
    • Marks and Marker
Small question
« on: August 13, 2007, 06:00:34 PM »
Hi,
Working on a templates, I need few info  :oops:

What is the tag to detect main site URL? Like {template_url} to detect template path.

And is there any way to include .html file in any file?

Like what we do in Smarty: {include file="file.tpl"}

Any help would be appreciated :)

Thanks
Shabu Anower

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Small question
« Reply #1 on: August 13, 2007, 08:32:36 PM »
Quote
What is the tag to detect main site URL? Like {template_url} to detect template path.

This is right. ;)

Quote
And is there any way to include .html file in any file?

In target PHP file: $site_template->parse_template("html_file"); (no .html at end).
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Shabu

  • Newbie
  • *
  • Posts: 13
  • Marks and Marker
    • View Profile
    • Marks and Marker
Re: Small question
« Reply #2 on: August 14, 2007, 03:28:42 PM »
Quote
This is right. ;)

Does not mean anything! I want to know what is the TAG to detect main site URL!

Quote
In target PHP file: $site_template->parse_template("html_file"); (no .html at end).

I am not interested to edit Core files, so there is no way to include HTML files without editing PHP files?

manurom

  • Guest
Re: Small question
« Reply #3 on: August 14, 2007, 03:47:34 PM »
Hello;
don't know what is exactly the purpose, maybe you should explain a little more what you are planning to get.

But if you do not want to edit core files, use javascript and iframe in your template HTML files.
Display URL:
Code: [Select]
<script>
document.write('<center>'+window.location+'</center>')
</script>

Insert HTML file:
Code: [Select]
<iframe src="http://path_to_your_HTML_file" width="xx" height="xx" scrolling="no" frameborder="0" name="xxxxx" align="center"></iframe>
Don't know if it helps... without editing Core files.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Small question
« Reply #4 on: August 14, 2007, 03:49:33 PM »
@manurom:

No. 4images use PHP_CODE in define. PHP code add in HTML.

@Shabu:

For script_url, is: {self} or {self_full}. For add HTML file, replace 0 - > 1 in includes/constants.php file for PHP_CODE. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?