Attachments in Topics

Started by Nibogo, December 11, 2009, 09:59:33 AM

Previous topic - Next topic

Nibogo


Attachments in Topics v1.0 - NIBOGO
Add a new icon for topics with attachments and a pop-up to see all the attachments in that topic. (Only in the Message Index of every Board.)





Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customziation of your SMF.
o Thanks to Divecall he paid for the development of this mod and he let me publish it.
o Thanks to Arantor for his reporting bugs in the mod.

Features:
o Show an Attachment Icon (the clip) for topics with Attachments [Similar to vB Feature].
o Pop-Up showing all the attachments in that topic, showing:
       o Name
      o Size
       o Downloads
       o Link to the Post where the attachments was posted.      
o The Pop-Up is fully integrated with the Curve style.
o Show the ammount of attachments that have every topic when you set the cursor over the clip.

Languages:
- English/English-utf8
- Spanish_latin/Spanish_latin-utf8
- Spanish_es/Spanish_es-utf8

Compatibility:
- 1.1.X
- 2.0

Changelog:

Version 1.0 - Nov 22, 2009
- Uploaded to the Mod Site.

InfoStrides

Nice mods! it works fine. Thanks.


Arantor

I like this one too, it's a nice mod!


Eclipse16V

Nice Mod

Thanks

Here the German Lang:
// Attachments in Topic MOD
$txt['attachments_in_topic'] = 'Dateianhänge';
$txt['attachment_in_topic'] = 'Dateianhang';
$txt['attachments_this_topic'] = 'Dateianhänge in diesem Thema';
$txt['attachments_size'] = 'Größe';
$txt['attachment_dl'] = 'Downloads';
$txt['attachment_go'] = 'Gehe zum Beitrag';
$txt['attachment_none'] = 'Es sind keine Dateianhänge in diesem Thema';
$txt['attachment_download'] = 'Download Dateianhang';
I worked with:
SMF 2 in German

Shop:
SID Giessen


Nibogo

Quote from: Eclipse16V on January 15, 2010, 03:40:55 PM
Nice Mod

Thanks

Here the German Lang:
// Attachments in Topic MOD
$txt['attachments_in_topic'] = 'Dateianhänge';
$txt['attachment_in_topic'] = 'Dateianhang';
$txt['attachments_this_topic'] = 'Dateianhänge in diesem Thema';
$txt['attachments_size'] = 'Größe';
$txt['attachment_dl'] = 'Downloads';
$txt['attachment_go'] = 'Gehe zum Beitrag';
$txt['attachment_none'] = 'Es sind keine Dateianhänge in diesem Thema';
$txt['attachment_download'] = 'Download Dateianhang';


Thanks would be included in the next release

Quote from: JayinGR on January 15, 2010, 04:11:17 PM
Great Mod!!!  I like it alot.

Glad you like it!

Eclipse16V

Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

Leemy

I didnt see a link to "Download All Attachments"... Is this planned for the next release? It's the next logical step..


Leemy

Quote from: NIBOGO on March 22, 2010, 11:43:24 AM
Quote from: Leemy on March 21, 2010, 09:46:46 PM
I didnt see a link to "Download All Attachments"... Is this planned for the next release? It's the next logical step..

Are you serious??

That isn't logical and never is going to be added

Not sure why youre coming across as so harsh; maybe I wasnt clear-- I mean all attachments within the 1 topic.  If I am viewing 3 attachments that relate to the same topic, odds are i might be interested in downloading all three.  Why should the user have to click to download each individually? You're showing the list, but still requiring individual downloads.

Nibogo

That is the idea of the mod show the list the Download Link is just an additional feature, I don't need it for my forum, Isn't good for the performance of your forum and I want to keep the mod simple so no unless you're willing to pay for it

jmil

I am receiving the following error at the TOP of my page:

// Attachments in Topic $txt['attachments_in_topic'] = 'Attachments'; $txt['attachment_in_topic'] = 'Attachment'; $txt['attachments_this_topic'] = 'Attachments in this Topic'; $txt['attachments_size'] = 'Size'; $txt['attachment_dl'] = 'Downloads'; $txt['attachment_go'] = 'Go to the Post'; $txt['attachment_none'] = 'There are no Attachments in this Topic'; $txt['attachment_download'] = 'Download Attachment';

Any assistance please :) .

I parsed the Mod and installed it with no issues and it is working - Just this code is showing?

Version 1.1.11 Very Custom Theme!

jmil

Never mind - Lame Mistake - I should know better

Moved the Final "?>" to the end of the "Modifications.english.php" file

Sakae

This MOD is awesome.

Does anyone make it work with SMF 2.0 RC4?
http://www.tigrelog.com.br
l: simple p: machines

Biology Forums

I'm trying to parse this to 1.1.11 but I can't seem to find the code:

if (!empty($settings['seperate_sticky_lock']))

