vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Links for Registered Users Only (https://vborg.vbsupport.ru/showthread.php?t=81467)

Deaths 08-18-2005 11:41 AM

Quote:

Originally Posted by westpointer
Nice hack. One question on setting it with usergroups. I can only seem to get it to work if that is the user's primary usergroup. Can it also check "Additional Usergroups"?

Thanks!

Not sure whether this will work:

Replace
PHP Code:

$bbuserinfo[userid] != 

with
PHP Code:

!is_member_of(X,Y,Z); 

Where X Y and Z can be primary/secondary/anything groups.

stinger2 08-18-2005 09:05 PM

can this work on 3.5 RC2

sajjid 09-02-2005 01:54 PM

Code:

return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
in 3.5 RC2 this is in forums/includes/class_bbcode.php
it works but it hides links from everyone trying to figure conditions but so far no luck.

xtreme-mobile 09-11-2005 10:12 AM

great hack added to my second board

but 1 question!!!

it stopps you from seeing the link however before you go into the thread if you hover the mouse over the thread title it shows the link any fix for that?

regards

dean

stan111 09-14-2005 10:58 AM

Quote:

Originally Posted by xtreme-mobile
great hack added to my second board

but 1 question!!!

it stopps you from seeing the link however before you go into the thread if you hover the mouse over the thread title it shows the link any fix for that?

regards

dean

i have no idea how to write code to fix that but you can turn off that mouse over thingy by going to Admin CP ---> Vbulletin Options -----> Forum Display Option (forumdisplay) -----> set "Length of Thread Preview Text" to be 0

i did that to my forum
btw: the mouse over is kinda annoying. it made me dizzy :lol: so turning it off is not a big deal to me

xtreme-mobile 09-14-2005 04:12 PM

nice one cheers for that :D

stan111 09-14-2005 06:50 PM

just have this installed and the img code wont work with this
i have to uninstall it now

very nice and simple mod :thumbup:

Yorixz 09-15-2005 05:44 PM

Hopefully someone will find out what the conditions in vB3.5 are supposed to be, I'd like to implent something like this for quotes/codes, just like on vB.org here ;)

omega332432 09-15-2005 06:51 PM

What happens if theres a [url] around an [img] and this hack is installed?

sajjid 09-16-2005 11:02 AM

ok for this to work in vb 3.5 rc 3 do the following in
forums/includes/class_bbcode.php
find
Code:

return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
and replace it with
Code:

if ($vbulletin->userinfo['userid']) 

return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";

else 

return "Guests cannot view links. You must <a href='register.php'>register</a> to see links.";
}



All times are GMT. The time now is 08:24 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.01171 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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