![]() |
template string replacement not working
For some reason I can't seem to get this string replacement to work, and I thing it has something to do with the $session part of the string
This doesn't work: Code:
$vbulletin->templatecache['threadbit'] = str_replace('showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]','SOME REPLACMENT URL',$vbulletin->templatecache['threadbit']); Code:
$vbulletin->templatecache['threadbit'] = str_replace('showthread.php?','SOME REPLACMENT URL',$vbulletin->templatecache['threadbit']); Code:
$vbulletin->templatecache['threadbit'] = str_replace('t=$thread[threadid]$thread[highlight]','SOME REPLACMENT URL',$vbulletin->templatecache['threadbit']); Thanks |
<a href="https://vborg.vbsupport.ru/showthread.php?t=151332" target="_blank">[How-To] Plugins for Template Edits (Adv. Version)</a>
|
That was a great article. I don't know how I missed it when searching.
Everything I needed to solve the problem was right there. Thanks |
All times are GMT. The time now is 12:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|