Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Untitled #1

Merged
merged 1 commit into from
Mar 30, 2011
Merged

Untitled #1

merged 1 commit into from
Mar 30, 2011

Conversation

Randuin
Copy link
Contributor

@Randuin Randuin commented Mar 29, 2011

Should be checking a template file rather than the yaml file into the repo

@r888888888 r888888888 merged commit 0a8f55b into danbooru:master Mar 30, 2011
evazion added a commit that referenced this pull request Oct 26, 2018
Fix the following dtext shortlinks redirecting to nonexistent pages:

* flag #1
* appeal #1
* mod action #1
* bur #1
evazion added a commit that referenced this pull request Mar 13, 2024
Fix it so that post #1 doesn't show a birthday hat if it was uploaded today. Only show the birthday
hat on the anniversary of the first upload.

Fixes the first post always showing a birthday hat on a fresh install.
evazion added a commit that referenced this pull request Mar 21, 2024
Add the following syntax for embedding images in DText:

    !post #12345
    !asset #12345

This will embed a 720x720 size image.

You can add a caption beneath the image like this:

    !post #12345: This is the image caption.

You can embed a gallery of thumbnails like this:

    * !post #1
    * !post #2
    * !post #3

This will embed a grid of 180x180 size thumbnails.

Known issues:

* Currently you can only embed images in wiki pages. There need to be limits before they can be
  enabled in other places so that people don't flood threads with too many images.
* You can't embed images that are only visible to Gold or above users. You can only embed images
  that are visible to everyone. This is because making DText rendering dependent on the current user
  would preclude caching. It's also to discourage people from embedding images that not everyone can
  see.
* There's no way to blacklist embedded images. (It wouldn't work anyway for media assets, unless we
  used AI tags).
* There's no syntax for selecting the size of the image. Standalone images are always 720x720 and
  thumbnail galleries are always 180x180.
* We always use 720x720 .webp samples for embedded images, which may not be viewable for people with
  ancient browsers that don't support .webp.
* You can't put images inside tables (which would be necessary for Wikipedia-style infoboxes in wikis).
* You can't `float: right` images (which would also be necessary for infoboxes in wikis).
* Animated GIFs and PNGs load the static thumbnail instead of the animated image. We ought to
  generate sample videos for animated GIFs.
* Videos load the original video file, which may take a lot of bandwidth, especially if there are
  multiple videos on the page. We ought to generate 720p or 480p samples for each video.
* Video always autoplay, which may be undesirable.
* Videos don't show the audio icon when the video has audio (videos with sound are muted, however).
* You can't embed Flash posts.
* It's technically possible to embed arbitrary images using media assets, but it's a cumbersome
  process.
evazion pushed a commit that referenced this pull request Apr 3, 2024
evazion added a commit that referenced this pull request Apr 3, 2024
Update all occurrences of r888888888 to danbooru
evazion added a commit that referenced this pull request Apr 3, 2024
Add the following syntax for embedding images:

    !asset #1
    !post #1

Produces:

    <media-embed data-type="asset" data-id="1"></media-embed>
    <media-embed data-type="post" data-id="1"></media-embed>

To add a caption beneath the image:

    !post #1: This is a caption beneath the image.

Produces:

    <media-embed data-type="post" data-id="1">This is a caption beneath the image.</media-embed>

To create a gallery of images:

    * !post #1: Caption one.
    * !post #2: Caption two.
    * !post #3: Caption three.

Produces:

    <media-gallery>
      <media-embed data-type="post" data-id="1">Caption one.</media-embed>
      <media-embed data-type="post" data-id="2">Caption two.</media-embed>
      <media-embed data-type="post" data-id="3">Caption three.</media-embed>
    </media-gallery>

The `!post #1` syntax has to go on a line by itself. It can't go in the middle of a paragraph,
inside a header, inside a table, etc.

On the Danbooru end, these tags will be written into the actual images.
evazion added a commit that referenced this pull request Apr 10, 2024
Fix it so that text like `issue #1`, `post #1`, etc is escaped in commentaries
so that it's not interpreted as DText.
hdk5 pushed a commit to hdk5/danbooru that referenced this pull request May 20, 2024
Fix it so that post danbooru#1 doesn't show a birthday hat if it was uploaded today. Only show the birthday
hat on the anniversary of the first upload.

Fixes the first post always showing a birthday hat on a fresh install.
hdk5 pushed a commit to hdk5/danbooru that referenced this pull request May 20, 2024
Add the following syntax for embedding images in DText:

    !post #12345
    !asset #12345

This will embed a 720x720 size image.

You can add a caption beneath the image like this:

    !post #12345: This is the image caption.

You can embed a gallery of thumbnails like this:

    * !post danbooru#1
    * !post danbooru#2
    * !post danbooru#3

This will embed a grid of 180x180 size thumbnails.

Known issues:

* Currently you can only embed images in wiki pages. There need to be limits before they can be
  enabled in other places so that people don't flood threads with too many images.
* You can't embed images that are only visible to Gold or above users. You can only embed images
  that are visible to everyone. This is because making DText rendering dependent on the current user
  would preclude caching. It's also to discourage people from embedding images that not everyone can
  see.
* There's no way to blacklist embedded images. (It wouldn't work anyway for media assets, unless we
  used AI tags).
* There's no syntax for selecting the size of the image. Standalone images are always 720x720 and
  thumbnail galleries are always 180x180.
* We always use 720x720 .webp samples for embedded images, which may not be viewable for people with
  ancient browsers that don't support .webp.
* You can't put images inside tables (which would be necessary for Wikipedia-style infoboxes in wikis).
* You can't `float: right` images (which would also be necessary for infoboxes in wikis).
* Animated GIFs and PNGs load the static thumbnail instead of the animated image. We ought to
  generate sample videos for animated GIFs.
* Videos load the original video file, which may take a lot of bandwidth, especially if there are
  multiple videos on the page. We ought to generate 720p or 480p samples for each video.
* Video always autoplay, which may be undesirable.
* Videos don't show the audio icon when the video has audio (videos with sound are muted, however).
* You can't embed Flash posts.
* It's technically possible to embed arbitrary images using media assets, but it's a cumbersome
  process.
hdk5 pushed a commit to hdk5/danbooru that referenced this pull request May 20, 2024
… to github

Fix it so that text like `issue danbooru#1`, `post danbooru#1`, etc is escaped in commentaries
so that it's not interpreted as DText.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants