vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request: Members/Non-Members templates..how? (https://vborg.vbsupport.ru/showthread.php?t=38825)

dssart 05-22-2002 08:54 PM

Logician,

That was it my man! But, my question is..what is the right usergroup I should enter here? I mean assuming I had the correct number in the past, I should have been able to see it regardless, me having admin rights, don't you think so?

If not, how can I get the right usergroup number for members. I haven't added or subtracted usergroups from my original installation. What was the usergroup id for members in a vanilla installation?

Thanks alot for your help..

Logician 05-23-2002 05:18 AM

Very likely it's 2, have you tried that?

To be sure:

Login Admin CP/ USER GROUPS/ Modify / Find the user group you want in the list, right mouse click on its edit menu, choose open in new browser window and check the address bar. You'll see at the end of line as: "usergroupid=X"

Quote:

I mean assuming I had the correct number in the past, I should have been able to see it regardless, me having admin rights, don't you think so?
Nope certainly NOT! :) If you set it to 2 only usergroup with 2 can see it. If you want to display it to eg. usergroup 2 AND 6 you have to modify the line:

if ($bbuserinfo[usergroupid]==2 AND $bbuserinfo[usergroupid]==6)


;)

E 05-23-2002 08:58 AM

PHP Code:

if ($bbuserinfo[usergroupid!=0) {
$button=" ";
} else {
$button="<a href=\"application.url\"><img src=\"button.url\"></a>;



E 05-23-2002 09:00 AM

if u want the button on forum homepage...
open up root/index.php

and find
PHP Code:

//check usergroup of user to see if they can use PMs 

Above add

PHP Code:

//Show application button
if ($bbuserinfo[usergroupid!=0) {
$button=" ";
} else {
$button="<a href=\"application.url\"><img src=\"button.url\"></a>;


now open up forumhome template.. and add $button wherever u want it too show

dssart 05-23-2002 07:41 PM

Thanks you guys,

You've been a great help..I think I've got it, but if not ( speaking in my best Schwarzenneger accent ) Ahhhl be baahk..


All times are GMT. The time now is 05:35 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.00953 seconds
  • Memory Usage 1,726KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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