vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   is_member_of improvement. (https://vborg.vbsupport.ru/showthread.php?t=61149)

amykhar 12-12-2004 04:44 PM

Quote:

Originally Posted by mcyates
replaced it all and i got this:

Code:

Fatal error: Cannot redeclare is_member_of() (previously declared in /usr/home/yates238/public_html/includes/functions.php:176) in /usr/home/yates238/public_html/includes/functions.php on line 208

Then you didn't replace it all. Go back and make sure you got the whole function.

mcyates 12-12-2004 04:54 PM

Quote:

Originally Posted by amykhar
Then you didn't replace it all. Go back and make sure you got the whole function.


LeeCHeSSS script worked, but the orignal one didn't. I'll try your hack now. Thanks for the support.

noppid 12-27-2004 10:54 PM

A template only mod to do this is available here if you would like to avoid editing php files.

http://www.vbulletintemplates.com/mo...ead.php?t=7570

Boofo 07-30-2005 01:28 AM

Has this been added to 3.5 RC 1?

amykhar 07-30-2005 02:06 AM

It's built in. Go read the code and you'll see that Jelsoft was wise and merciful and no hack is needed any more.

Boofo 07-30-2005 04:13 AM

Great! Then we can still use it in templates the way Merk descibed, now, right?

amykhar 07-30-2005 12:59 PM

Yep. But, slightly changed:

Code:

<if condition="is_member_of($vbulletin->userinfo,6,5)">
Hello World!
</if>


Paul M 07-30-2005 02:01 PM

$bbuserinfo should still work in templates shouldn't it ?

amykhar 07-30-2005 02:34 PM

Quote:

Originally Posted by Paul M
$bbuserinfo should still work in templates shouldn't it ?

Yes. But, I try to upgrade to the new style when adding new conditionals.


All times are GMT. The time now is 03: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.01798 seconds
  • Memory Usage 1,727KB
  • 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_code_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
  • (9)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