is there a setting i need to configure in admincp? I'm trying to add a forum thread useing the datamanger_init, and save is returning a new id, but when i try to visit the thread i get a permissions error. it's on 3.7.2
|
Quote:
|
Read my topic on vbulletin.com:
http://www.vbulletin.com/forum/showt...23#post1578823 |
Quote:
this works but how can I also set the prefix? added a prefix line returns an error --------------- Added [DATE]1241372989[/DATE] at [TIME]1241372989[/TIME] --------------- found it. you have to use "prefixid" & you set it to the prefix var. like this $threaddm->set('prefixid', 'report'); I'm using this for our mod forum so alerted posts or pms have prefixes |
how can i attach file when i want to create a thread with data manager?
i think that i must use class_dm_attachment.php but how? can anyone help me? (i am new to vb programming!) |
I was wondering if someone could tell me what is wrong with my script. All I am trying to do is post a new message in an existing thread. When I put this script in a php page and hit it from my browser, I don't get any error, but I also don't get a message posted. I don't even see the "save returned" message in my browser. If I change some things (like the path to class_dm_threadpost), I get an error, so I know it is running something.
As for the echo not working, it seems like as soon as I put those require_once at the top of my file, I can't echo any messages anymore. But I only have those echos in there because the message isn't being posted to my thread. PHP Code:
|
Do you have access to php.ini and/or PHP error log? Check the error log.
If echo does not work, try the PHP error_log() function. You may also find the var_export() function useful. I have almost the same code working with vb 3.6.1. What is your version? |
I am running 3.7.4 PL1.
If I start with an empty php file and just put an echo statement, I see the message when I hit the page. Anything I echo before the line that includes class_dm_threadpost.php I see output, but anything after I don't. For example: PHP Code:
PHP Code:
I am using godaddy, so I don't know how I can access the php error file. I tried using an set_error_handler as described on this page: http://us3.php.net/set-error-handler , to catch any errors, but still I got no output. It is bizarre. It is like including that class_dm_threadpost is killing everything. I have not modified any of my vbulletin files, so it should be whatever came with 3.7.4. var_export() behaves the same way as echo. Before that require_once line it works, after it, I see nothing. --------------- Added [DATE]1251815891[/DATE] at [TIME]1251815891[/TIME] --------------- Doh. I figured it out. I have to include another file as well (class_dm.php). It seems like without it, something in the class_dm_threadpost was unhappy. This works: PHP Code:
|
Quote:
it's updated. Anyone have any ideas on how I can resolve this. |
Did you try build_thread_counters?
|
All times are GMT. The time now is 10:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|