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)

Stoebi 08-07-2006 10:00 PM

Hide Links From Guests
 
1 Attachment(s)
Original Autor: natro Forum
Co-Autor: Stoebi

A big thank you goes out to natro for allowing me not only to translate the plug-in, but also to publish/release this with
my error corrections and some further additions.


Thank you very much also Andreas, Christian and Hoffi. Since some additions to the addon would have not been possible without their input.


Functions:
  • Guests won't see links in Posts
  • Guests won't see links in Archive (fixed parsing)
  • Guests won't see links in "Show Printable Version"
  • Guests won't see links in Reply (For registered user visible now (fixed))
  • Guests won't see links in Signatures (new)
  • Guests won't see links in Quotes (new)
  • Guests won't see links in Search (new)
  • Popup above the theme title is not shown for guests (new)
  • Fixed: extra ] was fixed in vbphrase
  • Guests won't see emails links
  • Exclude forums
  • Global activate/deactivate
  • Groups can be included
  • Link added
  • Version check added
  • Most options configurable
  • Info text configurable
  • Fixed bug in PN
  • Fixed database problem during install ( overwrite the product now possible )
  • Fixed multiquote and direct reply if a usergroup not allowed to shown links.
  • Added option "Show own posted links"
  • Added option "Exclude links" ( vbulletin.org|gif|jpg for example )
  • Added option "Show links from groups" ( 5,6 for example -> default )
  • Added option "Show links from users" ( webmaster|stoebi for example )
  • Source code optimizes
  • Guests won't see links in SHOWPOST (Post and Signature)
  • Supports my new hack Show Post In Printable Version
Intallation: Download, deinstall and reimport an existing version.



Update: 09-08-2006
  • Fixed link parsing in Quotes (View Post) in Reply, Signature and Post
  • Added 2 new screenshots
Update: 13-08-2006
  • Guests won't see email links (GregF)
  • Exclude forums (TygerTyger)
  • Global activate/deactivate
  • Groups can be included (JonnyF)
  • Link added
  • Version check added
  • Most options configurable
Update: 21-08-2006
  • Info text configurable (payamix1)
  • Fixed bug in PN (payamix1)
Update: 05-09-2006
  • Fixed database problem during install ( overwrite the product now possible )
  • Fixed multiquote and direct reply if a usergroup not allowed to shown links.
  • Added option "Show own posted links"
  • Added option "Exclude links" ( vbulletin.org|gif|jpg for example ) (JonnyF, DSPR)
  • Added option "Show links from groups" ( 5,6 for example) (TygerTyger)
  • Added option "Show links from users" ( webmaster|stoebi for example )
  • Source code optimizes
Update: 28-10-2006
  • Guests won't see links in SHOWPOST (Post and Signature) (new)
  • Supports my new hack Show Post In Printable Version (new)
Enjoy this fine update. :)


Guests always seen hidden links, if this addon activated. You can't exclude guests and include group ids. Non-excluded Forums are depend by the made options in vbulletins-options.


You'll find different versions in the archive. "product-Hide_Links_From_Guest_v132_36x_english.xml" is the newest one.
36x in filename means, product for vBulletin 3.6.x only, not downward-compatibly
354 in filename means, product for vBulletin 3.5.4.

This Addon works fine with the "Post Replacement" addon from Larrysw.
You need only to change the "Execution Order" from 5 to 4 in "Plugin Manager" -> Guests will not see links in posts (Hook: postbit_display_complete)

For german members of vBulletin, please click here for install. Thx :)


Have Fun

Regards, Stoebi


Sorry for german screenshots

Stoebi 08-08-2006 07:00 PM

Thx for installation. :)

unitedpunjab 08-08-2006 07:03 PM

just upgraded from ver 1.0 and working great

unitedpunjab 08-08-2006 07:05 PM

just one problem it shows the message in quotes for view post

https://vborg.vbsupport.ru/

Stoebi 08-08-2006 07:16 PM

Quote:

Originally Posted by unitedpunjab
just one problem it shows the message in quotes for view post

https://vborg.vbsupport.ru/

Yes, but the link is not visible, or?


Edit: I see the problem, now.


Regards, Stoebi

unitedpunjab 08-08-2006 07:24 PM

https://vborg.vbsupport.ru/

this is what logged in users see, the small little blue button next to the user name is creating the problem.

redlabour 08-08-2006 07:39 PM

Hack is useless as the old Version.
On vBadvanced and any other Portal or CMS all Links are still visible.
:(

unitedpunjab 08-08-2006 07:49 PM

for ppl who dont use any cms this hack is WORKS unlike all other hide hacks

C_P 08-08-2006 07:59 PM

I am using it and works great so far.
Test it here:
http://www.cpfools.com/forum/showthr...4788#post14788

*UPDATE*
I did find this mod to work great. However, it was descided by our staff that it is more a detrant for guests to get them to register.
I removed this mod from my site but think it was a good mod non the less.

karalti 08-09-2006 09:22 PM

thank u very much veryy good hacks !!!

ayaam 08-10-2006 04:56 AM

thanks , install :)

can we keep Sig's links allowed ?

Stoebi 08-10-2006 07:14 AM

Quote:

Originally Posted by ayaam
thanks , install :)

can we keep Sig's links allowed ?

Thank you :)

