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)

Finger78 01-07-2009 01:20 AM

Quote:

Originally Posted by Digital Jedi (Post 1703772)
Show me an example of a link your using and maybe I can trouble shoot for you.

Just a standard youtube link, nothing fancy

here is an example
http://www.youtube.com/watch?v=xp9Gm-aRe5A

Digital Jedi 01-07-2009 01:46 AM

Quote:

Originally Posted by Gladhatter (Post 1703777)
I am sure you are asking me >????

Ok
http://www.wimp.com/farylsmith

I hired the solidsnake for 50 projects so far and he has done them all beyond my wildest imaginings and perfect but says this requies some knowlege of regex and he does not have it all.

Shouldn't be a problem to make a RegEx, but that Javascript might give me some trouble. I'll let you know.


Quote:

Originally Posted by Finger78 (Post 1703782)
Just a standard youtube link, nothing fancy

here is an example
http://www.youtube.com/watch?v=xp9Gm-aRe5A

Hrm, do you still have a thread available where you tried to post this that I can look at?

Gladhatter 01-07-2009 02:04 AM

Quote:

Originally Posted by Digital Jedi (Post 1703795)
Shouldn't be a problem to make a RegEx, but that Javascript might give me some trouble. I'll let you know.



Thank you DJ. The Snake man seems to know JS fine but seems to hate it to the point he nearly refused to work with it.

I appreciate the help on this one.

Solo Drakban 01-07-2009 05:12 AM

I've finally installed this mod and I love it, very nice. I just have one question, is it possible to make the AME content honor the user's image settings? Currently if a user has images off all [img] tags are reverted to URLs but any content embedded by AME remains.

Finger78 01-07-2009 12:52 PM

Quote:

Originally Posted by Digital Jedi
Hrm, do you still have a thread available where you tried to post this that I can look at?

Not sure why, but it seems to work now, I didnt change any settings from last night. My only guess is that it had something to do with the quick reply feature?

Anyway, all seems ok now, thanks again.

Digital Jedi 01-07-2009 03:26 PM

Quote:

Originally Posted by Solo Drakban (Post 1703897)
I've finally installed this mod and I love it, very nice. I just have one question, is it possible to make the AME content honor the user's image settings? Currently if a user has images off all [img] tags are reverted to URLs but any content embedded by AME remains.

Since it doesn't use the IMG tags, it wouldn't be affected by that setting. You could try changing the Replacement HTML for image definitions with BBCode, but I've not tried this and don't know for sure if it would work. I'm thinking it would just post BBCode as text and unparsed. Then there's the fact that this is lighter than BBCode and you'd kind of be regressing.


Quote:

Originally Posted by Finger78 (Post 1704151)
Not sure why, but it seems to work now, I didnt change any settings from last night. My only guess is that it had something to do with the quick reply feature?

Anyway, all seems ok now, thanks again.

Shouldn't have affected the way the link was parsed, but it's possible it had something to do with the cache.

Solo Drakban 01-07-2009 04:43 PM

Quote:

Originally Posted by Digital Jedi (Post 1704274)
Since it doesn't use the IMG tags, it wouldn't be affected by that setting. You could try changing the Replacement HTML for image definitions with BBCode, but I've not tried this and don't know for sure if it would work. I'm thinking it would just post BBCode as text and unparsed. Then there's the fact that this is lighter than BBCode and you'd kind of be regressing.

I realize it doesn't use [img] tags, what I'm saying is that it should still honor that particular setting from the UserCP or add another option to disable the display of AME objects separately. There is no point in disabling images if a giant YouTube or The Onion view preview pane loads up because somebody embedded it. There should be a way for the user to disable the embedded objects just like there is a way for them to disable just able every other media tag in vB. :)

I haven't poked around into the AME system much yet but I assume this would be a simple matter of adding some extra logic into the code hooked into the bbcode parser.

Preech 01-07-2009 05:42 PM

I am ready to update my site to vB 3.7.5. Will this still function once my update is complete.

Digital Jedi 01-07-2009 06:40 PM

Quote:

Originally Posted by Solo Drakban (Post 1704331)
I realize it doesn't use [img] tags, what I'm saying is that it should still honor that particular setting from the UserCP or add another option to disable the display of AME objects separately. There is no point in disabling images if a giant YouTube or The Onion view preview pane loads up because somebody embedded it. There should be a way for the user to disable the embedded objects just like there is a way for them to disable just able every other media tag in vB. :)

I haven't poked around into the AME system much yet but I assume this would be a simple matter of adding some extra logic into the code hooked into the bbcode parser.

Your wanting to block all the embedding based on a users image settings? I thought you were just referring to images. If your using AME 2.5 you can try using the conditionals to achieve that end, since the containers are template based in that version, keeping in mind the limitations of conditionals as laid out in the initial post.


Quote:

Originally Posted by Preech (Post 1704365)
I am ready to update my site to vB 3.7.5. Will this still function once my update is complete.

Should be functional on all version of 3.7.

Solo Drakban 01-08-2009 02:08 AM

Quote:

Originally Posted by Digital Jedi (Post 1704403)
Your wanting to block all the embedding based on a users image settings? I thought you were just referring to images. If your using AME 2.5 you can try using the conditionals to achieve that end, since the containers are template based in that version, keeping in mind the limitations of conditionals as laid out in the initial post.

Those conditionals won't work as they are cached according to the OP. Where does the magic occur for AME? I've tried poking around but there doesn't appear to be any obvious spots that it hooks into in order to do the parsing of the [ame] tags. There has to be something I can wrap an if( ->userinfo["showimages"] == true ) { } around to stop the media from embedding. Even better would be if( ->userinfo["showimages"] != true ) { do whatever to get the [url] stuff from a quote/edit } else { embed }

Edit: Hrm, I just found ame_bbcode.php and am going to start poking around in there. Previously I was just looking at the plugins and where they hooked.. :)


All times are GMT. The time now is 02:12 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.02252 seconds
  • Memory Usage 1,757KB
  • 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
  • (11)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