Custom Emoji feature requests

A couple of requests:

  • The ability to rename custom emojis
  • A separate class for built-in emojis and custom emojis. I have several custom emojis that are bigger than the normal emoji size and are non-squared dimensions. If I remove the height and width limitations via CSS so that the custom emojis display correctly, the built-in emojis become very large. It would be nice to be able to style custom and built-in separately.
6개의 좋아요

Hmm, if they deviate from the Emoji standards, they are no longer Emoji. So this is an odd request. “Change Emoji so they aren’t like Emoji!”

Renaming seems reasonable though.

So adding a class to distinguish custom from default is out… then could we have a section where we can load custom GIFs that our board commonly uses? like facebook’s GIF keyboard?

Well, when you say it like that.. it does sound easier. Not sure though, @zogstrip would need to comment.

2개의 좋아요

In theory you can use the ReplyGIF to accomplish this goal.

If you didn’t want to utilize the GIFs from ReplyGIF the plugin already supports you changing it to use a different URL.

You would have to support the API that ReplyGIF already offers though, including the response structure.

So at a minimum you would have to have endpoints for


###example.com/replies
Provides a json array of strings

example: ["category", “category2”, “category3”]


###example.com/tags
Provides a json array of strings

example: ["tag", “tag2”, “tag3”]


###example.com/gifs
Provides a json array of images and their details

example:

[
  { file => "example.com/i/filename1", tags => "comma separated list of tags", caption => "caption of image1" },
  { file => "example.com/i/filename2", tags => "comma separated list of tags", caption => "caption of image2" }
]

###example.com/i/filename
Returns the image for filename


###example.com/thumbnail/filename
Returns the thumbnail for filename


###example.com/gifs?reply=category
Returns a list of images and their details (see above) in a given category


###example.com/gifs?tag-operator=and&tag=tags
Returns a list of images and their details (see above) that have each tag provided (comma separated)


###example.com/gifs?reply=category&tag-operator=and&tag=tags
Returns a list of images and their details (see above) that are in a specific category and have each tag provided (comma separated)


Granted, you could set it up so /replies, /tags return a single item, and thus the querystring parts become moot. So the only thing you’d have to do is ensure the /gifs endpoint returns all of the GIFs you want to support.

3개의 좋아요

IN :arrow_down:

https://github.com/discourse/discourse/commit/78cd42943ffea0c7d525209be8c510f9a38cca87

4개의 좋아요

Awesome! Thank you so much!

저도 커스텀 이모지 이름 변경 기능이 있으면 좋겠습니다. (현재는 이름 변경을 하려면 다시 업로드해야 합니다)

2개의 좋아요

한 가지 더 언급할 점이 있습니다. 배경을 설명하자면, 저는 커스텀 이모지 중 일부가 기본 이모지와 동일한 이름을 가지고 있다는 사실을 몰랐기 때문에, 기존 기본 이모지를 덮어쓰고 있는 문제를 해결하려고 이름을 변경하고 있었습니다. (예: :bear:) 그래서 모든 커스텀 이모지 이름 앞에 접두사를 붙이고자 했습니다. 이름을 변경하기 위해 접두사가 포함된 이름으로 다시 업로드했습니다.

기존 이름이 기본 이모지와 동일한 것이 아닌 이모지들의 경우, 사람들이 해당 이모지를 사용했던 모든 위치에서 현재 :이모지_이름:만 표시됩니다.

이모지 이름 변경 기능이 이전에 이모지가 사용되었던 모든 위치의 이름도 함께 업데이트해 준다면 도움이 될 것입니다.

오래된 스레드를 다시 올리는 점 양해 부탁드립니다. 최근 커스텀 이모지 업로드를 테스트하면서 몇 가지 사항을 발견했습니다:

‘드래그 앤 드롭’ 기능이 작동하지 않는 것 같습니다 (Ubuntu, Brave 브라우저). 업로드되지 않고 새 탭에서 이미지가 열립니다. SVG와 PNG 모두 동일한 문제가 발생합니다. 몇 년 전 이 기능을 사용했을 때(동일한 OS, 동일한 브라우저)는 정상적으로 작동했습니다.

또한, ‘파일 선택’ 버튼을 클릭할 때 생성되는 파일 탐색기는 적합하지 않은 파일 유형을 숨기기 위해 '커스터마이즈’된 것으로 보입니다. 기본적으로 PNG 파일만 표시되지만, 커스텀 이모지는 SVG와 JPG 아이콘도 지원합니다. 비교적 간단한 수정 사항으로 보이지만, Discourse 코드베이스에서 이 파일 탐색기 커스터마이징이 어디에서 이루어지는지 파악하지 못했습니다.

3개의 좋아요

삭제 후 다시 업로드하지 않고는 이 중 어떤 것도 이름을 바꿀 수 없습니다.

사용자 지정 이름을 빠르게 수정할 수 있으면 좋겠습니다.

다른 포럼에서는 보통 이런 작업이 가능하다고 알고 있습니다.

5개의 좋아요