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)

Lynne 01-25-2009 03:12 PM

Post your code and please use the code/html/php tags when you do so it's easy to read.

King Justice 01-25-2009 10:15 PM

Err can't really post the code..but I'm using it exactly as above?
I have more PHP scripting going on to pull info out of the database as well because that's what the script is for...premium usergroups...and this is a script only they should be able to see.

Please help

Lynne 01-25-2009 10:36 PM

Sorry, all I can suggest then is that you have something wrong in your code. I've used those same lines in my homemade pages and they work just fine as long as the rest of the page is coded correctly and all the paths to the files are correct. Did you do your page using one of these articles as a template? How to create your own vBulletin-powered page! (uses vB templates) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc.

King Justice 01-26-2009 01:33 AM

No..this page is in the root directory of my site...not the forum directory... :) :\

Lynne 01-26-2009 02:43 AM

So? I don't understand why that changes anything? You do exactly what the article says only do the chdir before requiring the globals (like we did above).

Dismounted 01-26-2009 03:46 AM

Quote:

Originally Posted by King Justice (Post 1724246)
Used that but page is still breaking... :o

How is it "breaking"? (i.e. what is happening)

King Justice 01-26-2009 03:25 PM

The PHP code should be in the <body> tag right?
I'm putting it in the PHP code just above the script, which pulls info out of the database..

The PHP code that you gave me makes the script break and the HTML code break as well..without he PHP code you gave me, the script works though. :o

Lynne 01-26-2009 03:29 PM

php code should be in the php file, not in any html area.

King Justice 01-26-2009 03:34 PM

What?..
It's in a .php file if that's what you mean?..
Are you saying this script should have it's own file ??..

Lynne 01-26-2009 03:52 PM

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.


All times are GMT. The time now is 03:07 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.01103 seconds
  • Memory Usage 1,728KB
  • 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_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
  • (10)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