The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
need help vbulletin/ seperate php script
Stand alone script trying to get stylesheet not working
will call this little code CODE 1 Quote:
THIS IS CODE2 Also known as the common.php file Quote:
This is where i have my problem.. if i put this in the php code with the CODE 1 snippet i end yup with Unable to add cookies, header already sent So where would this problem becoming from. why would the two conflict Quote:
|
#2
|
|||
|
|||
If you really need to set your own head/session/cookies, you could try adding one (or both) of the following lines before your call to global.php:
PHP Code:
|
#3
|
|||
|
|||
thanks marco that was what i needed
|
#4
|
|||
|
|||
Quote:
Thanks for your help! |
#5
|
|||
|
|||
yeah that disables the vb system so you would want to kill the cookies from the other app instead...
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource on line 29 $sql="SELECT * from songlist WHERE ID=$songID"; line 27 $result=mysql_query($sql);line 28 $data=mysql_fetch_object($result);line 29 offhand is there something wrong with that line ? that you can see |
#6
|
|||
|
|||
Thanks Vizionz for the reply!
If the 2 lines above disable the vb system, then why we need to include the global.php? Isn't that the whole purpose of integrate with vb cookies, keep track of the session n stuff? |
#7
|
|||
|
|||
you dont have to use the two lines he put out i have to because th script i am working on requires to connect to a different database and uses its own individual cookies if you just need to grab the vbulletin info just use everything but them two lines
Quote:
|
#8
|
|||
|
|||
Do you have a valid DB connection?
|
#9
|
|||
|
|||
i believe so its calling the database connection with the common.php file i posted above
<? require "common.php"; echo "<body background='$background' bgcolor='$bgcolor' link='$links' alink='$links' vlink='$link'>"; connectdbase(); $sql="SELECT * from songlist WHERE ID=$songID"; $result=mysql_query($sql); $data=mysql_fetch_object($result); ?> thats what its doing at the beginning of the script so i dont understand |
#10
|
|||
|
|||
bump
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|