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.

Remove these words ...

3 posters

Go down

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
Ahmed.K
Forumember

Posts : 347
Reputation : 4
Language : English

Back to top Go down

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;
}
avatar
Guest
Guest


Back to top Go down

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;
}
levy
levy
Hyperactive

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

https://portofolio.goodforum.net/

Back to top Go down

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
Ahmed.K
Forumember

Posts : 347
Reputation : 4
Language : English

Back to top Go down

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
Guest
Guest


Back to top Go down

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.
avatar
Ahmed.K
Forumember

Posts : 347
Reputation : 4
Language : English

Back to top Go down

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.
Derri
Derri
Helper
Helper

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

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum