Quote:
Originally Posted by dlitec
hmm sorry its me again
i wonder if its possible to vote threads with this too?!
i tried this:
PHP Code:
$postdm->set('votetotal', $voted);
but recieved the standard error:
Field votetotal is not defined in $validfields in class vB_DataManager_Post in [path]/includes/class_dm.php
anyone has a clue?
edit:
extending in class_dm.php with this variable works.. no error anymore, but the voting is not transfered. do i really have to write into the DB directly? or is there a way?
|
This is really offtopic for this thread, but if you want to rate threads, I'd check out class_dm_threadrate.php. If you want to vote in polls, class_dm_pollvote.php probably has what you need.
edit:
http://members.vbulletin.com/api/vBu...drate.php.html
http://members.vbulletin.com/api/vBu...lvote.php.html