Firefox PHP

Module: Custom Attachment Icons

Posted by Joe Curia 
Re: Module: Custom Attachment Icons v5.2.1.04 - .ptrn, URL's, and Recent Messages
October 29, 2008 11:42PM
Quote
Azumandias
I have completed v5.2.1.04 of this mod with the following changes:

- Enhancement: Added template files for easier incorporation into Phorum templates.

- Enhancement: Added the ability to disable the warnings displayed if template files have not been edited. This is tied to the Phorum version so that new warnings will be created each time Phorum is upgraded.

- Enhancement: Added support for the Recent Messages module.

- Enhancement: Added support for the ptrn extension (with thanks to CBiLL for the icon and language code) and for recognizing generic URL's in the message body.

- Bugfix: Message attachments with capitalized extensions were not properly processed. Thanks go to Phorum user CBiLL for reporting this.

Please note: If you are upgrading from an earlier version of this module, your template edits will continue to work. However, I would suggest updating to the new template format to ensure compatibility with future upgrades. To do this, edit the list.tpl, list_threads.tpl, and read_threads.tpl files and change:
{IF MESSAGES->mod_cai->icons}
    {LOOP MESSAGES->mod_cai->icons}<img src="{MESSAGES->mod_cai->icons->url}" class="icon1616" title="{MESSAGES->mod_cai->icons->title}"  alt="{MESSAGES->mod_cai->icons->title}" /> {/LOOP}
{/IF}
{IF MESSAGES->mod_cai->show_clip}
    {IF MESSAGES->meta->attachments}<img src="{URL->TEMPLATE}/images/attach.png" class="icon1616" title="{LANG->Attachments}"  alt="{LANG->Attachments}" /> {/IF}
{/IF}
to read:
{INCLUDE "custom_attachment_icons::list_icons"}




I am not sure if ptrn would be use on any other forums but it was nice of you to add it in your module so I wouldn't have to add it back in everytime I update this module. Thank you for this!

URL icon is working perfectly! Thank you so much! It make moderating the forum so much easier now that we can go to recent message module page and quickly check all posts with urls in them firsthand to make sure they are following the forum rules when posting urls in post. Same with photos and videos too!

I would rank this module as one of the most top useful module and every phorum should have it!

Thank you again!
Bill



Edited 1 time(s). Last edit at 10/29/2008 11:42PM by CBiLL.
Re: Module: Custom Attachment Icons v5.2.1.04 - .ptrn, URL's, and Recent Messages
October 30, 2008 12:27AM
Excellent. Love the addition of the URLs. But what am I missing to get this to work in Recent Messages?

I originally had my template (render_message_row.tpl) modified with the same code above to get them to appear. I changed it to reference {INCLUDE "custom_attachment_icons::list_icons"} however I do not see any of the attachment icons in the Recent Messages list. What did I miss/do wrong?

Thank you.

Wallet Friendly Watch Forum
www.wf-wf.com
Re: Module: Custom Attachment Icons v5.2.1.04 - .ptrn, URL's, and Recent Messages
October 30, 2008 12:34AM
Sorry for the confusion, I explained it better in the README and at the beginning of this thread. The Recent Messages template file needs {INCLUDE "custom_attachment_icons::recent_messages_icons"}, not list_icons.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Custom Attachment Icons v5.2.1.04 - .ptrn, URL's, and Recent Messages
October 30, 2008 01:44AM
I should have read the Read Me. Thanks for the info, works like a charm now.

Wallet Friendly Watch Forum
www.wf-wf.com
Re: Module: Custom Attachment Icons
May 04, 2009 01:17AM
The SEF module break this module

When SEF is enable all the icon images replaced with a "missing square box image" .

I am not sure which end this issue lies on but can either SEF or this module be updated to work together? It will be awesome if it can!


Thank you
Bill
Re: Module: Custom Attachment Icons
May 04, 2009 05:02AM
I just finished updating my Favorite Forums module for compatibility so it could very well be an issue with my module. I will look into it.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Custom Attachment Icons
May 04, 2009 06:08AM
Ok, please re-download/upload this module (or more specifically, the custom_attachment_icons.php file in this module). I had set the image URL's using relative paths. When combined with the SEF URL's module, you would get something like http://www.yoursite.com/phorum/list/mods. . . rather than http://www.yoursite.com/phorum/mods. . . so I have rewritten the module to give full URL's to get around this issue. Thanks for reporting the problem.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Custom Attachment Icons
June 15, 2009 07:43PM
I didn't try the new version until author fix the module on the embed image issue and now that the new version of SEF module is out and it still break the icon images when SEF module is enabled.

I am running icon attachment module version 5 2 1 04 but when you said redownload the module did you mean redownload the same version that it have the fix in it because I download the same version and reinstall it and it still shown broken for me.


Bill
Re: Module: Custom Attachment Icons
June 16, 2009 02:43PM
You are correct, I intended for you to reupload the v5.2.1.04. Could you give me a link to see what your broken icons look like? Or right click on the icons and check that the link is correct (without the "/list" inserted).


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Custom Attachment Icons
June 16, 2009 05:41PM
Quote
Joe Curia
You are correct, I intended for you to reupload the v5.2.1.04. Could you give me a link to see what your broken icons look like? Or right click on the icons and check that the link is correct (without the "/list" inserted).

I downloaded it again and reupload it then disable and renable the module, that seem to fix it for me.

Maybe I did not reupload it because I can't remember it all I saw I had the latest version and I was pretty sure I did reupload it last time.

Anyway it working and the icons are shown with SEF module running.

Thank you
Bill
Sorry, only registered users may post in this forum.

Click here to login