
04-11-2011, 12:16 PM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by VanHuek
I am wondering are you able to integrate this into a thread?
|
There are 3 possible ways I can think of...
1. You can link to a form.
HTML Code:
http://www.your-site.com/forum/misc.php?do=form&fid=1
2. You can add the form at the top of your thread, with a vBulletin plugin.
Create plugin with hook showthread_complete
PHP Code:
if ($threadid == 112) { $poll .= '<iframe src="misc.php?do=form&fid=1&embed=1" style="width: 100%; height: 400px; margin: 10px;"></iframe>'; }
Change 112 for appropriate threadid.
3. You could redirect 'New Replies' to the form.
Create plugin with hook newreply_form_complete
PHP Code:
if (in_array($threadinfo[threadid], array(1,2,3))) { header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ; }
Change 1,2,3 for appropriate threadids.
|