Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2010, 10:15 PM
NathanLedet NathanLedet is offline
 
Join Date: Nov 2005
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default compile_template

I'm working on updating a plugin that was made for 3.5.x - 3.8.x

Throughout the plugin, I see code that searches for a string and adds a string to it (in order to avoid template edits)

But I'm confused what exactly the compile_template() function does. Any documentation on that? does it even work in vb 4?

PHP Code:
$find_string = compile_template('some html code here');
$add_string = compile_template('some more html code here');

$vbulletin->templatecache['SHOWTHREAD'] = str_replace($find_string, $find_string . $add_string, $vbulletin->templatecache['SHOWTHREAD']); 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:31 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.