Subject Information

Category Name XenForo 1.x Development Tutorials\/Tools
TOPIC TITLE Global Template Variable
Thread starter AnimeHaxor
Start date
Replies
Views
First message reaction score
LAST MESSAGE BY Jessicagroub

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Moderator
Registered
Joined
Nov 22, 2015
Messages
6,350
Reaction score
42,328
Points
113
Website
www.nullscripts.net
Site Script
XenForo
AnimeHaxor submitted a new resource:

Global Template Variable - How to create variables that can be accessed in all templates

This is a simple example about how to create variables that can be accessed in all templates.

This code uses "template_create" listener.
On this code, 2 variables are created, which are "$is_handsome", and "$is_fat".
Both variables are set directly within
Code:
/library/Semprot/GlobalTemplateVariable/Listener.php
PHP:
<?php
class Semprot_GlobalTemplateVariable_Listener
{
    public static function template_create(&$templateName, array &$params...

Read more about this resource...
 

Jessicagroub

Registered
Banned User
Joined
Aug 13, 2021
Messages
5
Reaction score
1
Points
3
Age
38
Location
Colombia
Site Script
Other
Hello everybody! Forgive me my english please. Can you tell me how can I quickly contact with forum administration?