Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

[resources.invisionpower.com - pliki] Developer Articles > Debugging skin templates


Rekomendowane odpowiedzi

  • Manager

The IP.Board 3.0 template engine is very powerful, especially with it's new template plugin system, and complex templates with lots of logic can be created rather easily. Most developers work with IPB with developer mode enabled, which means you use the simple syntax to create templates in the master_skin directory (the same syntax used in the ACP). Sometimes, however, you may have trouble determining what the final resulting PHP code IPB will generate will be once IPB has parsed the if/else/foreach tags, the php tags, and the template plugins on the skin template you are working on.

There is a simple way you can see this while developing. You must have IN_DEV (developer mode) enabled and be working on the master_skin templates to use this. Simply add the following line of code inside any template in any skin file that is being loaded on the page to see an output of the skin file itself.

{{{SHOWME}}}

You will get an output of the skin file after parsing and replacements have been completed, allowing you to verify that the resulting PHP code is what you expect. Wyświetl pełny artykuł

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.