The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to work with string functions with templates
I want to work with string functions to extract information from a template. For example, I want to have an area from USERCP_SHELL template included in FORUMHOM template and try to do that:
Code:
$seachstring_start = '<!-- usercp nav -->'; $searchstring_end = '<!-- / usercp nav -->'; $position_start = strpos('fetch_template('USERCP')', $searchstring_start); $position_end = strpos('fetch_template('USERCP')', $searchstring_end); $vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar'.substr(fetch_template('USERCP'), $position_start, $position_end),$vbulletin->templatecache['FORUMHOME']); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|