CAINE Forums

Author Topic: Test post please ignore  (Read 339 times)

XT-8147

  • Guest
Test post please ignore
« on: 2016-01-14 19:50:05 »
Test post please ignore

XT-8147

  • Guest
Re: Test post please ignore
« Reply #1 on: 2016-01-15 04:53:39 »
Spoiler tag mod located and installed.

Unsourced spoiler: [spoiler]text[/spoiler]
(click to show/hide)

Sourced spoiler: [spoiler=source]text[/spoiler]
(click to show/hide)
« Last Edit: 2016-01-15 04:55:46 by XT-8147 »

XT-8147

  • Guest
Re: Test post please ignore
« Reply #2 on: 2016-01-15 19:59:03 »
Just installed an inline attachments mod, so... let's try this shit out.

(click to show/hide)

 [ Invalid Attachment ]

 [ Invalid Attachment ]
« Last Edit: 2016-01-15 20:09:04 by XT-8147 »

XT-8147

  • Guest
Re: Test post please ignore
« Reply #3 on: 2016-03-08 22:27:39 »

People can post YouTube videos now.  How'd I overlook that old bit of lulzbb functionality?

Edit: It seems to be ignoring the height I set for the embed... I may have to inspect some code.  The height is 236px instead of the 315px default, straight from YouTube's own embed markup.

Edit 2: ugh I just remembered that means I have to deal with FTP :( I miss SSH so much.

Edit 3: Pwnt.  The code was actually hard-limiting the aspect ratio of the player.  It now fully respects the settings in the admin panel.

Edit 4: In fact, let's force it to always be the dimensions set in the admin panel.  This overrides the mod's functionality of allowing the person posting to set the width and height in the bbcode tag.  I see no downsides to this since the embed contains both a "View on YouTube" button and a "Fullscreen" button.  We got along just fine on lulzbb with a sensibly small YouTube embed, I see no reason why we can't get along with a similarly sensibly small one now.

Edit 5: I really need to get a local dev environment set up so I can test code tweaks much more easily, and make mods to fix issues in the forums much more easily, and then I can just use FTP or the package manager in the admin panel to push changes.  Something similar to a full copydown process, but only ever doing copydown when I hit a button as opposed to daily.

Edit 6: Properly disabled setting the width and height by preventing the parameters from being parsed.  Good day, sir.

Edit 7 (2016-03-31): y u edit mai post thatcher
« Last Edit: 2016-03-31 11:18:19 by XT-8147 »

XT-8147

  • Guest
Re: Test post please ignore
« Reply #4 on: 2016-03-08 23:35:10 »
Also, the mod provides playlist embeds, which is interesting.


To embed a playlist, just stick the playlist URL inside the youtube tag.  The above embed, for example, looks like this:

[youtube]https://www.youtube.com/playlist?list=PLsyML1DwCkpWpZzv31O36XlBZXgM1ZBVH[/youtube]

XT-8147

  • Guest
Re: Test post please ignore
« Reply #5 on: 2017-02-25 22:31:47 »
This one wordfilter was matching itself, which resulted in it getting re-applied every time a post it got applied to was edited.

As funny as that is, I'm fixing it.

I­S BACK (IN POG FORM)

Edit: editing to make sure my fix worked

Edit 2: yay it worked

Edit 3: Why does SMF apply word filters when saving the post as opposed to when it constructs the page?  That would have made this a non-issue.  lulzbb did it the latter way, rather than the former.

Edit 4: fix was a fairly standard wordfilter dodge method
« Last Edit: 2017-02-25 22:36:02 by XT-8147 »