vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   two things (https://vborg.vbsupport.ru/showthread.php?t=77975)

Chadi 03-12-2005 01:12 PM

two things
 
<a href="http://www.talkjesus.com/index.php?" target="_blank">http://www.talkjesus.com/index.php?</a>

I would like to reduce the font size on the right column but not sure what section it would be in main css. Could someone please tell me?

The shoutbox...how can I make it so that it only appears to registered logged in users and not to guest visitors?

Thank you.

Chadi 03-13-2005 05:15 PM

Quote:

Originally Posted by chadi
http://www.talkjesus.com/index.php?

I would like to reduce the font size on the right column but not sure what section it would be in main css. Could someone please tell me?

The shoutbox...how can I make it so that it only appears to registered logged in users and not to guest visitors?

Thank you.

Anyone can help please?

neocorteqz 03-13-2005 06:08 PM

with a conditional you can make it so your shoutbox is viewable to members.

HTML Code:

<if condition="is_member_of($bbuserinfo,X,Y,Z)">
Shoutbox code
</if>

Where X,Y,Z = the usergroupid of your registered usergroups.

Chadi 03-13-2005 06:10 PM

Thanks. How do I know the ID of the groups? I want it to be viewable to all groups except banned of course.

neocorteqz 03-13-2005 06:14 PM

Quote:

Originally Posted by chadi
Thanks. How do I know the ID of the groups? I want it to be viewable to all groups except banned of course.

to your usergroup manager, You should see the usergroup id of each in there.

AdminCP > Usergroups > Usergroup Manager

But the vBull defaults are
6 For admins
5 For Super Mods
7 For Mods
2 For Registered

Non Registered / COPPA
4 For COPPA
1 For Unregistered/Not Logged in
3 For Users Awaiting Email Confirmation

Chadi 03-13-2005 06:26 PM

weird..it works but half/half. I am the admin of course, and I cannot see the conditional field (text input field of shoutbox) even though I am in fact logged in.

It works for those who are not logged in though which is good but why not me?

<if condition="is_member_of($bbuserinfo,2,3,4,5,6,7)">

Admin is ID 6 so it shoudl work

neocorteqz 03-13-2005 06:40 PM

Are you using additional usergroups for people as well?

those usergroupid's will need to be included.

edit:

is that shoutbox anything posted on this site? or is it a separate script?

You could always try the other conditional.

HTML Code:

<if condition="$bbuserinfo[usergroupid] == X OR $bbuserinfo[usergroupid] == Y">
If you need to add more just make sure you follow the same format as in the example.

Chadi 03-13-2005 06:42 PM

i excluded only banned usergroup and unregistered/not logged in because I do not want these two groups to be able to post in the shoutbox.

neocorteqz 03-13-2005 06:47 PM

Quote:

Originally Posted by chadi
i excluded only banned usergroup and unregistered/not logged in because I do not want these two groups to be able to post in the shoutbox.

ok, try this

HTML Code:

<if condition="is_member_of($bbuserinfo,1)">
You must be registered to use the shoutbox

<else />

Shoutbox Code
</if>

that should exclude non registered members from seeing it, and will tell them they must be registered.

edit: you will have to do this for each Style unless it's a Child style using the templates of the parent style.

Chadi 03-13-2005 07:38 PM

Works :) Thank you


All times are GMT. The time now is 06:01 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.01195 seconds
  • Memory Usage 1,736KB
  • 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_html_printable
  • (3)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
  • (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