The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Well that's a little more difficult i'm thinking about this code
Code:
$forum['title'] = str_replace('"', "'", $forum['title']); *replace the " with the ' --------------- Added [DATE]1324406159[/DATE] at [TIME]1324406159[/TIME] --------------- Ok this is driving me insane o.o! I can't put a ' in a string!! Is vbulletin?! Why this code doesn't work? ![]() Code:
$find = '<h2 class="forumtitle"><a href="\' . vB_Template_Runtime::linkBuild("forum", $forum) . \'">\' . $forum[\'title\'] . \'</a></h2>'; $replace = ' \' '; $vbulletin->templatecache['forumhome_forumbit_level2_post'] = str_replace($find, $replace, $vbulletin->templatecache['forumhome_forumbit_level2_post']); --------------- Added [DATE]1324418531[/DATE] at [TIME]1324418531[/TIME] --------------- Ok i'm thinking that this template doesn't accepts apostrophe i tried this code and it works Code:
$find = 'test'; $replace = <<<DH DH; $vbulletin->templatecache['forumhome_forumbit_level2_post'] = str_replace($find, $replace, $vbulletin->templatecache['forumhome_forumbit_level2_post']); Code:
$find = 'test'; $replace = <<<DH ' DH; $vbulletin->templatecache['forumhome_forumbit_level2_post'] = str_replace($find, $replace, $vbulletin->templatecache['forumhome_forumbit_level2_post']); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|