The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php code to output contents of a template
I have a template with just text that I want to output to a specific hook location.
What php code would I use to do this? I tried this but not sure if eval is the right thing to use here. PHP Code:
As you can see, I'm a noob without a clue. lol Thanks in advance for any help! For reference, here is the complete plugin I am trying to edit...it is part of the garage mod that outputs a link to the vehicle in the postbit. I tried to put the text in the template that was created by the plugin but then it prints the "Link title" text above each vehicle if a user has more than one vehicle in the postbit. PHP Code:
|
#2
|
||||
|
||||
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
You didn't mark this as vB3, so I didn't really know.
Also, this forum is generally for requesting someone to write an actual modification, not for help with the code. Help with coding is usually in the programming discussions, or if a general question about the code, then the general discussions forum for the version you are working on. |
#5
|
|||
|
|||
Oops sorry about that. Please move to appropriate forum. I was afraid I was posting in the wrong forum but wasn't completely sure. Thank you.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|