vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [5/9/2011] MARCO1 Hide All with Usergroups permission - Messages Manager (https://vborg.vbsupport.ru/showthread.php?t=228228)

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

Quote:

Originally Posted by Bulent Tekcan (Post 2601854)
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.

shka 01-31-2020 09:03 AM

See warning on https://www.php.net/manual/de/functi...gi-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

PHP Code:

eregi_replace('pattern''replacement''string'

with
PHP Code:

preg_replace('pattern/i''replacement' 'string'


chudvs 02-02-2020 02:10 PM

Quote:

Originally Posted by shka (Post 2601881)
See warning on https://www.php.net/manual/de/functi...gi-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

PHP Code:

eregi_replace('pattern''replacement''string'

with
PHP Code:

preg_replace('pattern/i''replacement' 'string'


what file or / template is that in?

shka 02-03-2020 10:25 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
PHP Code:

$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
PHP Code:

$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i'$vbphrase[MARCO1_nomemberar], $post['pagetext_simp']); 

line 39
PHP Code:

$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


PHP Code:

[img]https://vborg.vbsupport.ru/external/2020/02/1.jpg[/img] 

Why didn't hide from guest I don't understand. And also hidden all local forum image from guest :) For example

PHP Code:

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.

yin9 05-24-2020 11:41 PM

Quote:

Originally Posted by shka (Post 2601920)
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
PHP Code:

$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
PHP Code:

$post['pagetext'] = preg_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)/i'$vbphrase[MARCO1_nomemberar], $post['pagetext_simp']); 

line 39
PHP Code:

$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.


All times are GMT. The time now is 10:15 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
  • Page Generation 0.01592 seconds
  • Memory Usage 1,776KB
  • 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
  • (12)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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