Yes. In Plug-ins you need only to deactivate the "Guests Not see links in Signature" plugin.


Will bring another enhancement. User in groups 1, 3 and 4 will not see links, too. Based on a idea
from the user JonnyF (www.vbhacks-germany.com).
Anyone interested?


Regards, Stoebi

unitedpunjab 08-10-2006 09:15 AM

Why not a simple Hide Hack which shows links after a users replies.
all other hide hacks are either too complicated or simply doesnt work.

GregF 08-10-2006 01:33 PM

A usefull addition to this would be to also be able to hide email addresses in posts from guests.

TygerTyger 08-10-2006 01:44 PM

QUOTE=Stoebi]Will bring another enhancement. User in groups 1, 3 and 4 will not see links, too. Based on a idea
from the user JonnyF (www.vbhacks-germany.com).
Anyone interested?

Regards, Stoebi[/QUOTE]

Sounds like a good idea :) especially if it was done so you could also choose which forums had links hidden and which had links shown. Then you have all bases covered!

Stoebi 08-11-2006 09:11 AM

Quote:

Originally Posted by unitedpunjab
Why not a simple Hide Hack which shows links after a users replies. all other hide hacks are either too complicated or simply doesnt work.

My programming language are not so great. I'm a beginner, but i think about a spoiler (not visible in printable version etc.) and hide hack.

Quote:

Originally Posted by GregF
A usefull addition to this would be to also be able to hide email addresses in posts from guests.

Okay, it's on my list, but the next update brings everything tunable first.

Quote:

Originally Posted by TygerTyger
Sounds like a good idea :) especially if it was done so you could also choose which forums had links hidden and which had links shown. Then you have all bases covered!

Bit more difficult for me. I think about it, thanks.


Regards, Stoebi

Razasharp 08-12-2006 06:16 PM

Hi Stoebi - thanks for a great hack!

Any chance of a very simple variation without all the extras please? Just a simple one really that does not show links to guests but everyone else can see them :)

I really don't need all the other features but cutting down on plug-ins is a must for larger boards so we'd really appreciate a streamlined version of this hack if you get two minutes. Please :cool:

Cheers :)

TygerTyger 08-13-2006 03:27 PM

Wow, what a quick update! Well DONE sir, absolutely fantastic. Give yourself a pat on the back. :D

Stoebi 08-13-2006 03:28 PM

Hi @all

@Razasharp

I hope, the new update interest you, because everything is optionally configurable.

Thank you TygerTyger :)


Regards, Stoebi

Andyrew 08-13-2006 04:16 PM

How do you exclude forums. ?

Edit: i found it. :laugh:

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. ;)

Stoebi 08-18-2006 09:55 AM

Hi

Fixed in next version. Thank you very much for your feedback.


Regards, Stoebi


Quote:

Originally Posted by payamix1
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. ;)


maaref 08-19-2006 10:46 AM

thanx
great one.

does it hide linked pictures too?

Stoebi 08-21-2006 05:41 PM

Quote:

Originally Posted by maaref
thanx
great one.

does it hide linked pictures too?

Yes. Don't forget to click install, please :)


Regards, Stoebi

tekstylez 08-22-2006 02:24 AM

I just tried to update to 122 and i get a database error...

Code:

Database error in vBulletin 3.6.0:

Invalid SQL:
ALTER TABLE forum ADD forum_hlfg SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0';

MySQL Error  : Duplicate column name 'forum_hlfg'
Error Number : 1060
Date        : Monday, August 21st 2006 @ 10:22:12 PM


Stoebi 08-22-2006 02:41 AM

Quote:

Originally Posted by tekstylez
I just tried to update to 122 and i get a database error...

Code:

Database error in vBulletin 3.6.0:

Invalid SQL:
ALTER TABLE forum ADD forum_hlfg SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0';

MySQL Error  : Duplicate column name 'forum_hlfg'
Error Number : 1060
Date        : Monday, August 21st 2006 @ 10:22:12 PM


Please deinstall and the reinstall this addon, please. Sorry.:(


Regards, Stoebi

tekstylez 08-22-2006 02:50 AM

thanks man... works!

jw00dy 08-22-2006 05:02 AM

Got same DB error, so I removed instead, then installed and it worked (hadn't seen post above yet). Just to confirm that this is what happens.

Great hack though, and great support :up:

DPSR 08-23-2006 07:52 AM

Installed, working fine :)

*installed ;)

EDIT: Can somebody please guide me how to exclude some forums from hiding?

and any way to make it NOT to hide linked pics?

TygerTyger 08-30-2006 04:15 PM

Pfffft, 5 star hack.

Is it possible to be able to override usergroups that will see the links? By that I mean...for instance Guests will not be able to see posted links unless an Administrator has posted the link, which they can see?

Stoebi 08-30-2006 06:35 PM

Quote:

Originally Posted by TygerTyger
Pfffft, 5 star hack.

Is it possible to be able to override usergroups that will see the links? By that I mean...for instance Guests will not be able to see posted links unless an Administrator has posted the link, which they can see?

Hi

Nice idea, really. Idea how can i realize this (code example)? I think about it.


Regards, Stoebi


All times are GMT. The time now is 07:39 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.01776 seconds
  • Memory Usage 1,838KB
  • 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
  • (4)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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