Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 09-21-2010, 02:49 PM
GE-Tom GE-Tom is offline
 
Join Date: Sep 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default add a new videosource for the forum

Hi all,

i try to find help with a i think small problem. i try to add a new videosource to vB 4 Forum.

i know that i must change the videosource from the template "bbcode_video"

(youtube part of the template)

Code:
<vb:elseif condition="$provider == 'youtube'" />
<object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}">
    <param name="movie" value="http://www.youtube.com/v/{vb:raw code}" />
    <param name="wmode" value="transparent" />
    <!--[if IE 6]>
    <embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}" />
    <![endif]--></object>
more importantly i must change the file bbcode_video_vbulletin.xml

(youtube part of the file)

Code:
    <provider tagoption="youtube">
        <title>YouTube</title>
        <url>http://www.youtube.com</url>
        <regex_url><![CDATA[http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)]]></regex_url>
        <regex_scrape></regex_scrape>
        <embed><![CDATA[<object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}">
    <param name="movie" value="http://www.youtube.com/v/{vb:raw code}" />
    <param name="wmode" value="transparent" />
    <!--[if IE 6]>
    <embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}" />
    <![endif]--></object>]]></embed>
    </provider>
but how i can add videos from the source www.gametrailers.com. The share HTML Code from this side is

Code:
<div style="width: 480px;">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">

<param name="allowScriptAccess" value="sameDomain" />

<param name="allowFullScreen" value="true" />

<param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=704827"/>

<param name="quality" value="high" />

<embed src="http://www.gametrailers.com/remote_wrap.php?mid=704827" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed>

</object>

<div style="font-size: 10px; font-family: Verdana; text-align: center; width: 480px; padding-top: 2px; padding-bottom: 2px; background-color: black; height: 32px;">

<div><a style="color:#FFFFFF;" href="http://www.gametrailers.com" title="GameTrailers.com">Video Games</a> | <a style="color:#FFFFFF;" href="/game//" title="The Science of Games">The Science of Games</a> | <a style="color:#FFFFFF;" href="" title="The Science of The Force HD">The Science of The Force HD</a></div>

<div style="padding-top: 3px;"><a style="color:#FFFFFF;" href="http://xbox360.gametrailers.com/" title="XBox 360">XBox 360</a> | <a style="color:#FFFFFF;" href="http://ps3.gametrailers.com/" title="PS3">Playstation 3</a> | <a style="color:#FFFFFF;" href="http://wii.gametrailers.com/" title="Wii">Nintendo Wii</a></div>

</div>

</div>
i hope you can help me. its important for my projekt. plz help. thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03710 seconds
  • Memory Usage 2,163KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete