Author Topic: integrating file question  (Read 6099 times)

0 Members and 1 Guest are viewing this topic.

Offline killerwhale65

  • Newbie
  • *
  • Posts: 19
    • View Profile
integrating file question
« on: March 14, 2006, 04:11:52 PM »
hi,

i have successfully integrated a new php file into search_form.html.
Now i want to use {category_dropdown} in this new php file, but it does not show up. What did i do wrong?

thanks!

Offline killerwhale65

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: integrating file question
« Reply #1 on: March 15, 2006, 01:07:11 PM »
anyone please?

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: integrating file question
« Reply #2 on: March 24, 2006, 06:41:37 PM »
i think the problem is, that the {category_dropdown} tag in the new php file in the template,
is not parsed.
what is in the php file, just html?
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

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: integrating file question
« Reply #3 on: March 25, 2006, 12:23:49 AM »
You can not use any of the 4images template tags in included through templates files. But, you can use echo $this->val_cache['tag name'];
i.e.
echo $this->val_cache['category_dropdown'];
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 killerwhale65

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: integrating file question
« Reply #4 on: March 25, 2006, 12:45:02 PM »
wonderfull 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: integrating file question
« Reply #5 on: March 25, 2006, 03:34:41 PM »
hmm...just realised, since v1.7.1 you can use:
echo $category_dropdown;

Every tag become a variable, I think...
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)