Play a tune in thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Watson
    Senior Member
    • May 2004
    • 281

    Play a tune in thread

    Anyway to have a tune played in a thread when I open it up?

    Would I need to allow html in the forums for this to happen?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Yes, that would require HTML code. Embedded music files use the embed tag, like this:

    <embed src="URL TO MUSIC FILE" autostart="true" loop="true">

    Or you can not allow HTML code and use a custom BB code to allow users to embed music files:

    Admin CP -> Custom BB Codes -> Add New BB Code

    The problem is that people would be able to use the BB code to embed more than just music files.

    Comment

    • Watson
      Senior Member
      • May 2004
      • 281

      #3
      thanks for that.

      Yeah they would, but I will just enable html for the time being

      Comment

      • Watson
        Senior Member
        • May 2004
        • 281

        #4
        Cant get it to work mate, I have enabled html

        When I put tags round it, it doesnt work, and when I just do code liek that it dont work.

        I put in proper url and everything.

        It did work though, when I went in to edit the post, and started to play, with a default player thing there

        Comment

        • Noiz Pollution
          Senior Member
          • Apr 2003
          • 244
          • 3.6.x

          #5
          Originally posted by Jake Bunce
          Yes, that would require HTML code. Embedded music files use the embed tag, like this:

          <embed src="URL TO MUSIC FILE" autostart="true" loop="true">

          Or you can not allow HTML code and use a custom BB code to allow users to embed music files:

          Admin CP -> Custom BB Codes -> Add New BB Code

          The problem is that people would be able to use the BB code to embed more than just music files.
          I would make the loop false or that could become very annoying, I've seen it happen before.
          Visit NoizPollution.com // Your Music Source

          Do not PM or email me for support, you will not receive a response. Please post all requests for support in the main vBulletin forums or via the support system in the main members section of the site.

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Originally posted by Watson
            Cant get it to work mate, I have enabled html

            When I put tags round it, it doesnt work, and when I just do code liek that it dont work.

            I put in proper url and everything.

            It did work though, when I went in to edit the post, and started to play, with a default player thing there
            It sounds like you might have a post caching problem. Try running this query on your database:

            DELETE FROM post_parsed

            If you use table prefixes then you need to change post_parsed to include the prefix.

            You can run this query in your:

            Admin CP -> Import & Maintenance -> Execute SQL Query

            Make sure your userid is entered into your includes/config.php file so you have permission to run queries:

            // ****** USERS WITH QUERY RUNNING PERMISSIONS ******
            // The users specified here will be allowed to run queries from the control panel.
            // See the above entries for more information on the format.
            // Please note that the ability to run queries is quite powerful. You may wish
            // to remove all user IDs from this list for security reasons.
            $canrunqueries = '';


            Then rebuild your post cache in your:

            Admin CP -> Import & Maintenance -> Update Counters -> Rebuild Post Cache

            Comment

            • Watson
              Senior Member
              • May 2004
              • 281

              #7
              I hadn't added hidden=true at the end of mine to get it to work

              Comment

              • Zeckson
                Member
                • Dec 2010
                • 42
                • 4.1.x

                #8
                Hi. I followed the instruction given by Jake and I entered this into the forum box:

                <embed src=http://www.themusichutch.com/listen.php?songid=102487 autostart="true" loop="true">

                It did not work but it gave me the exact thing word for word in my post. Did I do anything wrong?

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...