The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
OK, create a new plugin using hook location search_results_postbit and this code:
PHP Code:
then edit template search_results_postbit and add something like this (the red part was added: Code:
<vb:if condition="$post['postuserid']"> author <a href="{vb:link member, {vb:raw post}, null, 'userid', 'username'}">{vb:raw post.postusername}</a><br/> <vb:else /> {vb:rawphrase by_x_guest, {vb:raw post.postusername}} </vb:if> <vb:if condition="$post['userid']"> {vb:rawphrase by_x, {vb:link member, {vb:raw post}, null, 'userid', 'username'}, {vb:raw post.username}} <vb:else /> {vb:rawphrase by_x_guest, {vb:raw post.username}} </vb:if> Also if you want you could create phrases and use them like the "by" section does. Edit: oh, I just re-read your first post. I probably should just have told you that you want to look at packages/vbforum/search/result/post.php and let you handle the rest. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|