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
3 posters

    Remove these words ...

    avatar
    Ahmed.K
    Forumember


    Posts : 347
    Reputation : 4
    Language : English

    Solved Remove these words ...

    Post by Ahmed.K May 24th 2014, 2:26 pm

    by javascript, remove these words "Users browsing this forum:", how?

    <div id="usersonline">Users browsing this forum: Admin, Admin1, Admin2,...</div>
    avatar
    Guest
    Guest


    Solved Re: Remove these words ...

    Post by Guest May 24th 2014, 2:42 pm

    Go to your Admin Panel > Display > Templates > General > topics_list_box:
    - Add this at the very end of the topic_list_box template:
    Code:
    <style>#stats {
    display: none;
    }
    levy
    levy
    Hyperactive


    Male Posts : 2631
    Reputation : 350
    Language : English, Romanian
    Location : Romania

    Solved Re: Remove these words ...

    Post by levy May 24th 2014, 2:51 pm

    Add this code in your css;
    Code:
    #usersonline{
    font-size:0px;
    }

    #usersonline a{
    font-size:12px!important;
    }
    avatar
    Ahmed.K
    Forumember


    Posts : 347
    Reputation : 4
    Language : English

    Solved Re: Remove these words ...

    Post by Ahmed.K May 24th 2014, 3:07 pm

    @Mark wrote:Go to your Admin Panel > Display > Templates > General > topics_list_box:
    - Add this at the very end of the topic_list_box template:
    Code:
    <style>#stats {
    display: none;
    }

    No, I want remove just these words "Users browsing this forum:"

    candy_fear wrote:Add this code in your css;
    Code:
    #usersonline{
    font-size:0px;
    }

    #usersonline a{
    font-size:12px!important;
    }

    No, this will remove all the commas too.
    avatar
    Guest
    Guest


    Solved Re: Remove these words ...

    Post by Guest May 24th 2014, 3:27 pm

    Add this to your Javascript: (Set to Sub-forums)
    Code:
    function changeText(word, replacement) {
        for (var name in word) {
            document.getElementById('stats').innerHTML = document.getElementById('stats').innerHTML.replace(RegExp(name, 'g'), word[name]);
        }
    }

    $(window).load(function () {
        changeText({
            'Users browsing this forum: ': ' ',
        });
    });
    avatar
    Ahmed.K
    Forumember


    Posts : 347
    Reputation : 4
    Language : English

    Solved Re: Remove these words ...

    Post by Ahmed.K May 24th 2014, 5:58 pm

    I made something and it works fine:

    $(function(){
    var oldtext = $('#usersonline').html();
    var newtext = oldtext.replace('Users browsing this forum:','');
    $('#users_online').html(newtext);
    });

    Thanks anyway.

    By the way, Mark, do you have any idea about this problem?
    https://help.forumotion.com/t133248-adding-the-profile-link
    If so, please post your solution there.
    Derri
    Derri
    Helper
    Helper


    Male Posts : 8711
    Reputation : 638
    Language : English & Basic French
    Location : Scotland, United Kingdom

    Solved Re: Remove these words ...

    Post by Derri May 24th 2014, 6:26 pm

    Ahmed.K wrote:I made something and it works fine:

    $(function(){
    var oldtext = $('#usersonline').html();
    var newtext = oldtext.replace('Users browsing this forum:','');
    $('#users_online').html(newtext);
    });

    Thanks anyway.

    By the way, Mark, do you have any idea about this problem?
    https://help.forumotion.com/t133248-adding-the-profile-link
    If so, please post your solution there.

    Since you've said you've solved the problem. Topic Archived.

      Current date/time is September 22nd 2024, 3:37 pm