Advertisement:

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

Offline confuseamuse

  • Jr. Member
  • **
  • Posts: 145
Re: Thumbnail on Topic Listing
« Reply #460 on: November 04, 2017, 05:43:09 PM »
I did manage to get this working on my forum. The functionality to add thumbnails from [img] tags didn't work, but it does for attachments.

Is there a way to add an NSFW tag to attachments? People like to take liberties on the internet.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #461 on: November 04, 2017, 06:02:58 PM »
There is not. This mod just focuses on attachments and image tags in posts.
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 natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Thumbnail on Topic Listing
« Reply #462 on: May 25, 2018, 08:48:15 AM »
I can not see thumbnails on mobile phone, only empty spaces?
How can I fix that?
Thanks.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #463 on: May 25, 2018, 10:40:06 AM »
It should work do you have a responsive mode installed?
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 natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Thumbnail on Topic Listing
« Reply #464 on: May 26, 2018, 12:15:18 AM »
Yes, I have responsive mode installed, and there was a little problem with Thumbnail on topic listing package when installed,
I have to change peace of code manually, on: Themes/default/MessageIndex.template.php, maybe I did that wrong?

Before installing mods it looked like:

Code: [Select]
// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<th scope="col" class="first_th" width="8%" colspan="2">&nbsp;</th>

now it is:

Code: [Select]
// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
<th scope="col" class="first_th hidden" width="8%" colspan="', $context['show_thumbnails'] ? 3 : 2, '">&nbsp;</th>

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #465 on: May 26, 2018, 12:21:59 AM »
Yeah it's hidden now with that responsive mod.
"hidden" if you take that part out it will appear.
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 natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Thumbnail on Topic Listing
« Reply #466 on: May 29, 2018, 01:56:05 AM »
I removed 'hidden' but images did not appear ...
Any other suggestion?
Thanks.
« Last Edit: May 29, 2018, 02:18:27 AM by natasa (NT) »

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #467 on: May 29, 2018, 08:01:27 AM »
I would also check the td
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 natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Thumbnail on Topic Listing
« Reply #468 on: May 29, 2018, 08:26:48 AM »
Which td?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #469 on: May 29, 2018, 08:34:21 AM »
The one with the thumbnail code
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 natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Thumbnail on Topic Listing
« Reply #470 on: May 30, 2018, 02:42:05 AM »
I create new test subdomain with new installation (smf-2-0-15) and only two mods: Responsive curve and Thumbnail Topic Mod.
I only removed 'hidden' and did not change anything else, and still do not see thumbnail images on mobile.
I am not programmer, and do not know how to fix this :P ..

Offline natasa (NT)

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Female
Re: Thumbnail on Topic Listing
« Reply #471 on: May 30, 2018, 05:29:03 AM »
Images appeared, later, ... for some reason  ::)
« Last Edit: May 30, 2018, 05:58:00 AM by natasa (NT) »

Offline rubbishnor

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Thumbnail on Topic Listing
« Reply #472 on: June 04, 2018, 05:22:42 AM »
please help me

 smf version 2.0.15

 i cannot find 

Code: [Select]
$context = array();
on index.php then can not replace with

Code: [Select]
$context = array();
$context['photo_boards'] = isset($modSettings['photo_boards']) ? explode(',', $modSettings['photo_boards']) : array();




Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #473 on: June 04, 2018, 08:20:32 AM »
Find
Code: [Select]
// Unserialize the array of pretty board URLs
$context = array('pretty' => array(
'action_array' => unserialize($modSettings['pretty_action_array']),
'board_urls' => unserialize($modSettings['pretty_board_urls']),
'db_count' => 0,
));
Add after
Code: [Select]
$context['photo_boards'] = isset($modSettings['photo_boards']) ? explode(',', $modSettings['photo_boards']) : array();
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 rubbishnor

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Thumbnail on Topic Listing
« Reply #474 on: June 05, 2018, 04:47:37 AM »
 vbgamer45

thank you very much for your kindly support

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #475 on: June 05, 2018, 06:28:11 AM »
Glad to help.
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 jafonseca

  • Semi-Newbie
  • *
  • Posts: 57
Re: Thumbnail on Topic Listing
« Reply #476 on: June 05, 2018, 01:00:40 PM »
Error in database when I go to board


Expression #30 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hdclasic.big.id_attach' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Archivo: /home/uhdcl/public_html/Sources/MessageIndex.php
LĂ­nea: 421

mysql v5.7

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,170
  • Gender: Male
    • i30 Owners Club
Re: Thumbnail on Topic Listing
« Reply #477 on: June 05, 2018, 01:17:00 PM »
^ search other posts in this topic - it's been covered before.

Offline jafonseca

  • Semi-Newbie
  • *
  • Posts: 57
Re: Thumbnail on Topic Listing
« Reply #478 on: June 06, 2018, 04:06:00 AM »
Ok, Itry with this

remove ONLY_FULL_GROUP_BY, I used the commands:

mysql> set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
mysql> set session sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
mysql> exit;

but  then Forum cant conect to database   :-\ :-\

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,570
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Thumbnail on Topic Listing
« Reply #479 on: June 06, 2018, 08:19:03 AM »
I generally edit it from the my.cnf file or my.ini
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