The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
please help me with code
my query: Code:
$x = $vbulletin->db->query_read(" SELECT * FROM " . TABLE_PREFIX . "thread as t INNER JOIN " . TABLE_PREFIX . "post as p ON (t.threadid = p.threadid) WHERE forumid IN(xx) ORDER BY p.post_thanks_amount DESC LIMIT 0 , 5"); while ($xxx = $vbulletin->db->fetch_array($x)) { $mymessage = $xxx['threadid']; $threaddm->do_set('pagetext', $mymessage); } $threaddm->do_set('forumid', $to_forum_1); $threaddm->do_set('postuserid', $postuserid); $threaddm->do_set('userid', $postuserid); $threaddm->do_set('username', $postusername); $threaddm->do_set('title', $title); $threaddm->do_set('allowsmilie', $allowsmilie); $threaddm->do_set('visible', $visible); $tid = $threaddm->save(); i want to ask who can help me: how can i get 5 threadid and put it on 'pagetext' it's mean 1 new thread with 5 threadid (i got from above query) on its best regard, |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|