Author Topic: tag {user_box} does not work in index.php  (Read 24603 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #15 on: March 15, 2005, 02:52:22 PM »
You don't need to edit the index.php to change the template.  Just use a link like this instead:

http://www.example.com/4images/index.php?template=home_index

This lets you dynamically change the template used by index.php without needing to edit any code.

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #16 on: March 15, 2005, 04:23:25 PM »
Yes, I know, but how can I do that for the entry-page?
If you enter www.photofrontal.ch in your address-field of your browser, index.php will be executed.
How can I define, that "index.php?template=home_index" should be executed?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #17 on: March 15, 2005, 04:39:22 PM »
Create a .htaccess file in the root directory (note the leading period in the file name)  Put the following at the top of the file
Code: [Select]
DirectoryIndex index.php?template=home_index

Offline TIMT

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: tag {user_box} does not work in index.php
« Reply #18 on: March 15, 2005, 11:39:44 PM »
Perfect! Thank you Chris.

 :D