![]() |
Quote:
I ask for "how to integrate", not if it is possible. It can?t be difficulty for a programmer to make a very small php-script to integrate this. it is the same database and all to do is to check if user id X has an entry in the table cpg_pictures table and put the result in a variable. but I?am not a programmer and for me it is difficult :( If somebody can give me the code I can put it in the vb-php file. |
i have gone another approach to this. I have actauly included a page in the theme.php pageheader function of my coppermine theme. That header function now looks like this:
PHP Code:
PHP Code:
Fatal error: Call to undefined function: query_first() in /home/digtoxn/public_html/forums/includes/functions.php on line 940 The reason why i find this to be an odd error is because, i KNOW query_first() is being defined.. I traced it back to an issue with the build_session function in sessions.php of vbulletin. vB defines a variable $DB_site. A call to build_session unsets this variable..... I have no rational explanation as to why it does this.... Thats where i get stumped... As a temp fix you can comment the first include line out and uncomment the line under it in my pageheader() function php code above. That will display what you want (you may need to change the templates since i use a different header template). Just note that since php registeres as a guest to the board, it will display these templates as if a guest was viewing them. Any help here would be great. I gave my 99cents. |
I can't see it in your example but you have not associated the query_first function with its object somewhere. Changes are you have query_first('QUERY HERE'); instead of $DB_site->query_first('QUERY HERE');
|
No no no no.... Read what i said above. When sessions.php calls build_session $DB_site is unset for some reasen.
I can only think of this as a bug in php as i do not see a reasen as to why it is doing this. I also presented it to 3 people in #php on freenode, and they think the same thing. |
Even if $DB_site was being unset I don't think that's the error you would get. var_dump($DB_site); wang that in your script in a few places and see if you get any output anywhere.
|
All times are GMT. The time now is 10:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|