on my theme's messageindex.template.php?

Where else could I add the code?

// Attachments in Topic - Add the icon and pop-up
if ($topic['attachments'] !== 0){
    echo '
<a href="'.$scripturl.'?action=topicattach;topic='.

$topic['id'].'" onclick="return reqWin(this.href,500,200);"><img src="', $settings['images_url'],

'/icons/clip.gif" alt="', $topic['attachments'],' ',($topic['attachments'] == 1) ? $txt

['attachment_in_topic'] : $txt['attachments_in_topic'], '" title="', $topic['attachments'],' ',

($topic['attachments'] == 1) ? $txt['attachment_in_topic'] : $txt['attachments_in_topic'], '"

border="0" style="float: right;" /></a>';
}


aw06

Nice mod ... is it possible to show the icon on the Show unread posts since last visit. & Show new replies to your posts. Pages ?? Maybe even in the Recent Post section in the info Center
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

Quote from: aw06 on February 14, 2011, 07:09:21 PM
Nice mod ... is it possible to show the icon on the Show unread posts since last visit. & Show new replies to your posts. Pages ?? Maybe even in the Recent Post section in the info Center

BUMP
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth


Jessica.

Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

BaghdadGhost

Great mod thanks


arabic translation, AFTER installing do the following


in your /Themes/yourtheme/languages/modification.arabic-utf8.php (or modification.arabic.php if you are just arabic no utf-8)

before

?>


add

// Attachments in Topic
$txt['attachments_in_topic'] = 'مرفقات';
$txt['attachment_in_topic'] = 'المرفق';
$txt['attachments_this_topic'] = 'مرفقات في هذا الموضوع';
$txt['attachments_size'] = 'الحجم';
$txt['attachment_dl'] = 'التحميلات';
$txt['attachment_go'] = 'الذهاب الى الموضوع';
$txt['attachment_none'] = 'لايوجد اي مرفقات في الموضوع';
$txt['attachment_download'] = 'تنزيل المرفقات';



now /Themes/Yourtheme/MessageIndex.template.php

find

// Attachments in Topic Mod - Add the icon and pop-up just if we have attachments in this topic
if (!empty($topic['attachments']))
    echo '
<a href="'.$scripturl.'?action=topicattach;topic='.$topic['id'].'" onclick="return reqWin(this.href,500,200);"><img src="', $settings['images_url'], '/icons/clip.gif" alt="'.$topic['attachments'].' ', $txt['attachments_in_topic'], '" title="'.$topic['attachments'] .' '.(($topic['attachments'] == '1') ? $txt['attachment_in_topic'] : $txt['attachments_in_topic']).'" border="0" style="float: right;margin-right: 35px;" /></a>';



replace with


// Attachments in Topic Mod - Add the icon and pop-up just if we have attachments in this topic
if (!empty($topic['attachments']))
    echo '
<a href="'.$scripturl.'?action=topicattach;topic='.$topic['id'].'" onclick="return reqWin(this.href,500,200);"><img src="', $settings['images_url'], '/icons/clip.gif" alt="'.$topic['attachments'].' ', $txt['attachments_in_topic'], '" title="'.$topic['attachments'] .' '.(($topic['attachments'] == '1') ? $txt['attachment_in_topic'] : $txt['attachments_in_topic']).'" border="0" style="float: left;margin-left: 35px;" /></a>';

         


ssboforum

Any update? It doesn't work with SMF 2.0.2.

BaghdadGhost

Quote from: ssboforum on June 27, 2012, 09:00:48 AM
Any update? It doesn't work with SMF 2.0.2.

it works perfectly on 2.0.2

just emulate and if you see errors during installation let me know. I might be able to help as it not that complicated.


ssboforum

You're right! I didn't know about emulation feature, then I found out the solution thanks to this page.

Is it possible to have the attachments listed not in a pop-up window, but in a block (i use tinyportal), showed on the right of the topic (in the topic page)?

So that if there are lots of attachments in a topic, you can open the topic and immediately see the list and download them, without surfing through lots of pages. 

ssboforum

Quote from: ssboforum on June 30, 2012, 09:42:38 AM
Is it possible to have the attachments listed not in a pop-up window, but in a block (i use tinyportal), showed on the right of the topic (in the topic page)?

Update: now it is possible, see here [nofollow].

Hondo

Hello,
what about a new version for SMF 2.06?
It is not possible to install automatically

margarett

Quote from: BaghdadGhost on June 28, 2012, 01:01:04 AM
Quote from: ssboforum on June 27, 2012, 09:00:48 AM
Any update? It doesn't work with SMF 2.0.2.

it works perfectly on 2.0.2

just emulate and if you see errors during installation let me know. I might be able to help as it not that complicated.
Same applies ;)
How can I install a mod that doesn't work in my SMF version?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Hondo

I have now installed it manually, quite simple

Advertisement: