The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
||||
|
||||
![]()
It does return a number, but for some reason it still not working, the option exist. I do toggle it one to the other, but it always shows postcard.
I Tried Code:
($vbulletin->options['drc_embed_vine_smpl'] === 1 ? "simple" : "postcard") Code:
($vbulletin->options['drc_embed_vine_smpl'] == 1 ? "simple" : "postcard") Code:
<hookname>postbit_display_complete</hookname> <phpcode><![CDATA[ $drc_embed_vine = '<iframe src="https://vine.co/v/$2/embed/'.($vbulletin->options['drc_embed_vine_smpl'] == 1 ? "simple" : "postcard").'" width="480" height="480" frameborder="0"></iframe>'; $this->post['message'] = preg_replace('~(<a href="https?://vine.co)/v/(.*)" target="_blank">(https?://vine.co)/v/(.*)<\/a>~', $drc_embed_vine, $this->post['message']); ]]></phpcode> Code:
<setting varname="drc_embed_vine_smpl" displayorder="1"> <datatype>boolean</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|