Topic Icons List in a popup

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Anti-Spam Guide
Post Reply
eduardo_nl
Registered User
Posts: 10
Joined: Sun Jan 10, 2016 1:43 am
Contact:

Topic Icons List in a popup

Post by eduardo_nl » Wed May 22, 2019 9:44 pm

I'm trying to find a way to "solve" it's been a while.

I have almost 500 unique icons being used in my forum and it is getting difficult to edit a post/topic, since every time I edit it, the list with all the icons appears on the page, and it's is getting a bit heavy to load. I already tried to uncheck the "Display on posting page" thing, but if/when I edit a topic that had a icon, the icon disappears (since it is no longer on the list).

Icons being locked to a topic IDs would already solve this, but I do not know if it's possible.

One solution would be to create a button that would open the icon list in a popup, like what already happens with the smilies list.

Something like this would be possible?

User avatar
EA117
Registered User
Posts: 956
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Topic Icons List in a popup

Post by EA117 » Thu May 23, 2019 2:13 am

Someone with extension experience should also comment on additional benefits that could be realized that way, but it seems like this feature could be successfully implemented simply as a function of the style, too.

In it's most basic form, changing the posting_editor.html template to use the topic_icon data differently. To construct a drop-down textual list form input field instead of the current radio buttons, and then through a JavaScript onChange handler update a single image element to display just the currently-selected icon and never "all of them".

The style could of course also get much fancier than that, using JQuery plug-ins or other approaches to make a slick non-textual image-based drop-down selection using the topic_icon data delivered through the template. With an appropriate delay-load to avoid retrieval except when actually needed for display. I presume a style-only change should even be able to achieve the "pop-up" approach, by building, hiding, and showing a foreground modal containing the available selections.

I'm not familiar with "like what already happens with the smilies list." For me the smilies behave just like you're seeing here on phpbb.com/community, and essentially "the same as topic icons" since they're always displayed. Do you possibly already have an extension installed that provides that pop-up behavior for smilies? Or maybe it's even a feature of the installed style, and could be duplicated into the topic icon handling.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66747
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Topic Icons List in a popup

Post by Lumpy Burgertushie » Thu May 23, 2019 2:27 am

any smilies other than the ones that show on the posting form can be seen in a popup that is linked right below the smilies box.
that is default behaviour.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
EA117
Registered User
Posts: 956
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Topic Icons List in a popup

Post by EA117 » Thu May 23, 2019 7:45 am

Lumpy Burgertushie wrote:
Thu May 23, 2019 2:27 am
any smilies other than the ones that show on the posting form can be seen in a popup that is linked right below the smilies box.
that is default behaviour.
Ah, thanks for that. edit: Didn't realize there was an alternate display, and hadn't yet had a reason to not "display on posting" for any smilies.
Last edited by EA117 on Thu May 23, 2019 12:57 pm, edited 1 time in total.

User avatar
david63
Registered User
Posts: 16570
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Topic Icons List in a popup

Post by david63 » Thu May 23, 2019 8:01 am

Out of curiosity why do you have almost 500 topic icons?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

eduardo_nl
Registered User
Posts: 10
Joined: Sun Jan 10, 2016 1:43 am
Contact:

Re: Topic Icons List in a popup

Post by eduardo_nl » Thu May 23, 2019 2:39 pm

david63 wrote:
Thu May 23, 2019 8:01 am
Out of curiosity why do you have almost 500 topic icons?
We have a lot topics for games and movies. And almost each one of those has a topic icon.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51868
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Topic Icons List in a popup

Post by Brf » Thu May 23, 2019 2:39 pm

Lumpy Burgertushie wrote:
Thu May 23, 2019 2:27 am
any smilies
Isn't this topic about Topics Icons, not smilies?

User avatar
EA117
Registered User
Posts: 956
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Topic Icons List in a popup

Post by EA117 » Thu May 23, 2019 2:47 pm

Brf wrote:
Thu May 23, 2019 2:39 pm
Isn't this topic about Topics Icons, not smilies?
Robert was educating me, in response to one of my questions.
Lumpy Burgertushie wrote:
Thu May 23, 2019 2:27 am
EA117 wrote:
Thu May 23, 2019 2:13 am
I'm not familiar with "like what already happens with the smilies list." For me the smilies behave just like you're seeing here on phpbb.com/community, and essentially "the same as topic icons" since they're always displayed. Do you possibly already have an extension installed that provides that pop-up behavior for smilies? Or maybe it's even a feature of the installed style, and could be duplicated into the topic icon handling.
any smilies other than the ones that show on the posting form can be seen in a popup that is linked right below the smilies box.
that is default behaviour.

User avatar
Talk19Zehn
Registered User
Posts: 380
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Topic Icons List in a popup / checkbox

Post by Talk19Zehn » Thu May 30, 2019 10:38 am

Hello, whether this idea is sufficient? In my case, I tried it with a checkbox / spoiler. And I test it now only on desktop mode with phpBB version 3.2.7, it works so far. Maybe it could be helpful. Nevertheless, with no guarantee ...

Test, test, test ==> Topic Icons List open /close with a checkbox (!):

CSS:

Code: Select all

/* threadssymbol box Show and Hide
---------------------------------------------------------*/
input.threadssymbol {
	display: inline-block;
	margin: 0px;
	padding: 0px;
	vertical-align: sub;
}

.threadsspoiler {
	padding: 0;
	margin: 10px 0px 12px;
	display: none;
}

input.threadssymbol:checked + .threadsspoiler {
	display: block;
}
HTML: here only the prosilver -> standard(!!)
posting_editor.html

search and delete

Code: Select all

	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<dl>
		<dt><label for="icon">{L_ICON}{L_COLON}</label></dt>
		<dd>
			<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" tabindex="1" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} tabindex="1" /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="{topic_icon.ICON_ALT}" title="{topic_icon.ICON_ALT}" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->
search:

Code: Select all

	<div id="message-box" class="message-box">
		<textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="4" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
	</div>
and add after:

Code: Select all

<div>
	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<input type="checkbox" class="threadssymbol" />&nbsp;{L_ICON}{L_COLON}&nbsp;{L_DISPLAY}
	<div class="threadsspoiler"><br />
	<dl>
		<dt><label for="icon">{L_ICON}{L_COLON}</label></dt>
		<dd>
			<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" tabindex="1" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} tabindex="1" /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="{topic_icon.ICON_ALT}" title="{topic_icon.ICON_ALT}" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->
	</div>
</div>
Regards
World Meteorological Organization (WMO) Weather - Climate - Water
BTW: My own works - phpBB - read more: ongray-design-de or look here: phpBB VT Theme
Style: Star Trek - StarTrekExcerpts - Fan-Board

Post Reply

Return to “Extension Requests”