The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove these words ...

View previous topic View next topic Go down

Solved Remove these words ...

Post by Ahmed.K on 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>

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Solved Re: Remove these words ...

Post by @Mark on 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;
}

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: Remove these words ...

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

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

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

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Remove these words ...

Post by Ahmed.K on 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.

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Solved Re: Remove these words ...

Post by @Mark on 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: ': ' ',
    });
});

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: Remove these words ...

Post by Ahmed.K on 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?
http://help.forumotion.com/t133248-adding-the-profile-link
If so, please post your solution there.

Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Solved Re: Remove these words ...

Post by Derri on 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?
http://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.


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8386
Reputation : 577
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

View previous topic View next topic Back to top


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