vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages (https://vborg.vbsupport.ru/showthread.php?t=189267)

KAWIE1 11-26-2008 12:52 PM

Thanks for the great mod. Marked as installed.

h2ojunkie 11-26-2008 07:05 PM

Quote:

Originally Posted by Digital Jedi (Post 1673273)
The conflict I was referring to, (if there is a conflict, admitedly, I haven't had a chance to test this yet) would come, not from the video, but from the image embed code. You had asked if we could use this to embed images. The problem I see is people grabbing the image forum code with the [img]https://vborg.vbsupport.ru/[/img] tags and either getting an image with the IMG tags on either side, or no picture at all. Like I said, though, I will have to test this to be sure.

yeah, I assumed you were talking about the IMG embed codes.

The IMG embed code is the same format for just an image alone, as the IMG embed code I pasted above that is part of the video string.

But if the replacement was only looking for a URL= with photobucket and action=view it could replace everything between the opening URL tag and closing URL tag so the IMG embed would be irrelevant and never cause a conflict on an image emb used alone.

URL image tag:

[URL=http://i203.photobucket.com/albums/aa229/h20junkie/Misc/IMG_1927.jpg][img]https://vborg.vbsupport.ru/[/img][/URL]


URL video tag

[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]


As you can see, the action=view is the defining part of the string to separate a IMG from a Video, so there should be no issue with a replacement that looks for that action=view

I wish I was good enough at regex to try and write one myself.

But if I can't do that, I figure the least I can do is T it up for someone that actually can write regex...:P

Digital Jedi 11-27-2008 03:39 AM

Quote:

Originally Posted by h2ojunkie (Post 1673553)
yeah, I assumed you were talking about the IMG embed codes.

The IMG embed code is the same format for just an image alone, as the IMG embed code I pasted above that is part of the video string.

But if the replacement was only looking for a URL= with photobucket and action=view it could replace everything between the opening URL tag and closing URL tag so the IMG embed would be irrelevant and never cause a conflict on an image emb used alone.

URL image tag:

[URL=http://i203.photobucket.com/albums/aa229/h20junkie/Misc/IMG_1927.jpg][IMG]http://i203.photobucket.com/albums/aa229/h20junkie/Misc/th_IMG_1927.jpg[/IMG][/URL]


URL video tag

[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]


As you can see, the action=view is the defining part of the string to separate a IMG from a Video, so there should be no issue with a replacement that looks for that action=view

I wish I was good enough at regex to try and write one myself.

But if I can't do that, I figure the least I can do is T it up for someone that actually can write regex...:P

Hrm, I'm not sure we're on the same page then. See, I have a Photobucket (Videos) definition in my Add-On thread, but videos are converted based on the page URL. Are you suggesting a conversion of the offered image embed codes, or the permalink/page URL?

wAnBoA 11-27-2008 04:43 AM

I was wondering why myspace vid is not working.
And i would like to add livemarco vid as well. How do i add that?

h2ojunkie 11-27-2008 07:04 AM

Quote:

Originally Posted by Digital Jedi (Post 1673776)
Hrm, I'm not sure we're on the same page then. See, I have a Photobucket (Videos) definition in my Add-On thread, but videos are converted based on the page URL. Are you suggesting a conversion of the offered image embed codes, or the permalink/page URL?

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.

MotMann 11-27-2008 11:08 AM

Quote:

Originally Posted by Digital Jedi (Post 1673273)
I was only recently turned me on to this, so it will be part of the next definition update, but you'll have to get that from one of my Add-On threads.

Where i found that?

jerx 11-27-2008 11:26 AM

Quote:

Originally Posted by MotMann (Post 1673952)
Where i found that?

Please read more carefully. He said "next definition update" and "you'll have to". In other words, it has not been released yet!

But I am sure that you will not be able to find it in this thread, but in the other thread. This thread is about the AME mod and the other one has been created by DJ to provide his definitions.

I also like to ask everybody to discuss definitions in the other thread. Such discussion clutter this thread and makes it harder for DJ to keep track of definition problems.

MotMann 11-27-2008 01:21 PM

Quote:

...but you'll have to get that from one of my Add-On threads.
The Update yes.. but i can get that from the Add-On Thread right now. That's i understand :)

And i don't found that one ;)

Breakpoint 11-27-2008 04:46 PM

How easy will it be to upgrade from version 2.0 to 2.5 when it releases?

Do I also have to uninstall the mod when a new version of VB is released, or what will happen to the mod when you upgrade?

Thanks, Im new to VB and would like to add this mod :)

XrayHead 11-27-2008 04:49 PM

This is one sweet hack, thanks "Clicked Installed"

Xray


All times are GMT. The time now is 12:59 AM.

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.01901 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete