vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

Digital Jedi 10-11-2011 09:10 AM

Quote:

Originally Posted by texasasl (Post 2255188)
I've seen all xml definitions but I cannot find the extension for .flv there is only extension for .swf.
Is there anyway to modify it by only replacing the .swf with .flv in the code??

Thanks in advance

Sorry, I sometimes confuse the two. FLV files require a player of some kind to work. They don't stream or play on their own like SWF files do in browser. I have a demo that I hope to get working for FLV files in the JW Player, but right now the JW Player/AME integration (also in the Add On section above) only supports YouTube. Keep on eye on that thread for updates.

texasasl 10-11-2011 04:17 PM

Quote:

Originally Posted by Digital Jedi (Post 2255849)
Sorry, I sometimes confuse the two. FLV files require a player of some kind to work. They don't stream or play on their own like SWF files do in browser. I have a demo that I hope to get working for FLV files in the JW Player, but right now the JW Player/AME integration (also in the Add On section above) only supports YouTube. Keep on eye on that thread for updates.

Thank you for your clarification.

Dj Smuggla 10-13-2011 01:44 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2255070)
I wonder if anyone has some ideas on this... I (and a few others) are trying to get AME to work on posts that are made via an RSS feed.

For example if you have a youtube RSS feed you need to "edit" and "save" each post for the video to actually embed.

I am close to solving this, I think, but still not working.

I have edited the file rssposter.php in the includes/cron/ directory... Since there are no hooks.

Find this code:
PHP Code:

                        $rsslog_insert_sql[] = "($item[rssfeedid]$itemid, '$itemtype', '" $vbulletin->db->escape_string($uniquehash) . "', '" $vbulletin->db->escape_string($item['contenthash']) . "', " TIMENOW ", $threadactiontime)";
                        
$cronlog_items["$item[rssfeedid]"][] = "\t<li>$vbphrase[$itemtype] <a href=\"$itemlink\" target=\"logview\"><em>$itemtitle</em></a></li>";
                    } 

And right after it add:
PHP Code:

//Set AME Flag Start
      
require_once(DIR '/includes/functions.php');
       
$amethread fetch_threadinfo($itemid);
          
$postid $amethread['firstpostid'];
          
          
$post fetch_postinfo($postid);
          
          
$post['message'] = $post['pagetext'];
          
          require_once(
DIR '/includes/ame_bbcode.php');
          
$value ame_prep_text($post['message']);
          echo 
$post['message'];
          if (
$value == 1)
          {
                  
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "post SET pagetext ='" $vbulletin->db->escape_string($post['message']) . "', ame_flag=1 WHERE postid=$post[postid]");
          }
          else if (
$value == 2)
          {
                  
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "post SET pagetext ='" $vbulletin->db->escape_string($post['message']) . "', ame_flag=1 WHERE postid=$post[postid]");
          }
 
//Set AME Flag End 

This code will set the ame_flag to "1" in the database for the post but for some reason does NOT change the [url] bbcode to [ame]...

I use the same query for both value ==1 and ==2 because "2" I believe disables AME in the post, which I don't want- I will assume for every RSS post I want it enabled, so I set the flag to 1 in both cases.

Is there something else I am missing? Do I need to run something else besides ame_prep_text?

Maybe there is supposed to be some difference between $post[message] and $post[pagetext] that I am missing... ?

Yea Digital Jedi do you know how to make the RSS poster embed the link when it posts links to videos?

Thanks

420 10-16-2011 02:58 AM

We have VB 3.86 with PassiveVid plugin and now when people post the new YouTube structured urls, they don't make a player in thread, just a text link.

Does this plugin work better and if so, does it work on the new YouTube url structure?

If I replace PassiveVid with this plugin, will all of our old archive threads make players as well?

Thank you so very much for your valuable time, energy and support.

Namaste

Digital Jedi 10-16-2011 05:52 AM

I sort of dread passiveVid questions, as I never really know what to say for certain. Since passiveVid doesn't use tags of any kind, then I'm pretty sure you won't be getting any kind of conversion for old posts. Other users have tried and they seem to get mixed results. I know that some users have tried installing the two together, and this is big mistake. Also, passiveVid seems to leave some tables in the database after install, so you should check that before installing another media hack. This is, of course, not based on personal experience, but on various reports I've gotten from other users.

My updated set of definitions supports most, if not all of YouTube's URL strings.

Centurios 10-17-2011 09:33 AM

in this mode also shows only links to videos in IE 9

Any fix?

Wonksta 10-22-2011 01:46 AM

Is there anyway for the Settings to accept percentages in Default post width? As I run a wrapper with min and max-width this would be really awesome because width would change depending on the users screen size and resolution.

I would keep Default post hight as px though....

Thank you!

Quads 10-25-2011 12:07 AM

Quote:

Originally Posted by 420 (Post 2257639)
We have VB 3.86 with PassiveVid plugin and now when people post the new YouTube structured urls, they don't make a player in thread, just a text link.

Does this plugin work better and if so, does it work on the new YouTube url structure?

If I replace PassiveVid with this plugin, will all of our old archive threads make players as well?

Thank you so very much for your valuable time, energy and support.

Namaste

Subscribed. I'm in the same boat.
Would love to know if you got it working.
I blew away my test server the other day so I can't test it at the moment, but hope to test myself, or hear from someone else who has.

texasasl 10-29-2011 09:21 AM

Quote:

Originally Posted by Digital Jedi (Post 2255849)
Sorry, I sometimes confuse the two. FLV files require a player of some kind to work. They don't stream or play on their own like SWF files do in browser. I have a demo that I hope to get working for FLV files in the JW Player, but right now the JW Player/AME integration (also in the Add On section above) only supports YouTube. Keep on eye on that thread for updates.

I am following your suggestion keeping an eye on this thread but I cannot see any improvement.
Thank you

Digital Jedi 10-31-2011 04:28 AM

Quote:

Originally Posted by texasasl (Post 2262608)
I am following your suggestion keeping an eye on this thread but I cannot see any improvement.
Thank you

That thread. Not this thread. When I post an update, it will be there.


All times are GMT. The time now is 01:33 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.05244 seconds
  • Memory Usage 1,773KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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