![]() |
one line plugin not working
When I submit a new reply I get the following error:
Quote:
Code:
$db->query("UPDATE user SET available = available + 100 WHERE userid = $bbuserinfo[userid]"); Code:
$db->query("UPDATE user SET available = available + 100 WHERE userid = $vbulletin->userinfo[userid]"); |
1) $db is not within the Scope of build_new_post(); $vbulletin is.
2) $bbuserinfo does not exist in vB 3.5 3) You cant use $vbulletin->userinfo within an evaluated String - break out of it or use {} But it might be a good idea to use userdata_postsave anyway to avaoid an additional Query. |
Quote:
Would it be something like this? Code:
$uid = $vbulletin->userinfo[userid]; |
Actually it would be smth. like this in the Datamanager
PHP Code:
|
thanks for helping out KirbyDE. Is there any place I can look to see more detailed documentation as to what can be used in which hooks?
|
Yes - the PHP files :)
|
Can you tell me which php file has userdata_postsave hook in it?
|
class_dm_user.php
|
Thank You
|
All times are GMT. The time now is 03:42 PM. |
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:
|