Advertisement:

Author Topic: Thumbnail on Topic Listing  (Read 179969 times)

Offline improv

  • Jr. Member
  • **
  • Posts: 395
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #260 on: June 20, 2010, 07:20:16 PM »
Maybe sounds like forever, it has been months ago since I've asked for that function.
Is there any reason why you are not adding it?
Or would it become a premium version instead?
I would buy it!

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,228
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #261 on: June 20, 2010, 08:08:12 PM »
No time to add it been focusing on other projects. Not really extending my mods mostly just doing bug fixes.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Klauser

  • Semi-Newbie
  • *
  • Posts: 67
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #262 on: July 28, 2010, 10:19:20 AM »
Hello,

how I get this working with the Babylon Theme ? I can not place the code without messing up the index  :P

Thank you and regards

MessageIndex.template.php

Code: [Select]
// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<td width="9%" colspan="2"></td>
<td><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[70], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="14%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[109], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[110], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="4%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[301], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>
<td width="24%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=last_post', $context['sort_by'] == 'last_post' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt[111], $context['sort_by'] == 'last_post' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" border="0" />' : '', '</a></td>';

// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<td width="24" valign="middle" align="center">
<input type="checkbox" onclick="invertAll(this, this.form, \'topics[]\');" class="check" />
</td>';
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
<td width="4%" valign="middle" align="center"></td>';
}
// No topics.... just say, "sorry bub".

Thumbnail on Topic Listing - Installation Instructions for 1.1.11

Code: [Select]
./Themes/default/MessageIndex.template.php
Find: [Select]

<td width="9%" colspan="2" class="catbg3"></td>

Replace With: [Select]

<td width="9%" colspan="', $context['show_thumbnails'] ? 3 : 2, '" class="catbg3"></td>


Find: [Select]

echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="5%">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
</td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>

Replace With: [Select]


echo '
<tr>
<td class="windowbg2" valign="middle" align="center" width="5%">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
</td>
<td class="windowbg2" valign="middle" align="center" width="4%">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>';
// Thumbnail Topic Mod
if ($context['show_thumbnails'])
{
echo '<td class="windowbg2" valign="middle" align="center">';

$imagefound = false;

foreach ($topic['image'] as $image)
{
if ($imagefound == true)
break;

if (isset($image['id']))
{

echo '<a href="', $topic['first_post']['href'], '"><img src="', $image['url'], '" width="', $image['width'], '" height="', $image['height'], '" alt="" /></a>';
$imagefound = true;
}
}

echo '</td>';
}

// End Thumbnail Topic Mod

echo '


Offline improv

  • Jr. Member
  • **
  • Posts: 395
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #263 on: August 04, 2010, 11:08:18 AM »
Yay I found out how to use it on specific board.

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #264 on: September 07, 2010, 01:27:08 PM »
Yay I found out how to use it on specific board.

Why not share

Offline jasumi

  • Newbie
  • *
  • Posts: 1
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #265 on: September 18, 2010, 06:01:24 PM »
Hello,

Firstly, thank you for the great mod, it's just what I needed. But, it is not functional on my custom theme. I have tried using my own substandard CSS scripting abilities and have come about nothing but trouble when trying to alter MessageIndex.template.php (SMF 1.1.11). All I intended for was to edit the Message Icon to display the thumbnail attachment, and have had nothing but strange display issues ???


Thanks in advance to anyone who responds, I attached the file below:

Offline allylaurente

  • Newbie
  • *
  • Posts: 7
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #266 on: October 08, 2010, 03:07:59 PM »
Tried to install this Mod in my SMF1.1.11 using extreme6 theme. Installing is successful but nothing happens. Any idea to modify?

Thanks in Advance.

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #267 on: October 08, 2010, 03:11:27 PM »
Are the images showing up?

Offline allylaurente

  • Newbie
  • *
  • Posts: 7
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #268 on: October 08, 2010, 03:33:57 PM »
Are the images showing up?

No images at all. Its like nothing happens after i install.

Please help.

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #269 on: October 08, 2010, 03:36:12 PM »
Go and attach an image to a new post and see if it show up

Offline allylaurente

  • Newbie
  • *
  • Posts: 7
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #270 on: October 08, 2010, 03:42:25 PM »
I just did but still nothing happens.

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #271 on: October 08, 2010, 03:44:25 PM »
See if the mod is working under the default theme

Offline allylaurente

  • Newbie
  • *
  • Posts: 7
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #272 on: October 08, 2010, 03:54:11 PM »
I can't do it right now as people are accessing the site. Hoping someone tried this mod on SMF 1.1.11 using extreme6 theme.


Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #273 on: October 08, 2010, 03:55:59 PM »
go into your profile and you can do it that way.  You changing the  theme that  you use in your profile does not affect your other users.
« Last Edit: October 08, 2010, 04:04:06 PM by madman71 »

Offline allylaurente

  • Newbie
  • *
  • Posts: 7
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #274 on: October 08, 2010, 04:24:16 PM »
Its working on default theme.  ;)

I thought it will also show on Insert Image on the topic :-[

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #275 on: October 08, 2010, 04:53:25 PM »
then you'll need to verify that the code was indeed written to your extreme6 theme files.  I suspect that it was not.

http://custom.simplemachines.org/mods/index.php?mod=1151

use the mod parser  (link above) to see the edits needed for your theme.

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #276 on: October 08, 2010, 04:55:44 PM »
Does your extreme6 theme have a MessageIndex.template.php ? if so,  this looks like the only file you need to add the mod code to.

Offline Evilboy23

  • Newbie
  • *
  • Posts: 1
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #277 on: October 19, 2010, 11:40:22 AM »
@improv can you share how to enable this mod on specific boards? I would love to have this mod but I don't want it in all the boards.

Offline Shades.

  • Jr. Member
  • **
  • Posts: 322
  • Gender: Male
  • AmericanRallies.com
    • AmericanRallies.com
Re: Thumbnail on Topic Listing (SMF 2.0 RC3 Support Added!)
« Reply #278 on: November 14, 2010, 07:13:03 PM »
@improv can you share how to enable this mod on specific boards? I would love to have this mod but I don't want it in all the boards.
Yes, please share! :)


Dream as if you'll live forever; Live as if you'll die today. - James Dean

Offline thomasjensen

  • Semi-Newbie
  • *
  • Posts: 11
Re: Thumbnail on Topic Listing (SMF 2.0 RC4 Support Added!)
« Reply #279 on: December 15, 2010, 06:14:18 AM »
I installed the mod succesfully and it´s working fine but...

when posting more than one attachment it will always show the image last ---> not showint the image but the standard paperclip.

Any idea why ?