vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   exceptions for user-group in postbit_legacy (https://vborg.vbsupport.ru/showthread.php?t=104734)

SnickersTK 01-07-2006 07:33 PM

exceptions for user-group in postbit_legacy
 
Hi,

I want to make this code in postbit legacy but I don't have the knowledge to make it into a real working code.


If confition = usergroup id is 1 , 2 ,7
<div></div>

else:

<div>something</div>

I am trying to make a code, so if your the usergroup id number I have written it "something" wont show up, but if your not mentioned it will

Thanks :)

Reeve of shinra 01-08-2006 06:31 AM

This should work iirc.

HTML Code:

<if condition="$bbuserinfo[usergroupid]==1,2,7>

Stuff goes here

<else />
 
something else goes here

</if>


SnickersTK 01-08-2006 05:31 PM

It doesn't seem to work :(

When I add the code in postbit legacy and press submit it works for ever, never gets done with the progress (keeps loading)

Any other kind of change in postbit legacy works right away, press submit and it will change page and change would be done

SnickersTK 01-10-2006 10:07 AM

help?? please...

Reeve of shinra 01-11-2006 01:25 AM

Try this (and thank Jake Bunce if it works lol)

HTML Code:

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

        CODE THAT DISPLAYS THE POST

<else />

        MESSAGE THAT THEY MUST WAIT

</if>


SnickersTK 01-11-2006 06:25 AM

So is that username numbers I have to replace x,y,z with or is it usergroup number?


All times are GMT. The time now is 07:05 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.00922 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete