Now that the thickbox is working, I have modified image_upload_settings.php so that it uses smarty variables. In my link_summary.tpl, I have added this:
PHP Code:
{if $pagename neq "story"}
<a href="{$story_url}"><img src="{$module_imageupload_thumbnail_src}/{$module_imageupload_image_filename}" /></a>
{/if}
{if $pagename eq "story"}
<div><a href="{$module_imageupload_thumbnail_src}/{$module_imageupload_image_filename}" title="{$module_imageupload_image_caption}" class="thickbox"><img border="1" src="/modules/image_upload/plugins/thumb.php?img={$module_imageupload_image_filename}&w=150&h=150" alt="" /></a><center><span style="font: normal 10px verdana, arial;">(click image to enlarge)</span></center></div>
{/if}
This allows me to have the image thumbnail link to the story on the 'upcoming' and 'published' pages, but on the story page thickbox is invoked.
the problem is that in the thickbox, it shows the thumbnail (150x150 instead of the full size pic. Is there something wrong with the above code?
If I disable the smarty variables and comment out my code above, thickbox displays as it should.
Another interesting thing, with the code above enabled, if I hover over the pic on the story page, I get a link to the thumbail generation code:
http://www.mysite.com/modules/image_...50/img_739.jpg
According to the code, shouldn't it be showing as:
http://www.mysite.com/images/img_739.jpg
??