
06-29-2009, 02:24 AM
|
|
|
Join Date: Dec 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by bananalive
- import attached product file
- Create a Custom Question
- PHP code:
PHP Code:
$answer = '<input type="text" id="thumbnailurl" name="thumbnailurl" value="'.htmlspecialchars($newpost[thumbnailurl]).'" />';
- Form Hook: Before Submit:
PHP Code:
$vbulletin->input->clean_gpc('p', 'thumbnailurl', TYPE_STR); $newpost['thumbnailurl'] =& $vbulletin->GPC['thumbnailurl'];
|
- I had version 3.7 so I uploaded the new one you posted anyway and over-wrote the current.
- I created a custom question and in the PHP box I put:
$answer = '<input type="text" id="thumbnailurl" name="thumbnailurl" value="'.htmlspecialchars($newpost[thumbnailurl]).'" />';
- Form Hook Before Submit I put:
$vbulletin->input->clean_gpc('p', 'thumbnailurl', TYPE_STR);
$newpost['thumbnailurl'] =& $vbulletin->GPC['thumbnailurl'];
- In the new question box I created I tried pasting an image url both with and without [img] tags but no thumbnail.
|