View Full Version : Show Thread Enhancements - [5/9/2011] MARCO1 Hide All with Usergroups permission - Messages Manager
Pocket Aces
09-02-2018, 01:20 AM
Fatal User Error: Call to undefined function eregi_replace() on line 5 in ****/archive/index.php(477) : eval()'d code
in ****/vb/vb.php on line 286
I guess this mod doesn't work on PHP 7 anymore. Thank you for all those years. Time to look for alternative.
gundamz
09-07-2018, 01:33 AM
vbulletin 4 support up to php 5.4.x
you can continue to use it under php 5.4.x if your webhost allow multiple php (eg. php 5, php 7 simultaneously) to be run on your hosting account.
Bulent Tekcan
01-28-2020, 08:52 AM
Hello,
Any idea for this error.log ? After install this product this problem begining
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 5
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 14
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 5
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 14
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 5
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 14
Tousend lines like that :(
Hostboard
01-30-2020, 11:06 PM
Hello,
Any idea for this error.log ? After install this product this problem begining
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 5
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 14
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 5
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 14
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 5
PHP Deprecated: Function eregi_replace() is deprecated in /xxxxxx/archive/index.php(477) : eval()'d code on line 14
Tousend lines like that :(
What version of PHP are you running? This is only warning messages about depreciated PHP code and will have no effect on it usage. If you see this on your site you will need to disable the display PHP warnings so users don't see it.
See warning on https://www.php.net/manual/de/function.eregi-replace.php
You have to replace the eregi_replace() function calls with preg_replace() with /i -Modifikator
Means - search source code for eregi_replace and then replace
eregi_replace('pattern', 'replacement', 'string')
with
preg_replace('pattern/i', 'replacement' , 'string')
chudvs
02-02-2020, 02:10 PM
See warning on https://www.php.net/manual/de/function.eregi-replace.php
You have to replace the eregi_replace() function calls with preg_replace() with /i -Modifikator
Means - search source code for eregi_replace and then replace
eregi_replace('pattern', 'replacement', 'string')
with
preg_replace('pattern/i', 'replacement' , 'string')
what file or / template is that in?
I didn't install it so it is only a quick reading of source code, not tested
(1) in file admincp/MARCO1_hide_all_version_checker.php, on line 42/44 - there is ereg_replace (without i), should be replaced with preg_replace without /i-flag
$latestVersion = preg_replace("[^A-Za-z0-9.]", "", $latestVersion );
...
$latestVersion = preg_replace("[^0-9.]", "", $latestVersion );
(2) in file Product - MARCO1 Hide All Final.xml
line 25
$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_nomemberar], $post['pagetext_simp']);
line 39
$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_arc], $post['pagetext_simp']);
After installation you should find both (2) in admincp/addons & plugins/plugin manager in plugin "MARCO1 A R M" and "MARCO1 Hide Arc"
Bulent Tekcan
02-14-2020, 08:30 AM
Today I saw some interesthing point for example this IMG IMG tag include address. This product must be hidden from the guest but guest still showing that
https://vborg.vbsupport.ru/external/2020/02/1.jpg
Why didn't hide from guest I don't understand. And also hidden all local forum image from guest :) For example
images/buttons/viewpost-right.png etc.
blue7
05-04-2020, 10:33 AM
Hello,
I've 2 problems anyone could help with?
1. This hack hide links in private messages how to avoid of this?
2. Hack also hide links from moderators, how to exclude certain user groups?
Thanks.
I didn't install it so it is only a quick reading of source code, not tested
(1) in file admincp/MARCO1_hide_all_version_checker.php, on line 42/44 - there is ereg_replace (without i), should be replaced with preg_replace without /i-flag
$latestVersion = preg_replace("[^A-Za-z0-9.]", "", $latestVersion );
...
$latestVersion = preg_replace("[^0-9.]", "", $latestVersion );
(2) in file Product - MARCO1 Hide All Final.xml
line 25
$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_nomemberar], $post['pagetext_simp']);
line 39
$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_arc], $post['pagetext_simp']);
After installation you should find both (2) in admincp/addons & plugins/plugin manager in plugin "MARCO1 A R M" and "MARCO1 Hide Arc"
Thanks, the error of "eregi_replace" is solved but don't work properly, printpage don't show messages and this is seeing empty.
djvd-sammobile
01-12-2021, 08:05 AM
Thanks, the error of "eregi_replace" is solved but don't work properly, printpage don't show messages and this is seeing empty.
We're having the same issue here, error resolved but empty messages in archive/printpage...
djvd-sammobile
08-07-2021, 11:46 AM
I didn't install it so it is only a quick reading of source code, not tested
(1) in file admincp/MARCO1_hide_all_version_checker.php, on line 42/44 - there is ereg_replace (without i), should be replaced with preg_replace without /i-flag
$latestVersion = preg_replace("[^A-Za-z0-9.]", "", $latestVersion );
...
$latestVersion = preg_replace("[^0-9.]", "", $latestVersion );
(2) in file Product - MARCO1 Hide All Final.xml
line 25
$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_nomemberar], $post['pagetext_simp']);
line 39
$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_arc], $post['pagetext_simp']);
After installation you should find both (2) in admincp/addons & plugins/plugin manager in plugin "MARCO1 A R M" and "MARCO1 Hide Arc"
Thank you for your effort! The regexes are almost working. However, they should actually be:
(2) in file Product - MARCO1 Hide All Final.xml
line 25
$post['pagetext'] = preg_replace('/(http|www)([[:alnum:]\/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_nomemberar], $post['pagetext_simp']);
line 39
$post['pagetext'] = preg_replace('/(http|www)([[:alnum:]\/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i', $vbphrase[MARCO1_arc], $post['pagetext_simp']);
Notable differences:
now starts with a '/'
now properly escapes the '/\n' ( it becomes '\/\n' )
Other PHP7 improvements:
in the XML, all 11 occurrences of $vbphrase[MARCO1_*] should actually be quoted to eg. $vbphrase['MARCO1_*'] to prevent PHP notices/warnings
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.