The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
|
#2
|
||||
|
||||
Quote:
|
#3
|
||||
|
||||
In the newpost hook as a plugin.
|
#4
|
||||
|
||||
$userinfo[joindate] is not valid
$vbulletin->userinfo['joindate'] or $this->userinfo['joindate'] |
#5
|
||||
|
||||
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. |
#6
|
||||
|
||||
What or where are you trying to hack / plug this in?
|
#7
|
||||
|
||||
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. |
#8
|
||||
|
||||
try without the single quotes.
|
#9
|
||||
|
||||
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! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|