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 07-30-2005, 01:59 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default shoutbox permissions

I use a shoutbox from www.cbox.co.za

This is my code

Code:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
	<td align="center" style="border-style:solid; border-width:1px; " bgcolor="#F5F5FF" bordercolor="#C0C0C0">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom-style: solid; border-bottom-width: 2px">
<iframe frameborder="0" width="100%" src="http://cbox.co.za/box/?boxid=43&boxtag=786&sec=main" marginheight="0" marginwidth="0" scrolling="yes" name="cboxmain" allowtransparency="yes" style="border: #ababab 0px solid" height="200"></iframe></td></tr>
<tr><td>
<if condition="is_member_of($bbuserinfo,1,3,4,8,11)">
You must be registered and confirmed active account to use the shoutbox
<else />
<iframe frameborder="0" width="100%" height="50" src="http://cbox.co.za/box/?boxid=439&boxtag=7868&sec=form&wname=68&wemail=68&wmsg=175" marginheight="0" marginwidth="0" scrolling="no" name="cboxform" allowtransparency="yes" style="border: #ababab 0px solid; border-top: 0px;"></iframe>
</if>
</td></tr></table></td>
The red part is what was suggested to use to restrict access to the groups listed. Problem is it only works on non registered users but no other groups in the list. How do I correct this?
Reply With Quote
  #2  
Old 07-30-2005, 02:03 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless you installed this hack that won't work. You'll need to have each usergroup seperately. such as:

HTML Code:
<if condition="is_member_of($bbuserinfo, 1) OR is_member_of($bbuserinfo, 3) ...">...</if>
Reply With Quote
  #3  
Old 07-30-2005, 02:32 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I keep getting this error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/chadi/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 319

This is what I put in:

<if condition="is_member_of($bbuserinfo, 1)"></if>
<if condition="is_member_of($bbuserinfo, 3)"></if>
<if condition="is_member_of($bbuserinfo, 4)"></if>
<if condition="is_member_of($bbuserinfo, 8)"></if>
<if condition="is_member_of($bbuserinfo, 11)"></if>
You must be registered and confirmed active account to use the shoutbox
<else />

What am I doing wrong?

It only works on group 1
Reply With Quote
  #4  
Old 07-30-2005, 02:37 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read post number 2. That is your answer.
Reply With Quote
  #5  
Old 07-30-2005, 02:38 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean? That is what I tried.

I tried the hack also, didn't work at all.

I'm not technical with coding so please bear with me here.

I tried this also

<if condition="is_member_of($bbuserinfo, 1) OR is_member_of($bbuserinfo, 3) OR is_member_of($bbuserinfo, 4) OR is_member_of($bbuserinfo, 8) OR is_member_of($bbuserinfo, 11)"></if>

Error:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/chadi/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 315

I tried this also

<if condition="is_member_of($bbuserinfo, 1) OR is_member_of($bbuserinfo, 3) OR is_member_of($bbuserinfo, 4) OR is_member_of($bbuserinfo, 8) OR is_member_of($bbuserinfo, 11) "</if>

Error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/chadi/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 38
Reply With Quote
  #6  
Old 07-30-2005, 02:45 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<if condition="is_member_of($bbuserinfo, 1) OR is_member_of($bbuserinfo, 3) OR is_member_of($bbuserinfo, 4) OR is_member_of($bbuserinfo, 8) OR is_member_of($bbuserinfo, 11) "</if>

HTML Code:
<if condition="is_member_of($bbuserinfo, 1) OR is_member_of($bbuserinfo, 3) OR is_member_of($bbuserinfo, 4) OR is_member_of($bbuserinfo, 8) OR is_member_of($bbuserinfo, 11)"> 
    text
<else />
    othertext
</if>
Reply With Quote
  #7  
Old 07-30-2005, 02:49 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry but your confusing me

<if condition="is_member_of($bbuserinfo, 1) OR is_member_of($bbuserinfo, 3) OR is_member_of($bbuserinfo, 4) OR is_member_of($bbuserinfo, 8) OR is_member_of($bbuserinfo, 11)">
You must be registered and account activated to use this shoutbox.
<else />
Shoutbox enabled.
</if>

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/chadi/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 317
Reply With Quote
  #8  
Old 07-30-2005, 02:58 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol I'm having troubles finding the typo, what version of vBulletin are you using?
Reply With Quote
  #9  
Old 07-30-2005, 03:04 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.07

I tried with and without the hack (both versions) you mentioned. Right now I'm without the hack.

Anyone else wish to try ?
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 11:33 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.04084 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete