PDA

View Full Version : Create a variable to let a personalized template show


jolinary
02-15-2011, 02:26 PM
Hello,

How to do to call a personalized template with a variable in another template? it is necessary to create units but I know not how to do, I must do to post on the forumhome 4 personalized templates.

Thank you.

Lynne
02-15-2011, 03:33 PM
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide (https://vborg.vbsupport.ru/showthread.php?t=228078)

jolinary
02-15-2011, 06:01 PM
Thank you for the link, but I do not know of the the whole php, you could help me if you have the time?

My template this said person "soft" and with a variable {vb:raw soft} I would want that the template appears, how did unit configure? Thank you.

Lynne
02-15-2011, 07:14 PM
You need to (pre)register the variable for use in the template or you can't use it. I really can't get more specific than that with the information posted. You need to read that article and try to understand. Or look at the vbulletin code that renders templates and see how the variables are registered and how the template is rendered.