The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#91
|
|||
|
|||
What's on line 938 of functions.php?
|
#92
|
||||
|
||||
PHP Code:
|
#93
|
||||
|
||||
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. |
#94
|
|||
|
|||
Quote:
|
#95
|
||||
|
||||
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.
|
#96
|
|||
|
|||
Quote:
|
#97
|
||||
|
||||
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:
|
#98
|
|||
|
|||
I didn't really go through your code, but try getting the userinfo before the foruminfo.
|
#99
|
||||
|
||||
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.
|
#100
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|