vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Using Usergroup ID's to allow/deny Permisson question (https://vborg.vbsupport.ru/showthread.php?t=202860)

Ewan McLean 01-26-2009 05:45 PM

Quote:

Originally Posted by Lynne (Post 1725322)
But you said you put it in the <body> tag - in the html area of your page. It has to be within the php tag part of your page. Like at the top after you do a require of the global.php page.

PHP can be opened/closed anywhere within the html document though, as long as you specify your statements within a <?php?> tag.

King Justice 01-26-2009 09:18 PM

Yes the person above me works within my company and his statement is true. :)

Please assist. Also, PHP Safe Mode is on I believe..if that has anything to do with it.

Lynne 01-26-2009 10:58 PM

I'm sorry, but since you won't post the code, I'm not sure what else to suggest.

Dismounted 01-27-2009 03:09 AM

Quote:

Originally Posted by Ewan McLean (Post 1725417)
PHP can be opened/closed anywhere within the html document though, as long as you specify your statements within a <?php?> tag.

Lynne is talking in the context of vBulletin and its templating engine. vBulletin does not allow PHP in templates.

King Justice 01-27-2009 04:12 PM

Dismounted, this page is not in vB...it's not in the forum directory at all, and isn't a vB template. :o It's just a page on the root directory of the site...that we want to protect so that only certain usergroups we specify can see it.

Lynne 01-27-2009 04:38 PM

OK, I'll repeat what I said before. Those lines of code should go just after you include global.php - before you start spitting out any html.

derfy 01-28-2009 12:54 AM

Let me try (I'm another admin on the site)

We're using a CMS. We have a page that I wrote using PHP to pull out vB's ban info. When we try and include('./forum/global.php'), it breaks. The page stops executing and no output past the include() is printed. No error message is printed, as well.

I *think* it's either a file perm issue or open_basedir.

Neg on open_basedir.

Chdir'ing to our forums dir and requiring from there produces the same results.

I'm begining to lean toward a safe mode issue...

Dismounted 01-28-2009 04:21 AM

My guess is that vBulletin is conflicting with the CMS. There is probably some variables that are named the same, and therefore, it breaks.


All times are GMT. The time now is 01:52 PM.

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.01112 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_quote_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