Post by ₪» ⅀ ƪ Ƒ «₪ on Oct 21, 2018 13:06:42 GMT -8
W H Y
I run a roleplay forum. Each thread involves multiple characters interacting in various ways. Music is a fantastic and popular method for inspiration when writing and also for "setting the tone" of the thread. A lot of times, people will post a link to a song that inspired their post or accompanies its content well, like a dramatic battle song if the characters are fighting, a love song for a couple, a sad song for a dramatic moment... you get the gist.
W H A T
I'd like a more streamlined, aesthetically-cohesive system for them attaching music to their posts. If possible, I'd love to have an area in the posting page where they can insert a link to a song, causing a globally-styled audio player to show up in their post for other users to manually click "play" and listen to it while in the thread if they'd like to.
Now, I do have this current code for inserting an audio player: support.proboards.com/thread/653188
But it requires the users to put the code in themselves and it would be inconsistently incorporated, since they would get to place it wherever they wanted and such.
The features needed:
Not the simplest plugin, I imagine, so I'll just bump away as needed. ^^ I understand no one may want to touch this until at least V6 releases
I run a roleplay forum. Each thread involves multiple characters interacting in various ways. Music is a fantastic and popular method for inspiration when writing and also for "setting the tone" of the thread. A lot of times, people will post a link to a song that inspired their post or accompanies its content well, like a dramatic battle song if the characters are fighting, a love song for a couple, a sad song for a dramatic moment... you get the gist.
W H A T
I'd like a more streamlined, aesthetically-cohesive system for them attaching music to their posts. If possible, I'd love to have an area in the posting page where they can insert a link to a song, causing a globally-styled audio player to show up in their post for other users to manually click "play" and listen to it while in the thread if they'd like to.
Now, I do have this current code for inserting an audio player: support.proboards.com/thread/653188
But it requires the users to put the code in themselves and it would be inconsistently incorporated, since they would get to place it wherever they wanted and such.
The features needed:
- Ability for members to put their song link into a field in the posting page. It should always be optional. It would be preferred if they clicked a link and it caused a pop-up; the pop-up would then have a title, a description/instructions for the user to read, a field for them to put the audio link into, and a text area where they can write an optional description if they want to explain why they chose this song. It'd be great if I could customize all text in the pop-up, i.e. title, member instructions, name of the audio field, and name of the description text area.
- If there were a history section in the pop-up of the 5 most recent songs they have chosen, too, that would be incredible, so they can just quickly select one if they are wanting to re-use the same song(s). Perhaps there would need to be a field where they can put a name for the song when they enter a new one, that way the history simply represents the audio files by their entered song names and the user can then click the one they want.
- Ability for the admin to place the audio input in the posting page layout template where desired, probably with the use of a specific DIV or ID. I can handle my own in the layout templates for this. So if you give me a code that lets me place the button that opens the audio field popup where desired, then I can incorporate it into the posting page layout template and then use CSS to customize the pop-up (so long as you give unique classes to target).
- Restriction to use based on category and membergroup.
- Should be manual play, not automatic.
- I imagine it will have to be a direct audio file. But if it were possible for it to accept URLs from YouTube and simply play the audio (not video) from it, that'd be unbelievably perfect and so much easier. I'm not even sure that's possible, though. So direct audio link is fine if necessary, since I understand that may be the only realistic possiblity
- It would be wonderful if I could style the audio player. I use the mini-profile layout template audio player created by Chris many years ago, though I can't find the source of it any more... I think it was removed by Trinity, perhaps--he gave it to her originally so she was the one to post it and for some reason she has to decided to delete all of her resources since then. =/ But the code itself is this, in my mini profile:
{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "Music"}
<div class="player" style="margin-bottom: 0px; margin-top: 5px; margin-left: 11px; position:absolute;top:126px;"><object data="https://cldup.com/1gyTt8zrXC.swf" height="15" type="application/x-shockwave-flash" width="149">
<param value="https://cldup.com/1gyTt8zrXC.swf" name="movie">
<param value="75664e" name="bgcolor">
<param value="mp3=$[user.mini_custom_field.value]&bgcolor=75664e&loadingcolor=ffeedd&buttoncolor=2d2821&slidercolor=2d2821;" name="FlashVars">
</object></div>
{/if}{/foreach}
And this code allows me to choose how I wanted the audio player to appear. It lets me choose the colors and width. I figured I would provide this similar code in case it helps assist in identifying a way to let me style the audio player for this plugin? - The audio player should only play in the post the member selects it for, rather than every post thereafter. If they want to select the song again in another post in the same thread, they can do that if they choose, and they can also decide to put in a different song in the same thread, meaning a single thread may have multiple songs throughout their posts; but by default, it should be blank. I imagine a post key?
- Lastly, the admin should be able to place the audio player in the thread as desired, probably using a DIV or ID again. Again, I can handle coding it in the post list layout template for my own customization.
Not the simplest plugin, I imagine, so I'll just bump away as needed. ^^ I understand no one may want to touch this until at least V6 releases