vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Hide Links From Guests (https://vborg.vbsupport.ru/showthread.php?t=123415)

Razasharp 08-13-2006 09:38 PM

Quote:

Originally Posted by Stoebi
@Razasharp

I hope, the new update interest you, because everything is optionally configurable.
Thank you TygerTyger :)
Regards, Stoebi

Thanks mate thats brill! :cool:

upsetter 08-15-2006 07:35 AM

awsome, thanks :D

payamix1 08-17-2006 11:27 AM

Bug : It applies in Private Messages !

payamix1 08-17-2006 11:43 AM

INSTALL Clicked.

Idea : You can insert a field for changing TEXT of converted links (configurable by site manager) or even a popup message.
(like this)

Stoebi 08-17-2006 03:02 PM

Quote:

Originally Posted by payamix1
Bug : It applies in Private Messages !

Hi

???? example? Guests can't read private messages

Quote:

Originally Posted by payamix1
INSTALL Clicked.

Thx :)

Quote:

Originally Posted by payamix1
Idea : You can insert a field for changing TEXT of converted links (configurable by site manager) or even a popup message.

Nice idea :)


The next version will hide links from guests in profiles and if anyone interested, i can public a patch for vbadvanced and vbeasy.


Regards, Stoebi

redlabour 08-17-2006 05:11 PM

Whats the way to make it compatible to vBadvanced ?

Stoebi 08-17-2006 06:56 PM

Quote:

Originally Posted by redlabour
Whats the way to make it compatible to vBadvanced ?

Open modules/news.php

Seach for (arround line 200):
Code:

                                        $news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
                                }

Add underneath:
Code:

                                if ($vbulletin->options['hlfg_global'])
                                {
                                        $groups = explode(',',$vbulletin->options['hlfg_groups']);
                                        if (!$vbulletin->userinfo['userid'] OR (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
                                        {
                                                $news['message'] = preg_replace("!<a[^>]*(http|www|mailto)(.*)</a>!siU", $vbphrase[nolink], $news['message']);
                                                $news['message'] = preg_replace("!mailto:(.+\.*.)!siU", $vbphrase[nolink] . '<', $news['message']);
                                        }
                                }

More to come (optionally activate/deactivate - additional addon (next days))


Regards, Stoebi

imranbaig 08-17-2006 07:21 PM

Just Installed works fine.. Nice hack..

tekstylez 08-17-2006 11:46 PM

thnx dude... so far, so good

payamix1 08-18-2006 06:41 AM

Quote:

Originally Posted by Stoebi
???? example? Guests can't read private messages

I've inserted Registered Users Group (number 2) in the field Hide links from groups.

now when Registered Users open their Private messages, they can not see links.

Sometimes we don't want our Registered Users to see links in one forum. ;)


All times are GMT. The time now is 07:36 AM.

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.01325 seconds
  • Memory Usage 1,743KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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