How to reuse ACP Variables in Templates?


Well-known member
I want to setup my adsystem in ACP like

Rectangle html code: ..................... ($var1)
Superbanner html code: ............... ($var2)

Now how could I use these code in my templates in the most elegant way? Is there something like {raw:acp $var1} ?

Chris D

XenForo developer
Staff member
You might need to start again on this one...

What is $var1 and where is it set? How is it set? What does it contain?
Is it in an option? What do you mean by "ACP variable"? Style property?

What templates? Public templates?


Well-known member
Yes, I want to set an acp option in admin.php?options

(___ means the admin can enter one text string here)


The templates would be public templates, as my advertisements would be displayed to the public.

Is there an option to display acp variables within templates? It would be most elegant.


Well-known member
Thank you so much. Unbelievable, I thought there should not be a way to directly display the variable value within templates. I am so happy you helped me here. Thanks!