Thread Icons [v0.1.17 Updated on 15-Feb 2020]
Dec 6, 2013 17:26:21 GMT -8
Alanna 🥀🖤 and Virgil Sovereign like this
Post by Chris on Dec 6, 2013 17:26:21 GMT -8
Download
Description
Associates a forum thread with an image that appears whenever a link to that thread is present in a list of topics
Features
How to install a plugin (by Ryan Roos )
How to install a plugin (by Ryan Roos )
then give this plugin a try [obsolete link removed] and let me know if you encounter any problems or have a suggestion on improving.
Previews
That is the intended purpose of that "keep old icon" option, it keeps the old icon around since it may convey information that the new image would not, as in your case a locked thread
v0.1.10- fixed bug that presented a key write error popup to guests if guests were not allowed to post
v0.1.9 - fixed bug introduced in refactor that hid icon from all viewers when user or group chosen as exclusive icon setters
v0.1.8 - added author avatar as an image option when harvesting images for unassigned threads. Made use of "smile" class to identify smileys
v0.1.7 - refactored UI logic
v0.1.6 - fixed attachment detection which was broken by the decision to set document as dropzone for file uploads
v0.1.5 - added a way to customize final destination of icon
v0.1.4 - switched to querying listmanager to determine if on a thread page or post page rather than trying to keep up with route names such as "thread_by_ip"
v0.1.3 - took advanage of the unpublished 'thread_edit' set_on hook and could therefore remove patch for Chrome's 'async XHR abandoned on form submit' bug
v0.1.2 - added ability to globally include or exclude boards, users and groups (different from the per image settings)
v0.1.1 - added setting for image url disqualification patterns
v0.1.0 - added image harvesting on search result pages that are returned as posts
v0.0.9 - expanded route queries to account for search results and user threads
v0.0.8 - reverted "threadimage" checkbox name back to "border" since only "border" treated as checkbox in _prompt(), oops
v0.0.7 - harvest images in thread view mode if "use first image found" option is enabled and thread has no icon
v0.0.6 - added "enlarge on hover" option and option to set icon in title bar
v0.0.5 - add support for file attachments
v0.0.4 - switched to the proboards image preview dialog (tiptip orientation a bit unwieldy), also disconnected the need for setting a subject width by employing the label tag
v0.0.3 - adds plugin definable image list with per board and user access list
v0.0.2 - added pagination and tested for [title^="Thread"] instead of [title="Thread"] to include other status icons, also updated obsolete use of dataHash.page.post
Description
Associates a forum thread with an image that appears whenever a link to that thread is present in a list of topics
Features
- Create icons in plugin settings for your members to use
- Members can upload and use their own icons unless turned off in plugin settings
This feature can also detect when a file attachment is uploaded, tests if its an allowed image file and adds it to the menu of icons that can be used for that thread - Harvests images from the first post of a thread when viewed or edited and automatically adds an icon if it has none associated unless turned off in plugin settings
- disallow images by providing a list of patterns to look for in the image URL and if found prevent that image from being used
- Each icon added in the plugin settings can be set to appear only in certain boards and/or only to certain user groups
- The standard icon being replaced can be kept around as a miniature overlay for the new icon to visually convey statuses such as "locked" or "hot" that the new icon might be incapable of conveying
- Option to enable "enlarge of hover" to better view image details . There is also the option to resize the thread icon permanently using CSS found here
- Disallow (or only allow) specific users or groups who can set icons
- set specific boards where icons can only be applied
Allows setting an image for a thread by check marking an option added to the image insert dialog
1. when inserting an image you now have the option to make that image the image for the entire thread
to try a more advanced version see the following spoiler
Download: version 0.0.9
(the version in the first post remains unchanged at v0.0.2 for now until further testing proves this newer version is stable enough for a production forum)
OK, I made a few changes and fixes to this plugin
Download: version 0.0.9
(the version in the first post remains unchanged at v0.0.2 for now until further testing proves this newer version is stable enough for a production forum)
- switched to the pbapi image preview dialog in order to to show an enlarged image instead of using the tipTip tooltip when hovering over the chosen icon on the selection menu
- automatically calculate elbow room needed to fit menu next to subject
- added support for file attachments. Upload a file and if it's a valid image it automatically gets added to the menu of available images (provided the force users to use only the list you created is not set)
- added "enlarge on hover" option for thread listing view
- added option to place the icon in title bar when reading a thread
- if "use first image found" option is set and thread has no icon set then the plugin will search first post in thread viewing mode when anybody looks at the thread, previously it only looked for images if in editing mode.
- Fixed a bug where the "threadimage" input always appeared as checked to the plugin even when left unchecked by the user. This was because only "border" can be a true boolean in the internal wysiwyg _prompt() function. This was causing images to be applied to the thread ever since the name was changed from the misleading "border" to the more applicable "threadimage" without realizing/remembering the true need for the "border" name
/* comment your codes boys and girls */ - added some forgotten page routes such as threads started by a user and search results returned as threads
How to install a plugin (by Ryan Roos )
PB:\plugins\Thread Icons> download
Thread Image.pbp
PB:\plugins\Thread Icons> version
"version 0.0.2 (alpha)"
Thread Image.pbp
PB:\plugins\Thread Icons> version
"version 0.0.2 (alpha)"
How to install a plugin (by Ryan Roos )
Assuming by "folder image" you mean these
then give this plugin a try [obsolete link removed] and let me know if you encounter any problems or have a suggestion on improving.
Previews
That is the intended purpose of that "keep old icon" option, it keeps the old icon around since it may convey information that the new image would not, as in your case a locked thread
v0.1.10- fixed bug that presented a key write error popup to guests if guests were not allowed to post
v0.1.9 - fixed bug introduced in refactor that hid icon from all viewers when user or group chosen as exclusive icon setters
v0.1.8 - added author avatar as an image option when harvesting images for unassigned threads. Made use of "smile" class to identify smileys
v0.1.7 - refactored UI logic
v0.1.6 - fixed attachment detection which was broken by the decision to set document as dropzone for file uploads
v0.1.5 - added a way to customize final destination of icon
v0.1.4 - switched to querying listmanager to determine if on a thread page or post page rather than trying to keep up with route names such as "thread_by_ip"
v0.1.3 - took advanage of the unpublished 'thread_edit' set_on hook and could therefore remove patch for Chrome's 'async XHR abandoned on form submit' bug
v0.1.2 - added ability to globally include or exclude boards, users and groups (different from the per image settings)
v0.1.1 - added setting for image url disqualification patterns
v0.1.0 - added image harvesting on search result pages that are returned as posts
v0.0.9 - expanded route queries to account for search results and user threads
v0.0.8 - reverted "threadimage" checkbox name back to "border" since only "border" treated as checkbox in _prompt(), oops
v0.0.7 - harvest images in thread view mode if "use first image found" option is enabled and thread has no icon
v0.0.6 - added "enlarge on hover" option and option to set icon in title bar
v0.0.5 - add support for file attachments
v0.0.4 - switched to the proboards image preview dialog (tiptip orientation a bit unwieldy), also disconnected the need for setting a subject width by employing the label tag
v0.0.3 - adds plugin definable image list with per board and user access list
v0.0.2 - added pagination and tested for [title^="Thread"] instead of [title="Thread"] to include other status icons, also updated obsolete use of dataHash.page.post
HISTORY LOGS:
/*
v0.1.17- fixed bug where disassociating an icon from a thread required saving the thread first instead of immediately taking effect
v0.1.16- added placing image as a background on target container
v0.1.15- downgraded to es5 for wider browser support
v0.1.14- added user info to avatar urls so they can be used to fill unknown avatars
v0.1.13- added avatar search to saveAvatar fn and reap avatar in thread view if author is viewing
v0.1.12- added flexbox css for responsive screen size on subject input
v0.1.11- can_write expects object id (thread_id) but was sending user_id for a thread key
v0.1.10- fixed bug that presented a key write error popup to guests if guests were not allowed to post
v0.1.9 - fixed bug introduced in refactor that hid icon from all viewers when user or group chosen as exclusive icon setters
v0.1.8 - added author avatar as an image option when harvesting images for unassigned threads. Made use of "smile" class to identify smileys
v0.1.7 - refactored UI logic
v0.1.6 - fixed attachment detection which was broken by the decision to set entire document as dropzone for file uploads
v0.1.5 - added a way to customize final destination of icon
v0.1.4 - switched to querying listmanager to determine if on a thread page or post page rather than trying to keep up with route names such as "thread_by_ip"
v0.1.3 - took advantage of the unpublished 'thread_edit' set_on hook and could therefore remove patch for Chrome's 'async XHR abandoned on form submit' bug
v0.1.2 - added ability to globally include or exclude boards, users and groups (different from the per image settings)
v0.1.1 - added setting for image url disqualification patterns
v0.1.0 - added image harvesting on search result pages that are returned as posts
v0.0.9 - expanded route queries to account for search results and user threads
v0.0.8 - reverted "threadimage" checkbox name back to "border" since only "border" treated as checkbox in _prompt(), oops
v0.0.7 - harvest images in thread view mode if "use first image found" option is enabled and thread has no icon
v0.0.6 - added "enlarge on hover" option and option to set icon in title bar
v0.0.5 - add support for file attachments
v0.0.4 - switched to the proboards image preview dialog (tiptip orientation a bit unwieldy), also disconnected the need for setting a subject width by employing the label tag
v0.0.3 - adds plugin definable image list with per board and user access list
v0.0.2 - added pagination and tested for [title^="Thread"] instead of [title="Thread"] to include other status icons, also updated obsolete use of dataHash.page.post
*/