The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Move widget to top (EDITED)

    BASSLovah1
    BASSLovah1
    Forumember


    Posts : 43
    Reputation : 1
    Language : Romanian - English - Spanish

    Solved Move widget to top (EDITED)

    Post by BASSLovah1 June 17th 2014, 1:13 pm

    Hello. I want to add a radio to the top of the forum. At the moment I have the radio player in the home page message but I want to have a widget at the top so I can have the player on all pages. Also, if it's possible to edit the code to add more than one station.

    This is the code I'm using for the radio
    Code:
    <div align="center">
       <script type="text/javascript" src="http://www.museter.com/mrp.js"></script><script type="text/javascript">
    MRP.insert({
    'url':'http://stream.profm.ro:8012/profm.mp3',
    'lang':'en',
    'codec':'mp3',
    'volume':70,
    'autoplay':true,
    'buffering':1,
    'title':'ProFM',
    'bgcolor':'#FFFFFF',
    'skin':'eastanbul',
    'width':467,
    'height':26
    });
    </script>


    Last edited by BASSLovah1 on June 18th 2014, 12:08 pm; edited 3 times in total
    Jophy
    Jophy
    ForumGuru


    Male Posts : 17922
    Reputation : 836
    Language : English
    Location : Somewhere

    Solved Re: Move widget to top (EDITED)

    Post by Jophy June 18th 2014, 9:36 am

    Hello,

    We don't have an option to place a widget on top portion, you can, however just place the script on templates, particularly topic_list_box and view topic_body (on general)  Edit 
    This is for Invision.
    For topic_list_box, search this:

    Code:
    <!-- END multi_selection -->

    And add your code below it.

    For the viewtopic_body, search this:

    Code:
    <ul id="navstrip" class="clearfix">

    And add your code on top of it.

    With regards to adding more station, have you tried searching for source link that has more than one station?
    BASSLovah1
    BASSLovah1
    Forumember


    Posts : 43
    Reputation : 1
    Language : Romanian - English - Spanish

    Solved Re: Move widget to top (EDITED)

    Post by BASSLovah1 June 18th 2014, 11:25 am

    Thank you very much! Editing the templates works like a charm! 

    I will look myself for a code that allows more than 1 stream, I just thought it was something easy to modify in order to add more than 1 station.

    Cheers Very Happy


    EDIT: adding the code in viewtopic_body, above that line, makes all the messages centered. Any way to fix this?
    EDIT2: Fixed the centering issue by adding </div> to the code (it was missing)
    Jophy
    Jophy
    ForumGuru


    Male Posts : 17922
    Reputation : 836
    Language : English
    Location : Somewhere

    Solved Re: Move widget to top (EDITED)

    Post by Jophy June 18th 2014, 5:09 pm

    You're welcome and glad to help Very Happy Thank you for providing the solution too. Very Happy


      Current date/time is November 11th 2024, 10:48 pm