The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
DJ's AME :: The Ultimate Automatic Media Embedder :: 2.5.7 Details »» | ||||||||||||||||||||||||||||
DJ's AME :: The Ultimate Automatic Media Embedder :: 2.5.7
Developer Last Online: Sep 2023
From the team who brought you the blockbuster film "Yahtzee!", comes the next major motion picture about incredibly bad and arbitrary puns:
AME 2.5.7: Electric Boogaloo AME automatically embeds media in posts without the need for pesky BBCode cluttering up your editor toolbar. It's also lightweight, and saves resources that BBCode would ordinarily consume. Your users don't even have to know you have AME installed. If they share a link from YouTube, Dailymotion, Amazon, Metacafe or Vimeo, AME automatically embeds the content for them. No special code to learn. No instructions for newbies to understand. In addition, AME allows you to create, import and export support for individual websites in the form of media definitions. These XML files expand your AME to support a limitless number of websites from around the net and let you share them with the community. We currently have around 200 media definitions collected at this repository thread. If you want additional support for website not listed, please ask for it there. Odds are, we might already have one. (TIP: Be sure to check the Add-Ons section below for stuff you might miss out on, otherwise.) [hr]#CCCCCC[/hr] CREDITS This modification was originally built by [name]The Geek[/name], who is no longer coding for vBulletin. We miss him. But he gave permission for someone to continue to build upon his work. All I've done is modify the code a little to support additional functionality and to provide a place to continue to support the product. The product didn't need too much tweaking, but I did manage to add some new features I think you will enjoy, which I'll lay out in the feature list below. [hr]#CCCCCC[/hr] RECOMMENDATIONS It is HIGHLY recommended that you read the READ ME.html file included in the ZIP file before you upgrade or install. You don't want to be blind-sided, now do you? [hr]#CCCCCC[/hr] NEW INSTALLATIONS
[hr]#CCCCCC[/hr] TO UPGRADE If you are upgrading from AME 2.5.6.
[hr]#CCCCCC[/hr] WHAT ELSE? The following five posts will include:
Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
3 благодарности(ей) от: | ||
CreativeIT, ozzy47, xorex |
Comments |
#182
|
||||
|
||||
Quote:
I have no idea why &rel=0 would do anything at all. However AME caches its parsed code so if you don't re-edit an old post any changes you make to the replacement code isn't going to be noticeable on posts you've already viewed. If it works for new posts then there is a tool (link) I believe in the AME section of the Admin CP to clear the cache. But I would backup before using it, I've had issues with it before. For the record I went to SSL (using the older version of this mod) without any issue but I had updated the code to use SSL years before I put an SSL cert on my board. |
Благодарность от: | ||
blind-eddie |
#183
|
|||
|
|||
can anyone update this addon ?
|
#184
|
||||
|
||||
i have this problem, how can i fixed ?
PHP Code:
|
#185
|
|||
|
|||
I am not a PHP expert and I only use a small number of AME definitions so this may have issues with some other definitions but I can explain what I changed to resolve the '/e modifier is deprecated' message in ame_bbcode.php near line 712
In the function ame_process_bbcode I made the following change. Replace Code:
$text = preg_replace($ameinfo['find'], $ameinfo['replace'], ($param2 ? $param2 : $param1), 1); Code:
$text = ''; for ($i = 1; $i<count($ameinfo['find']); $i++) { preg_match($ameinfo['find'][$i], $param1, $matches, PREG_OFFSET_CAPTURE); if ($matches) { $findStr = $ameinfo['find'][$i]; $replaceStr = $ameinfo['replace'][$i]; $findStr = preg_replace("/(~ie)/", "~i", $findStr); $text = preg_replace_callback($findStr, function($m) use($replaceStr) { $rep = $replaceStr . ';'; $rep = str_replace('$param1', "'" . $m[1] . "'", $rep); $rep = str_replace('\1', '', $rep); $rep = str_replace('\2', '', $rep); $rep = str_replace('\3', '', $rep); $rep = str_replace('\4', '', $rep); $rep = str_replace('\5', '', $rep); $rep = str_replace('\6', '', $rep); if (count($m) > 2) { $rep = str_replace('$param2', "'" . $m[2] . "'", $rep); $rep = str_replace('$p1', $m[2], $rep); } if (count($m) > 3) { $rep = str_replace('$p2', $m[3], $rep); } if (count($m) > 4) { $rep = str_replace('$p3', $m[4], $rep); } if (count($m) > 5) { $rep = str_replace('$p4', $m[5], $rep); } if (count($m) > 6) { $rep = str_replace('$p5', $m[6], $rep); } eval('$str='.$rep); return $str; }, ($param2 ? $param2 : $param1), 1); break; } else { $text = $param1; } } Hopefully this helps some people and maybe someone else can take it and improve upon it. If this helps anyone and you want to tip anything I wouldn't refuse it. |
#186
|
||||
|
||||
Quote:
|
#187
|
|||
|
|||
Odd. It works fine on my installation but as stated I am not an expert and only modified it enough to get it to work in my limited use cases.
|
#188
|
||||
|
||||
are there any updates for this version ?
|
#189
|
|||
|
|||
How to fix preg_replace() errors in PHP 5.6 + 7.x for DJ AME's 2.5/2.7 :
- This fix is for the preg_replace Errors (Error 1) in ame_bbcode.php reported by user Mandushi above. - In my case I encountered the 2nd Error (Error 2) seen below after upgrading to vBulletin 3.8.1.1 and PHP 5.6+ Error 1: In vBulletin 3.8.x versions using PHP 5.6 +: Code:
mod_fcgid: stderr: PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /includes/ame_bbcode.php on line 712 Code:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in includes/ame_bbcode.php on line 331\n' Thankfully I had some help to complete this fix long time a go on StackOverflow (Credits Barmar). So the methods below below will fix all of the preg_replace deprecated errors in ame_bbcode.php file. 1. Edit the > ame_bbcode.php and find this line in function named (&fetch_full_ameinfo): Code:
if (!$findonly) Code:
if (!$findonly) { $ameinfo['find'][] = "~($result[findcode])~ie"; $ameinfo['replace'][] = 'ame_match_bbcode($param1, $param2, \'' . $result['ameid'] . '\', \'' . ame_slasher($result['title']) . '\', ' . $result['container'] . ', \'' . ame_slasher($result['replacecode']) . '\', \'$match[1]\', \'$match[2]\', \'$match[3]\', \'$match[4]\', \'$match[5]\', \'$match[6]\')'; } else { $ameinfo['find'][] = "~(\[url\]$result[findcode]\[/url\])~ie"; $ameinfo['find'][] = "~(\[url="?$result[findcode]"?\](.*?)\[/url\])~i"; $ameinfo['replace'][] = 'ame_match("$match[1]", "", ' . intval($result['extraction']) .', "' . ($result['embedregexp'] ? "~" . ame_slasher($result['embedregexp']) . "~sim" : "") . '", "' . ($result['validation'] ? "~" . ame_slasher($result['validation']) . "~sim" : "") . '",$ameinfo)'; $ameinfo['replace'][] = 'ame_match("$match[1]", "$match[2]", ' . intval($result['extraction']) .', "' . ($result['embedregexp'] ? "~" . ame_slasher($result['embedregexp']) . "~sim" : "") . '", "' . ($result['validation'] ? "~" . ame_slasher($result['validation']) . "~sim" : "") . '", $ameinfo)'; } Code:
$text = preg_replace($ameinfo['find'], $ameinfo['replace'], ($param2 ? $param2 : $param1), 1); Code:
$text = preg_replace_callback($ameinfo['find'], function($match) use (&$param1, &$param2, &$ameinfo) { return eval($ameinfo['replace']); }, ($param2 ? $param2 : $param1), 1); Additional Fix for line 324 in ame_bbcode.php 1. The line seen below at line 324 will also show up as a Deprecated Error: Code:
$text = preg_replace($ameinfo['find'], $ameinfo['replace'], $text); Code:
$text = preg_replace($substitutes, $subhandlers, $text); $text = preg_replace_callback($ameinfo['find'], function($match) use (&$text) { return eval($ameinfo['replace']); }, ($text), 1); Please leave a feed back for others to know if you were able to make it work on your end. Thank you. Regards China. |
#190
|
|||
|
|||
This don't work with https
|
#191
|
||||
|
||||
Note: In this post, all instances of +++++ute should read as b i t c h u t e (without the spaces)
Censoring can be a real +++++. If anybody wants to embed video from https://+++++ute.com use the following code to add the new definition: Regular Expression: Code:
https://www.+++++ute.com/video/([\w/]+) Code:
<iframe frameborder="0" width="480" height="360" src="https://www.+++++ute.com/embed/$p1" allowfullscreen></iframe><br /> <font size="1"><strong>+++++ute Source:</strong> <a target="_blank" href="https://www.+++++ute.com/video/$p1">https://www.+++++ute.com/video/$p1</a></font> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|