![]() |
register a variable through a hook
hey,
im trying to do a realy simple thing - i just want to register a boolean variable that will be avaible in the "search_threadbit" template . so ive added the following code with the location of "search_results_thread_process" hook : PHP Code:
Quote:
any suggestions? I`M Sorry, this thread should have been under *vB4 Programming Discussions * please move the thread to this forum . |
If I'm understanding what you want, then something like this should work:
PHP Code:
|
now i dont get an error though this if :
<vb:if condition="$diffPrev['bool']=true"> 555 </vb:if> always gives true (even if in the last URL didnt have "pitronot" in it) and this : {vb:raw $diffPrev.bool} gives nothing . btw, why do i need to preRegister the variable if its a hook ? * ofcourse im writing this codes in the search_threadbit template * |
Quote:
Quote:
Quote:
|
Quote:
thanks, working ! your help is appreciated . |
All times are GMT. The time now is 07:35 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:
|