The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
I wanted to accomplish this thing Code:
<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject"> <h2>Video: <span itemprop="name">Title</span></h2> <meta itemprop="duration" content="T1M33S" /> <meta itemprop="thumbnailUrl" content="thumbnail.jpg" /> <meta itemprop="contentURL" content="http://www.example.com/video123.flv" /> <meta itemprop="embedURL" content="http://www.example.com/videoplayer.swf?video=123" /> <meta itemprop="uploadDate" content="2011-07-05T08:00:00+08:00" /> <meta itemprop="expires" content="2012-01-30T19:00:00+08:00" /> <object ...> <param ...> <embed type="application/x-shockwave-flash" ...> </object> <span itemprop="description">Video description</span> </div> and if you help me out achieving this thing it can help the community very much and i will surely share the code with the community, so their video content get indexed just like youtube, dailymotion. thumbnail shows alongside the search results so forum owners can get more traffic from their video content |
#12
|
|||
|
|||
OK, you could try this: use a plugin on hook bbcode_create to replace the video handling function that's in $this->tag_list with your own function. Then have your function check for the provider option of "dailymotion", and do your special handing (return whatever html you want), and if it's not "dailymotion", call the existing function (or copy the code from the existing function). Or I suppose in your case you could just register your extra information to the bbcode_video template as you are doing in your plugin, then call the existing code.
See includes/class_bbcode.php, function vB_BbcodeParser() and function handle_bbcode_video(). I believe vB_BbcodeParser() is the constructor for a base class, so you may want to check the actual class before replacing the video handling function, so that the classes in class_bbcode_alt.php will still work as the default (for instance, when a text-only version is being rendered). |
#13
|
|||
|
|||
You could also look at my "Private Message Quote Formatting" mod (the bbcode_create plugin code) for an example. In that case I was doing it only for private messages, so of course you wouldn't want the check for 'private', but otherwise it's basically what I tried to describe in the post above.
|
#14
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=264896 |
#15
|
|||
|
|||
Quote:
|
#16
|
|||
|
|||
Quote:
Anyway, glad you solved it. |
#17
|
|||
|
|||
Quote:
I will share the code once i got expected results in Google search |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|