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)

leemart44 06-24-2014 11:23 PM

Still see it in page source

ozzy47 06-25-2014 12:04 AM

Sure, but there is not many ways around that without causing performance issues.

markoroots 06-30-2014 05:20 PM

Hi Marco,
is it possible to disable the hidelinks and the hideimages
only in some section of the forum and not in the others.
I have some sections where i want that also the guest can see the links and images,
but in all the rest of the forum must be hidden.

Can you add this function.. can be really useful.
I have some section that i rent to some customers that want to remain visible to all users...

Many thanks for your Mod.

Added and Marked.... :) ;)

gundamz 07-02-2014 07:02 AM

is it possible to whitelist domain from being hide?

semaster 07-04-2014 12:11 PM

it is not hiding links between code and quote bb-codes.

please help

markoroots 07-11-2014 10:10 AM

Bro these things will be really useful.
If you can add them, you will be also more great of now... :) that just you are great... :) ;)
Great mod... ;)
Many thanks.
Added and nominated.

michael24179 08-01-2014 03:48 PM

I have error on my Archive.
Warnung: Function eregi_replace() is deprecated in ..../archive/index.php(477) : eval()'d code (Zeile 3)

The error com from MARCO1 A R M

Code:

if (!$vbulletin->userinfo['2'])
    {
$post['pagetext'] = eregi_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)', $vbphrase[MARCO1_nomemberar], $post['pagetext_simp']);

$post['pagetext_simp'] = strip_bbcode($post['pagetext']);
$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);
    }

I have no idea, what i must edit :(

markoroots 09-11-2014 10:29 PM

Quote:

Originally Posted by MARCO1 (Post 1916167)
Oh, You are quick :D

The Mod will hide all the links in your forum for guests and members however you can control if you want to hide the links for guests or members from you admincp

Hi Marco, :)
this is really important.
Can you please add to this mod also the possibility to exclude some forum from the hide links??
This don't must be difficult but will be really useful.
Please can you make this for us???

Regards Marco

markoroots 09-11-2014 11:11 PM

:( Same errors :(
when I try to disable the hide functions in a specific forum. with the functions of "MARCO1 No Thread Content for guests"

mysqli_query(): (42S22/1054): Unknown column 'MARCO1_forumnocontent' in 'field list' in [path]/includes/class_core.php on line 1391

Maybe knowing this, can be helpful for you. ;)

So please don't forger us we really need your help. :(

ozzy47 09-11-2014 11:11 PM

Why did you double post this?

markoroots 09-11-2014 11:16 PM

Was the forum that was gone in block when I tried to send the message...
You can delete it.

ozzy47 09-11-2014 11:17 PM

Strange. :confused:

markoroots 09-11-2014 11:22 PM

(Can succeded... and also can be helpful for you to know that every 10 or 15 minutes i found my account logout from vb.org this is a little bit boring but i say it for you and for this great community ;) )
So if you want take my tips and you can delete these our messages offtopic in this thread. ;)

markoroots 09-14-2014 12:15 PM

In the 4.2.2 ver.
Succeed to me that, using together the mod "Marco1 Hide Forum Content" (to prevent to hide the content in some section that don't must be hide) the plugin crash each time I try to add (or also modify) a new forum or section.

The message is this:


Database error in vBulletin 4.2.2:

Invalid SQL:
UPDATE forum SET
title_clean = 'Ask for Help',
title = 'Ask for Help',
description_clean = 'In this section you can ask for Help to our Team',
description = 'In this section you can ask for Help to our Team',
link = '',
displayorder = 25,
parentid = 33,
daysprune = -1,
defaultsortfield = 'lastpost',
defaultsortorder = 'desc',
showprivate = 0,
newpostemail = '',
newthreademail = '',
### Bitfield: forum.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 16, options - 16, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 8192, options - 8192, options),
options = IF(options & 4, options, options + 4),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 16384, options, options + 16384),
options = IF(options & 524288, options - 524288, options),
options = IF(options & 256, options - 256, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options, options + 128),
options = IF(options & 262144, options - 262144, options),
options = IF(options & 512, options, options + 512),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 65536, options, options + 65536),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 1048576, options - 1048576, options),
options = IF(options & 2097152, options - 2097152, options),
styleid = 0,
imageprefix = '',
password = '',
MARCO1_forumnocontent = '0'
WHERE forumid = 46;

MySQL Error : Unknown column 'MARCO1_forumnocontent' in 'field list'
Error Number : 1054
Request Date : Sunday, August 3rd 2014 @ 04:21:31 PM
Error Date : Sunday, August 3rd 2014 @ 04:21:32 PM
Script : http://www.eliquid-forum.com/admincp....php?do=update
Referrer : http://www.eliquid-forum.com/admincp...o=edit&f=46&s=
IP Address : xxxxxxxx
Username : Admin
Classname : vB_Database
MySQL Version : 5.5.37-35.1-log

markoroots 10-01-2014 09:47 AM

Any fix for these my last posts??
Especially for the the one upside this one.

And also how i can exclude certain forum from the hide content??? For example I hide links to the guest, but them result hide also in the "Forum Rues" where are some links that the guest must see. :erm:

gnrx 12-01-2014 01:10 AM

I update to version 4.5 but the checker (admincp-MARCO1 Hide All-Version Checker) indicate this:
Current Version: 4.0
Latest Version: 4.5

But if I go to Products and Plugins appears that I use 4.5.

markoroots 12-15-2014 04:22 PM

Any answer for this question?
"Is it possible to exclude certain forum from the hide content??? For example I hide links to the guest, but them result hide also in the "Forum Rues" where are some links that the guest must see."

markoroots 12-16-2014 09:52 AM

Hi Marco1 please is it possible to add at this plugin the same option you add here:

"""MARCO1 Hide Thread Content
With excluding forum to hide content"""

I need and sure will be useful for all to exclude some forum from hide content (like the Forum Rules for example)

And also I see that the plugin hide also the images linked, is possible to decide to exclude the images from the hidden things?

Thank in advance and please give us an hand, because I see that there isn't a plugin on vb.org to hide links only in the desired forums, so you by making some little modifications to your plugin can make a great thing. ;)

MARCO1 we hope in your help. ;)

JesWhite 06-24-2015 07:24 AM

Quote:

Originally Posted by MARCO1 (Post 2022670)
Yes, This idea is in my notes I promise you in the next version I'll recode the Mod again to rebuild all the options to get the Most biggest Hidden Mod in the world :)

i think everybody waiting your help :)
please help us to hide exclude forum option...

JesWhite 06-24-2015 02:55 PM

i added box to guest settings but how can i add working stop code...
Code:

$this_stop = 0;
            if (!empty($this->registry->options['MARCO1_HideForumID'])){
                $MARCO1_Forum_NOHIDE = explode(" ",$vbulletin->options['MARCO1_HideForumID']);
                if(in_array($thread['forumid'],$MARCO1_Forum_NOHIDE)){
])
    {
                    $post['message'] = preg_replace('/\\[url\\](.*)\\[\/url\\]/siU', '\\1', $post['message']);

                    $this_stop = 1;
                }
            }

maybe like this...
i tried all of hide code deaktivated:)

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.

djvd-sammobile 01-12-2021 08:05 AM

Quote:

Originally Posted by yin9 (Post 2603065)
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

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"

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
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']); 

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


All times are GMT. The time now is 05:55 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.01724 seconds
  • Memory Usage 1,865KB
  • 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_code_printable
  • (17)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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