Search "All" has an image issue

The search-results page I’m using works successfully, when searching for ‘video’, and ‘images’ separately. And when I search “All”, both ‘video’ and ‘images’ are returned successfully in the results now (thanks for previous help), however, the image thumbnail that appears in the ‘image’ results, doesn’t appear in the ‘All’ results. I copied the code from ‘Image Search’ to ‘All Search’, so I’m not sure why the image has a place holder, instead of the picture (see attached example) Here’s the revised code:

<!--Begin 'VIDEO' Search List-->
<div id="content-list">
<ul class="content-list-thumb" style="margin-top: 13px;">
<span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br />

<!-- Add an onclick feature that first checks to see if you need to use purchase credits. -JG -->
<!--<li><a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 635]"><img src="../uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li>-->
<!--<li><a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="../uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li>-->
</ul>
<ul class="content-list-info">
<!--<li><h4><span style="float:none;width:590px;text-align:center;color: #800000;">[var.lang_title]:</span>&nbsp;&nbsp;<a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></a></h4></li>-->
<table style="border:none">
<tr>
<td width="120px"><img src="../uploads/thumbs/[blkfeatured.video_id;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></td>
<td width="1400px"><h4><span style="float:none;width:1590px;text-align:center;color: #800000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[var.lang_title]:&nbsp;&nbsp;&nbsp;</span><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></h4></td>
</tr>
</table>
<br /><br />

<!--<li><b>[var.lang_description]:&nbsp;</b><!--[blkfeatured.description;htmlconv=no;block=div;ope=max:68;comm]--></li>-->
<li><!--<span class="font4_12">[var.lang_tags]:&nbsp;</span>--></li>
<li><!--<b>[var.lang_comments] - [var.lang_responses]:&nbsp;</b>--><!--(<!--[blkfeatured.comments;block=div;ope=max:80;comm]-->)--></li>
</ul>
[onload;block=div;when [var.type_videos]=1;]
</div>
</form>
<!--End Video Search-->


<!--Begin 'IMAGE' Search List-->
<div id="content-list">
<ul class="content-list-thumb" style="margin-top: 13px;">
<span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br />
</ul>

<ul class="content-list-info">
<table style="border:none">
<tr>
<td width="120px"><a href="view-image/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="[blkfeatured.media_image;block=div]" alt="[var.get_type_word] Image" width="120" height="90" border="0" /></a></td>
<td width="1400px"><h4><span style="float:none;width:1590px;text-align:center;color: #800000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[var.lang_title]:&nbsp;&nbsp;&nbsp;</span><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></h4></td>
[onload;block=div;when [var.type_images]=3;]
</tr>
</table>
</ul>
</div>
<!--End Image Search-->


<!--Begin 'ALL' Search List-->
[blkfeatured;block=begin]
<div id="content-list">
<ul class="content-list-thumb" style="margin-top: 13px;">
&nbsp;&nbsp;<span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br />
</ul>

<div class="content-list-info">
<table style="border:none">
<tr>
<td width="120px"><img src="../uploads/thumbs/[blkfeatured.video_id;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></td>
<td width="1400px"><h4><span style="float:none;width:1590px;text-align:center;color: #800000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[var.lang_title]:&nbsp;&nbsp;&nbsp;</span><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></h4></td>
</tr>
</table>
</div>

<div class="content-list-info">
<table style="border:none">
<tr>
<td width="120px"><a href="view-image/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="[blkfeatured.media_image;block=div]" alt="[var.get_type_word] Image" width="120" height="90" border="0" /></a></td>
<td width="1400px"><h4><span style="float:none;width:1590px;text-align:center;color: #800000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[var.lang_title]:&nbsp;&nbsp;&nbsp;</span><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></h4></td>
[onload;block=div;when [var.type_images]=3;]
</tr>
</table>
</div>
</div>
[blkfeatured;block=end]
<!--End All Search-->

(The attached example shows an “All” search. “june28-9” is a video thumbnail, and “June35” is an image thumbnail).
Any help will be appreciated.

compare the image URLs and change them to the appropriate path, depending on the type.

Thank you for your reply.

Regarding comparing the URL’s, what puzzling to me is that, in my code above, in the
“Begin ‘IMAGE’ Search List”
it has:

<a href="view-image/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="[blkfeatured.media_image;block=div]" alt="[var.get_type_word] Image" width="120" height="90" border="0" /></a>

and works successfully when an ‘Image’ search is performed.

But under “Begin ‘All’ Search List”
it has:

 <a href="view-image/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="[blkfeatured.media_image;block=div]" alt="[var.get_type_word] Image" width="120" height="90" border="0" /></a>

which looks identical to me, but shows this instead, when I do a view-source look:

<img src="../uploads/thumbs/0.jpg" alt="video pic" width="120" height="90" border="0" />

So, any additional help will be appreciated. Much thanks again.

Those entries in square-brackets are being substituted with values, so although the source looks the same the key is what values are being inserted into those positions by your search routine.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.