![]() |
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. |
can anyone update this addon ?
|
i have this problem, how can i fixed ?
PHP Code:
|
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 = ''; 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. :) |
Quote:
|
Quote:
|
are there any updates for this version ?
|
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) 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) { 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); Please leave a feed back for others to know if you were able to make it work on your end. Thank you. Regards China. |
This don't work with https
|
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 /> |
All times are GMT. The time now is 09:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|