Author Topic: How to add a new, custom template page  (Read 247349 times)

0 Members and 1 Guest are viewing this topic.

Offline killerwhale65

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How to add a new, custom template page
« Reply #30 on: March 09, 2006, 06:48:05 PM »
hi,

what if i whish to integrate a php file instead of a html? How can i do that?

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
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 Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: How to add a new, custom template page
« Reply #32 on: April 06, 2006, 08:35:31 PM »
Quote
you must not include the extension of the template, only the name:
http://www.braziltonewoods.com/4images/index.php?template=howto
http://www.braziltonewoods.com/4images/index.php?template=links
(see, no .html attached to it)

That solved my problem as well!
Would it be possible to put a summary of the correct instructions in the first post? Luckily it's only  a 2 page thread but still ...  I don't need it anymore now but I am sure many others would appreciate it.


Offline koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: How to add a new, custom template page
« Reply #33 on: May 06, 2006, 05:03:54 AM »
Kann man die über ?template=... Pages aus einem anderen Ordner includen? Ich möchte aus dem Hauptverzeichnis zum Beispiel eine Kategorie-Liste includen:

domain.com/index.php --> includet:
domain.com/4images/index.php?template=categorylist

Muss ich dann CHDIR oder etwas in der Art machen beim includen oder geht das auf die Weise nicht?

Danke für die Hilfe, Konradin

----

Can they include a page that is processed by ?template=... from another folder? I want to include for example a categorylist from the root folder:

domain.com/index.php --> includes
domain.com/4images/index.php?template=categorylist

Do I have to use CHDIR or something like this for the include code or doesn't it work in this way?

Thx for helping, Bye Konradin

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 add a new, custom template page
« Reply #34 on: May 06, 2006, 05:31:05 PM »
For security reason such include is not possible.
Yet, you might want to try create a normal categorylist.html template with this code inside:
Code: [Select]
<?php
include("path/to/your/real/categorylist.html");
?>

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 koikonut

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.konradin.net
Re: How to add a new, custom template page
« Reply #35 on: May 06, 2006, 05:59:07 PM »
I don't understand.  :?

So, how can I include 4images-Information from another page?

The categorylist that you have mentioned ist static, isn't it?

Thx for helping, bye Konradin

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: How to add a new, custom template page
« Reply #36 on: July 19, 2007, 04:26:02 AM »
If i am using SEO Friendly URL by editing .httaccess then will this adrese work ?
http://www.mydomain.com/4images/index.php?template=howto

Offline Elfinee

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How to add a new, custom template page
« Reply #37 on: August 10, 2012, 04:02:15 PM »
Hi,

ich habe mir diesen Thread http://www.4homepages.de/forum/index.php?topic=4996.0 durchgelesen und noch Fragen dazu. Leider kann ich in dem Thread nicht antworten.

Ich bin mir da noch etwas unsicher. Also soll ich beispielsweise die error.html kopieren und in einem Editor einfügen?
Diese dann umbenennen in Beipsielweise faq?

Dieses lang_error und error_msg soll ich ja löschen. Nur diese Worte oder irgendwie ganze Abschnitte?
Und wo trage ich da meinen eigenen Text ein?

Hab das irgendwie nicht so ganz verstanden und bevor ich da irgendwie Bockmist baue, frag ich lieber mal nach :-)

Offline Saschilys

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Re: How to add a new, custom template page
« Reply #38 on: August 10, 2012, 04:16:24 PM »
Jep, die error.html in faq.html umbenennen.

Um was neues zu schreiben, wie schon angedeutet die beiden Atribute löschen.
Am besten nimmst du dir ein WYSIWYG-Editor. Dann siehst du auch gleich, was du löschst und wie es am Ende aussieht.