The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Addon - Reports via posts
im trying to come up with a custom solution so that if someone reports a thread this addon would make a post inside a thread containing the reported data.. it seem to work alright but once you click submit you go to the next page and all you see is one million errors.. if someone can point me in the right direction I would really appreciate it..
http://pastebin.com/Vp6JMFJr or raw http://pastebin.com/raw.php?i=Vp6JMFJr |
#2
|
|||
|
|||
I don't know if I understand it all, but there's something wrong with this section:
Code:
Originally Posted by . $vbulletin->userinfo['username . ']' .$vbulletin->GPC['reason'] .' I think what you want is something like: Code:
Originally Posted by ' . $vbulletin->userinfo['username'] . ' '.$vbulletin->GPC['reason'] .' |
#3
|
|||
|
|||
I have updated the post code because vbulletin was messing it up with code tags.. let me know..
|
#4
|
||||
|
||||
What are a couple of the one million errors you are getting?
|
#5
|
|||
|
|||
you can try it out for yourself and see.. I also tested commenting out the print_r and exit, no luck..
errors like this Code:
Fatal error: Existing data passed is not an array Called set_existing in [path]/includes/class_dm_threadpost.php on line 582 Called post_save_each_post in [path]/includes/class_dm_threadpost.php on line 819 Called post_save_each in [path]/includes/class_dm.php on line 917 Called save in [path]/includes/class_dm_threadpost.php on line 797 Called save in [path]/report.php(131) : eval()'d code on line 55 Called eval in [path]/report.php on line 131 in [path]/includes/class_dm.php on line 265 #0 vb_error_handler(256, Existing data passed is not an array |
#6
|
|||
|
|||
When you call set_info() in these two lines:
PHP Code:
They are expecting $foruminfo and $threadinfo arrays as the data, not ids. That's what's causing the errors later. But if you say it's working in spite of these errors, then you may want to try just commenting out those lines and seeing if it works without them. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|