vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   is there any mod which hides links / attactment from unregistered users? (https://vborg.vbsupport.ru/showthread.php?t=107285)

Lizard306 02-06-2006 12:16 PM

is there any mod which hides links / attactment from unregistered users?
 
Hi,

I am looking for a mod that will hide / not show links or attachments within a post to unregistered users.

willing to pay if required.

Thanks

Princeton 02-06-2006 12:27 PM

if a link is displayed it does not necessarily mean that the group can download attachment

downloading attachment is controlled via USERGROUP MANAGER (Permissions)

Lizard306 02-06-2006 12:36 PM

1) users on my forum post hundreds of links to external sites. i dont want these to seen my unregistered users.

2) i dont want unregistered users to see attachments at all. leave alone downloading them.

Thanks again

bairy 02-06-2006 03:38 PM

I don't know about the url parsing, it'll be in the bbcode functions somewhere.

The attachments is fairly easy if you know how to hack the templates. Assuming the site you mean is your url (i.e. vb 3.0) open the postbit template, find
Code:

<if condition="$show['attachments']">
and replace with
Code:

<if condition="$show['attachments'] AND $bbuserinfo[userid]">
That will only show the attachments to logged in users

Lizard306 02-06-2006 06:13 PM

thanks for your reply. what is i want to block a whole usergroup ... i.e. say i have user group for people under 50 posts. whom i dont want to show the attachments to. then whats the code i need to attach.

bairy 02-06-2006 06:40 PM

Oh ok well okay there is lots of info stored in various variables, so I'll list them and you can just pick and choose as you need.

Okay you need to have
Code:

<if condition="$show['attachments']">
there. You can add on other bits of code using AND after the ] but before the " as I have done.

$bbuserinfo[userid] = the user's id. if $bbuserinfo[userid] exists, it means they are logged in
$bbuserinfo[posts] stores the number of posts
$bbuserinfo[usergroupid] stores the usergroup of the member.

So for example,
Code:

<if condition="$show['attachments'] AND $bbuserinfo['posts'] > '50'">
will only show the attachments if the user has over 50 posts. (This method is slightly easier to understand and change than the usergroup method)

Code:

<if condition="$show['attachments'] AND $bbuserinfo['usergroupid'] == '6'">
will only show attachments to administrators (group 6).

Code:

<if condition="$show['attachments'] AND $bbuserinfo['usergroupid'] != '6'">
will only show attachments to those who aren't administrators. Not a practical example I know but useful if you want to exclude just one group.

If you specify exactly who you want to see attachments, I can create exact code for you. (If you want to mix and match the rules dependant on forum then although possible, that's much messier and beyond my personal range.)

hiiped 02-06-2006 10:39 PM

Quote:

Originally Posted by Lizard306
Hi,

I am looking for a mod that will hide / not show links or attachments within a post to unregistered users.

willing to pay if required.

Thanks

::::: Hide links from guest / unregistered :::::

for attachments, you can disable guest view in group permission



/


All times are GMT. The time now is 10:48 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.01082 seconds
  • Memory Usage 1,727KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete