The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom page throwing: Unable to add cookies, header already sent
Hey All,
I am trying to write a custom PHP / MySQL-driven page that will live underneath the /forums path, but should (would like it to...) be able to access the VBulletin group membership info ($vbulletin->userinfo[usergroupid]). I have made several previous pages from templating found at : https://vborg.vbsupport.ru/showthread.php?t=62164 - thank you, btw Gary! However, using templates with what I am trying to make just won't do what I want it to do, so I have reverted to making my own custom pages and creating a separate folder underneath the /forums path. When I call global.php from a : Code:
require_once("../global.php") After deeper research, I saw someone mention that I might have a space somewhere in the code after <?PHP or before ?> I picked through my code, and even put it through validator.w3.org until I had absolutely nothing it could complain about. I even removed all comments I had in the code (not that that should have had any bearing, but hey). All I need is something along the lines of : Code:
if (($vbulletin->userinfo[usergroupid] == 6) || ($vbulletin->userinfo[usergroupid] == 10)) { echo '<p><center><a href="cataloot.php">Update Loot</a></center><br />'; } BTW, I am running VB 3.6.8, PHP 5.2.4, MySQL 5.1.52 - if that helps you look in a particular direction. Absolutely any constructive comments / suggestions are very much welcome. Security through obscurity just isn't my thing lol. If anyone has any suggestions for mods to that template that would enable to be able to do sql queries as well as PHP code (from what I have read, it's not designed to do this anyways - one reason I abandoned it for this purpose) - I would definitely love to hear your thoughts. Thanks, in advance! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|