The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Where does vbulletin process the <phrase> tags from templates
I am looking for the php file / function where vbulletin processes the phrase tags and converts them into arguments. I need to find this for a mod I am attempting to make. I am a new programmer learning as I go, so if I am way off let me know.
|
#2
|
||||
|
||||
What is it you are trying to do? If you are a new programmer, it may be that we can suggest something rather than trying to find that code. (I don't think I've ever seen anybody ask about finding that code, and trying to search for it is difficult in all those pages because the term 'phrase' is used so much.)
|
#3
|
|||
|
|||
If you mean that you need to add some phrases then it's done through the database, you don't need to modify any code, just add them through the ACP or put them in your product xml. If you mean something else, then like Lynne said, describe what you want to do a bit better as there might be an easier, existing way to do it.
|
#4
|
||||
|
||||
"<phrase>" is just a wrapper for construct_phrase(), which is a wrapper for sprintf().
|
#5
|
|||
|
|||
Quote:
No I am not trying to just add a phrase. I am working on a cms system similar to vbadvance. The reason I need to find this particular function is because I need to reference it from my own code, my template system works differently from vbulletin however still needs to be able to read vb templates. |
#6
|
|||
|
|||
<a href="http://members.vbulletin.com/api/vBulletin/_includes---adminfunctions_template.php.html" target="_blank">includes/adminfunctions_template.php</a>
compile_template() & parse_phrase_tag() will be the ones of importance. You may want to checkout the other stuff there too, though. |
#7
|
|||
|
|||
I <3 you. I overlooked the fact that it was being processed before being placed into the database . I wasn't even looking in those admin files.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|