The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
That's what I did to start with, and it worked fine. That's why I think it has something to do with how vb3.5 needs to have queries typed in differently somehow
|
#12
|
||||
|
||||
hmmm i see, well, the query works, but im not sure how to deal with queries that complex, what i have seen from your original was that you wasnt recalling the userid properly and you wasnt cutting the php time variable from the sql sentance
im not sure what else you can do :S |
#13
|
||||
|
||||
Well thanks for trying. I appreciate it!
On that note, if anybody else has any ideas, I really would like to get this going if possible. Thanks a lot! |
#14
|
|||
|
|||
Put a global $vbulletin before the query.
|
#15
|
||||
|
||||
Hey MarchoH, thanks, but how would that look. Aren't the queries that WhiteSnake entered above already using the $vbulletin before them?
|
#16
|
|||
|
|||
White Snake, your codes have several errors. As Boofo said: the correct code would be $db->query_first, but it depends on the hook you're inserting this code into.
The following should work with most hooks: PHP Code:
|
#17
|
||||
|
||||
HotLinkHosting, now I am back to the Fatal Error from before:
Fatal error: Call to a member function on a non-object in ..../includes/class_postbit.php(251) : eval()'d code on line 2 The hook I am using is postbit_display_start.. I have tried it in other postbit hooks with the same problem however.. I think that is the right hook to use though. It makes sense at least according to where it is in the code.. |
#18
|
||||
|
||||
Quote:
well try this now, inspired on Hotlink code: PHP Code:
|
#19
|
||||
|
||||
Shouldn't it be this:
PHP Code:
|
#20
|
||||
|
||||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|