The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
this possible?
what if it were multiple like 2 new threads. would like code to do it instead of through the front end. Thanks, |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
im not even sure. It's a start
i have a bunch of stuff in excel everyday and I can create code that converts the excel sheet to a php file so I figure instead of manually creating 5 threads. that i could do the whole excel to .php file then run the php script. but, 1.) i don't know PHP 2.) im not even sure where or how to run a php script so if i can figure out how to create threads in php and where to run it then i can do this whole process easily ie; an excel sheet to 5 threads everyday |
|
#4
|
|||
|
|||
|
I can't seem to get this to work..
its Forums > Sports > NBA NBA is 8 ie; /forums/forumdisplay.php?f=8 I just saved it has test.php and uploaded it to forums/ to run it. but it just says done and nothing. any ideas? Thanks. Code:
<?
$threaddm =& datamanager_init('Thread_FirstPost', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$forumdid= 8;
$foruminfo = fetch_foruminfo($forumid);
$threaddm->set_info('forum', $foruminfo);
$threaddm->set('forumid', $foruminfo['forumid']);
$threaddm->set('userid', Admin);
$threaddm->set('title', 'Test of Script');
$threaddm->set('pagetext', 'This was run from backend');
$threaddm->set('allowsmilie', 1);
$threaddm->set('visible', 1);
$threaddm->set('dateline', TIMENOW);
$threaddm->save();
?>
|
|
#5
|
|||
|
|||
|
The code itself outputs nothing by echo, print, etc. You have to put a echo or print at the end if you want it to output something.
|
|
#6
|
|||
|
|||
|
Quote:
i don't care about that. I mean its not working at all. It doesn't create a new thread in my NBA forum |
|
#7
|
||||
|
||||
|
You're not even including the vBulletin backend.
|
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
not sure what you mean. can you explain.
thanks, |
|
#10
|
|||
|
|||
|
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|