Ok guys! i manage to make the thumbnail to work perfectly with the "User Entered URL"
function !!
The way i work on my forum, is, i have sections that i want to display the thumbnails for each thread, so, in the option menu, i use "User Entered URL" and "Thumbnails Required" set to yes.
Now, u can also put the option "Thumbnails Required" to NO and it will also get automatically the thumbnail image you set up in the "No Thumbnail Replacement Image".
The way i made it work in my V4.1.1 is like this:
In New posting Templates / newthread
Find:
HTML Code:
<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
</div>
and paste after:
HTML Code:
<!---urlthumbnail--->
<vb:if condition="$show['thumbnailurl']">
<div class="blockrow">
<label for="thumbnailurl" class="full">{vb:phrase thumbnail_url}:</label>
<input type="text" name="thumbnailurl" id="thumbnailurl" class="primary full textbox" value="" maxlength="250" />
</div>
</vb:if>
<!---urlthumbnail--->
in editpost
find:
HTML Code:
<img id="posticon_preview" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" title="Selected post icon" />
</div>
and paste after:
HTML Code:
<!---autothumbnail--->
<vb:if condition="$show['thumbnailurl']">
<div class="blockrow">
<label for="thumbnailurl">{vb:phrase thumbnail_url}:</label>
<input type="text" name="thumbnailurl" id="thumbnailurl" class="primary textbox" value="{vb:raw threadinfo.thumbnailurl}" maxlength="250" />
</div>
</vb:if>
<!---/autothumbnail--->
In plugin manager for "Product : Thread Thumbnails"
in the : "New Thread - Save Thumbnail, Datamanager"
replace everything with this:
HTML Code:
if ($type == 'thread')
{
if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '0')
{
$dataman->setr('thumbnailurl', htmlspecialchars_uni($post['thumbnailurl']));
}
if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '2')
{
preg_match('/\[(img|IMG)\]\s*(https?:\/\/([^*\r\n]+|[a-z0-9\/\\\._\- !]+))\[\/(img|IMG)\]/', $post['message'], $matches);
$dataman->setr('thumbnailurl', $matches[1]);
}
if($vbulletin->options['thread_thumbnails_required'] == '1' && empty($post['thumbnailurl']))
{
if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '0')
{
$errors[] = $vbphrase['thumbnail_error_one'];
}
else if($vbulletin->options['thread_thumbnails_thumbnail_source'] == '2')
{
$errors[] = $vbphrase['thumbnail_error_two'];
}
}
}
Hope it helps a few of you