The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#8
|
|||
|
|||
![]()
There can be an easier of doing this. How can I search for a substring inside the $user['location'] string?
--------------- Added [DATE]1398625222[/DATE] at [TIME]1398625222[/TIME] --------------- Finally got it working! Replaced the following code in onlineuser_details template: Code:
{vb:set userAction, {vb:raw user.wol.action}} {vb:rawphrase {vb:raw userAction}, {vb:raw user.wol.params}} <vb:if condition="isset($user['location'])"> <div title="{vb:raw user.location}" class="wol-location h-right vb-icon vb-icon-question-blue"></div> </vb:if> Code:
{vb:set test, {vb:php substr, {vb:raw user.location}, 7, 15}} {vb:set userAction, {vb:raw user.wol.action}} <vb:if condition="$test != 'private-forums/'"> {vb:rawphrase {vb:raw userAction}, {vb:raw user.wol.params}} <vb:if condition="isset($user['location'])"> <div title="{vb:raw user.location}" class="wol-location h-right vb-icon vb-icon-question-blue"></div> </vb:if> <vb:else /> Viewing Private Forum </vb:if> |
Благодарность от: | ||
Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|