vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   I love the new "not logged in" message in code boxes... (https://vborg.vbsupport.ru/showthread.php?t=54199)

Boofo 06-12-2003 03:26 PM

Yes, I made sure it was before I did the code.

Xenon 06-12-2003 05:22 PM

hmm, i haven't made more changes, so this should work :)

here is the whole block:
Code:

        $replacearray = array(
          "createlists('\\7', '\\5')",
          "createlists('\\4')",
          "checkurl('\\5', '\\7')",
          "checkurl('\\4')",
          "stripbrsfromcode('" . iif(islicensed(), "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')",
          "phphighlite(stripslashes(addslashes('" . iif(islicensed(), "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')))",
          "sqlhighlite('" . iif(islicensed(), "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')",
          "java script:",
          "about :",
          "vbscript :"
        );


Boofo 06-12-2003 11:45 PM

Could this be my problem?

I'm using this for the condition.

iif($bbuserinfo[usergroupid]==6

drives fast 06-13-2003 03:07 AM

logout button doesn't log me out

Xenon 06-13-2003 10:30 AM

nope bob, it would just be a problem if bbuserinfo isn't global

@drives fast: your cookie might be corrupted
delete it manually

Boofo 06-13-2003 10:51 AM

LOL It's working. I logged in as another usergroup and it shows the message fine now. Now all I have to do is figure what condition to use. Thank for the code, Stefan. Any way I could get the SQL tags code from you? I have been wanting that one for a while now. ;)

I'm curious, does "iif" actually mean "if not" or something close to that?

Xenon 06-13-2003 11:58 AM

hmm, the sql function is made by chen, so you have to ask him if you'll get it.

the iif is a vbfunction, you can find it's definition in functions.php :)
to say it in short, if the condition is true it returns the first value, else the second one

Boofo 06-13-2003 12:04 PM

That's what I was doing wrong. I was testing it as the Admin which was showing the code like it was supposed to instead of the template. When I tested it as a registered user, I saw the template contents. DOHH!!! ;) Thanks again, Stefan. I'll get an email off the Chen and check on the SQL code and let you know.


All times are GMT. The time now is 09:45 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.01040 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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