![]() |
What's on line 938 of functions.php?
|
PHP Code:
|
Excellent thread. I hooked the auto-creation up to the CaRP RSS parser and a couple of cron jobs and now have this.
Today's question is how do I create calendar events? I'd be interested in a year at a time; i.e. monthly board meeting schedules. I'm thinking of inserting a text file into vb3_event with PHPMyAdmin but would like something more sophisticated. Thanks. |
Quote:
|
Ok, I figured out my problem. Has anyone got this code to work inside a function? When I run it normally, it works fine. When I put it inside a function, I get all kinds of errors.
|
Quote:
|
PHP Code:
Which returns: Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 3089 Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3089 Fatal error: Call to a member function query() on a non-object in /usr/local/www/htdocs/bbs/includes/functions.php on line 2298 Fatal error: Call to undefined method stdClass::query() in /usr/local/www/htdocs/bbs/includes/functions.php on line 524 I also have the same code outside a function, which works fine: PHP Code:
|
I didn't really go through your code, but try getting the userinfo before the foruminfo.
|
yeah the code is pretty long and convoluted, the bottom line is when i run it just in a normal test script it works perfectly, when I put it in any sort of function construct it fails as soon as it tries to execute any vb code.
|
You may be interested in this hack just released by deathemperor:
Calendar Search and Comments for Events https://vborg.vbsupport.ru/showthread.php?p=626269 |
All times are GMT. The time now is 08:40 AM. |
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:
|