Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2005, 01:12 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 03-13-2005, 05:15 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 03-13-2005, 06:08 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-13-2005, 06:10 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. How do I know the ID of the groups? I want it to be viewable to all groups except banned of course.
Reply With Quote
  #5  
Old 03-13-2005, 06:14 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-13-2005, 06:26 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-13-2005, 06:40 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-13-2005, 06:42 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 03-13-2005, 06:47 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 03-13-2005, 07:38 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:55 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.04368 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete