News:

Wondering if this will always be free?  See why free is better.

Main Menu

Thumbnail on Topic Listing

Started by SMFHacks.com Team, April 04, 2008, 01:05:48 PM

Previous topic - Next topic

vbgamer45

It is the new theme that the coding is different. You would need to make that 1st edit to Studio messageindex.template.php
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

AlanDewey

Causing lots of electrons to push each other around since 1985.

vbgamer45

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

shadav

also any other mods that you have installed you will need to either uninstall and reinstall or use the parse button on the mod's pages and do all the template edits manually to the new theme.

Auto Man

It is a very nice mod. I have been using it for two years on smf2.0.13 but suddenly it doesn't show effect. I tried to chase the check but still the same.

   I have put a file from another good working website. But still the same.

   I have two attachments. This will be able to see if there are any errors or if there are other related files.

    Thanks in advance.

(auto-nkp.com)

Auto Man

Quote from: Auto Man on May 10, 2021, 08:13:39 PM
It is a very nice mod. I have been using it for two years on smf2.0.13 but suddenly it doesn't show effect. I tried to chase the check but still the same.

   I have put a file from another good working website. But still the same.

   I have two attachments. This will be able to see if there are any errors or if there are other related files.

    Thanks in advance.

(auto-nkp.com)

Fixed it...

hxxp:picture.in.th/id/309d31f53b0c7bb2758410f010b2c81c [nonactive]

vbgamer45

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

aegersz

#527
I was trying this mod out but instead of thumbnail sized entries, it actually puts the full size whole image in (whether it's an inline image or a large attachment), as shown below:

The mod also works without checking the box on the Admin > Boards > Modify Boards UNTIL I checked at least one - is that right ?

It's a neat mod if only the images were all the same size - how can I set them to one particular size ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

aegersz

#528
I figured it out - I had to set it via Admin »Modification Settings »Miscellaneous to:

Thumbnail Topic Height: 23

Thumbnail Topic Width:  22

I suggest that you put this in the mod description as a settings that you will need to review.

Also (again), the Thumbnails check box is inconsistent - it only starts working when at least one board is checked.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

AlanDewey

I just upgraded to SMF 2.1.1   

I really miss this great mod  :-[

Many of us will be very happy when you update it for 2.1.1     :D
Causing lots of electrons to push each other around since 1985.

vbgamer45

Its on my to do list at some point. Hoping to make hooks based.
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

WarlockWeary

Quote from: AlanDewey on February 18, 2022, 05:16:34 PMI just upgraded to SMF 2.1.1   
I really miss this great mod  :-[
Many of us will be very happy when you update it for 2.1.1     :D

This is main reason I am still on SMF 2.0.19 !
Hope you guys make this for 2.1.1  :)
Check out Android Watch Makers !
100's Of Watch Faces For your Android Watch!
https://www.android-watchmakers.com/

vbgamer45

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

@rjen

Quote from: vbgamer45 on July 07, 2022, 05:29:28 PMAdded support for SMF 2.1.x

Hmm, installs without errors on 2.1.2 and then errors on the Messageindex...

Unknown column 'memf.real_name' in 'field list'
Bestand: C:\xampp\htdocs\vanilla\Sources\MessageIndex.php
Regel: 361

Something is not quite right here...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Doug Heffernan

Quote from: @rjen on July 08, 2022, 06:39:12 AMHmm, installs without errors on 2.1.2 and then errors on the Messageindex...

Unknown column 'memf.real_name' in 'field list'
Bestand: C:\xampp\htdocs\vanilla\Sources\MessageIndex.php
Regel: 361

Something is not quite right here...

I could reproduce this as well. To fix it change the whole query starting from line 361 till 397 of the aforementioned file, with the following code:

$result = $smcFunc['db_query']('substring', '
SELECT
t.id_topic, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board,
' . ($user_info['is_guest'] ? '0' : 'COALESCE(lt.id_msg, COALESCE(lmr.id_msg, -1)) + 1') . ' AS new_from,
' . ($enableParticipation ? ' COALESCE(( SELECT 1 FROM {db_prefix}messages AS parti WHERE t.id_topic = parti.id_topic and parti.id_member = {int:current_member} LIMIT 1) , 0) as is_posted_in,
' : '') . '
t.id_last_msg, t.approved, t.unapproved_posts, ml.poster_time AS last_poster_time, t.id_redirect_topic,
ml.id_msg_modified, ml.subject AS last_subject, ml.icon AS last_icon,
ml.poster_name AS last_member_name, ml.id_member AS last_id_member,' . (!empty($settings['avatars_on_indexes']) ? ' meml.avatar, meml.email_address, memf.avatar AS first_member_avatar, memf.email_address AS first_member_mail, COALESCE(af.id_attach, 0) AS first_member_id_attach, af.filename AS first_member_filename, af.attachment_type AS first_member_attach_type, COALESCE(al.id_attach, 0) AS last_member_id_attach, al.filename AS last_member_filename, al.attachment_type AS last_member_attach_type,' : '') . '
COALESCE(meml.real_name, ml.poster_name) AS last_display_name, t.id_first_msg,
mf.poster_time AS first_poster_time, mf.subject AS first_subject, mf.icon AS first_icon,
mf.poster_name AS first_member_name, mf.id_member AS first_id_member,
COALESCE(memf.real_name, mf.poster_name) AS first_display_name, ' . (!empty($modSettings['preview_characters']) ? '
SUBSTRING(ml.body, 1, ' . ($modSettings['preview_characters'] + 256) . ') AS last_body,
SUBSTRING(mf.body, 1, ' . ($modSettings['preview_characters'] + 256) . ') AS first_body,' : '') . 'ml.smileys_enabled AS last_smileys, mf.smileys_enabled AS first_smileys, IFNULL(big.id_attach, 0) AS big_id, big.filename AS big_filename, big.width AS big_width, big.height AS big_height,
IFNULL(thn.id_attach, 0) AS thn_id, thn.filename AS thn_filename, thn.width AS thn_width, thn.height AS thn_height, IFNULL(thn.id_attach, mf.body) AS mainpost, t.id_board
' . (!empty($message_index_selects) ? (', ' . implode(', ', $message_index_selects)) : '') . '
FROM (' . $sort_table . ') as st
JOIN {db_prefix}topics AS t ON (st.id_topic = t.id_topic)
JOIN {db_prefix}messages AS ml ON (ml.id_msg = st.id_last_msg)
JOIN {db_prefix}messages AS mf ON (mf.id_msg = st.id_first_msg)

LEFT JOIN {db_prefix}attachments AS big ON (big.id_msg = mf.id_msg AND big.attachment_type = 0)
LEFT JOIN {db_prefix}attachments AS thn ON (thn.id_attach = big.id_thumb)
    LEFT JOIN {db_prefix}members AS meml ON (meml.id_member = ml.id_member)
LEFT JOIN {db_prefix}members AS memf ON (memf.id_member = mf.id_member)' . (!empty($settings['avatars_on_indexes']) ? '
LEFT JOIN {db_prefix}attachments AS af ON (af.id_member = memf.id_member)
LEFT JOIN {db_prefix}attachments AS al ON (al.id_member = meml.id_member)' : '') . '' . ($user_info['is_guest'] ? '' : '
LEFT JOIN {db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {int:current_member})
LEFT JOIN {db_prefix}log_mark_read AS lmr ON (lmr.id_board = {int:current_board} AND lmr.id_member = {int:current_member})') . '
' . (!empty($message_index_tables) ? implode("\n\t\t\t\t", $message_index_tables) : '') . '
' . (!empty($message_index_wheres) ? ' WHERE ' . implode("\n\t\t\t\tAND ", $message_index_wheres) : '') . '
GROUP BY t.id_topic, big.id_attach, thn.id_attach, t.num_replies, t.locked, t.num_views, t.is_sticky, t.id_poll, t.id_previous_board, lt.id_msg, lmr.id_msg, t.id_last_msg, t.approved, t.unapproved_posts, ml.poster_time,
t.id_redirect_topic, ml.id_msg_modified, ml.subject, ml.icon, ml.poster_name, ml.id_member, meml.real_name, t.id_first_msg, mf.poster_time, mf.subject, mf.icon, mf.poster_name, mf.id_member, memf.real_name, ml.smileys_enabled,
mf.smileys_enabled, big.filename, big.width, .big.height, thn.filename, thn.width, thn.height, mf.body, id_board
ORDER BY is_sticky' . ($fake_ascending ? '' : ' DESC') . ', ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC'),
$message_index_parameters
);

Quote from: WarlockWeary on July 02, 2022, 08:25:29 PMThis is main reason I am still on SMF 2.0.19 !
Hope you guys make this for 2.1.1  :)

@vbgamer45 has updated this to work with the 2.1.x branch as well. Now you can upgrade your forum to 2.1.2 :)

@rjen

Quote from: Doug Heffernan on July 08, 2022, 07:21:07 AMI could reproduce this as well. To fix it change the whole query starting from line 361 till 397 of the aforementioned file, with the following code:

I'll just wait for the mod to be updated  ;)
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Steve

But if it's a mod you like, why wait?  :P
DO NOT pm me for support!

@rjen

Quote from: Steve on July 08, 2022, 10:25:33 AMBut if it's a mod you like, why wait?  :P

Because I like it when a mod can be installed and removed without having to make code changes myself
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Steve

Ah ... I'm the same way, despite what I posted.  ;D
DO NOT pm me for support!

Doug Heffernan

Quote from: @rjen on July 08, 2022, 10:45:07 AMBecause I like it when a mod can be installed and removed without having to make code changes myself

That is the best way to go about it imo.

The code I posted was for temporarily use till the new package is officially uploaded.

Advertisement: