View Single Post
  #695  
Old 12-03-2008, 08:46 PM
h2ojunkie h2ojunkie is offline
 
Join Date: Sep 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just moving the post over to the right thread

Quote:
Originally Posted by Digital Jedi View Post
We probably should discuss this in my Add-On thread after this, that's a good point. I forget where I am sometimes.

I understand what you mean now, and I don't think I recall seeing the embed code for thumbnails videos before. Yeah, it's parsing the URL of the video so the HTML for the thumbnails gets shattered. RegEx for BBCode is tricky, but not impossible I don't think. I'd just have to give it a try.




Quote:
Originally Posted by h2ojunkie View Post
Maybe we aren't on the same page as you said.

I'm talking about a conversion specifically for the PB offered IMG Code - Forums & Bulletin Boards for videos.

When I tested the photobucket (videos) definition with:

[url=http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/?action=view&current=100_2877.flv][img]https://vborg.vbsupport.ru/external/2008/12/103.jpg[/img][/url]


Here's the HTML rendered by the Photobucket (Videos) definition:
HTML Code:
<A title="<img src=" 
href="http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/?action=view&amp;current=100_3043.flv" 
alt="" border="0" th_100_3043.jpg? motorcycle%20related%20stuff Whitey818 i237 
albums i73.photobucket.com http:>" target="_blank"&gt;<IMG alt="" 
src="http://i73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/th_100_3043.jpg" 
border=0></A> </TD></TR></THEAD>
<TBODY>
<TR>
<TD class=panelsurround align=middle><EMBED 
src=http://photobucket.com/player.swf?file=http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/100_3043.flv 
width=430 height=389 type=application/x-shockwave-flash 
wmode="transparent"></EMBED>
As you can see, I ended up with a broken layout. The page was rendering the default photobucket image that is shown for videos, followed by the video player rendered by your product.

I was assuming your Photobucket (Videos) definition was written just to do replacements on the url portion only, and wasn't designed to account for the embed code PB provides as shown above. (at least that's what the regex looked like)

I got the idea of adding support for the PB embed code from use of this mod:
https://vborg.vbsupport.ru/showthrea...ht=photobucket

It adds a photobucket image/video search and upload when making posts using:
http://photobucket.com/landing/plugin_wizard.php

And, if you search photobucket using that mod for a video, the only URL photo bucket gives you for the video via the IFRAME used by that mod, is the IMG code I listed above.

Anyway, I personally love that PB image search/upload since it gives an easy way for users to post videos to the site without having to allow users to upload attachments.

I had to shut off your Photobucket (Videos) definition since it broke the page whenever someone would use the PB code provided by the IFRAME uploader.

Hopefully, I'm explaining myself better this time.

Thanks again for a killer product.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01166 seconds
  • Memory Usage 1,789KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete