![]() |
Join Date "if statement" not working?
Can anyone see what's wrong with this? I can't see why it won't work..
PHP Code:
|
Quote:
|
In the newpost hook as a plugin.
|
$userinfo[joindate] is not valid ;)
$vbulletin->userinfo['joindate'] or $this->userinfo['joindate'] |
Both of those cause this:
Fatal error: Call to a member function on a non-object in /blah blah/etc That didn't happen before, but neither did the code that was supposed to execute. |
What or where are you trying to hack / plug this in?
|
I'm putting it the newpost_process plugin. If a member signed up prior to New Years then some code is executed when they post. I know the code works because it worked fine before I added the cutoff date do it.
Basically I just need to pull the members joindate in unix form (your standard timestamp) and compare it to the value specified as $newyear as seen in the code. Thanks for any ideas. :) |
try without the single quotes.
|
Found the problem. Apparently when trying both of those I did a find and replace and accidentally replaced something that was already there.
Works now! Thanks for the help! |
All times are GMT. The time now is 04:16 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:
|