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.

changing the text in who's online

Go down

In progress changing the text in who's online

Post by novacane. on August 2nd 2013, 4:04 pm

hi,
is there any way to change the text in the who's online?
well if i explain it a bit more, i'm just trying to modify the users online. and in the templates there's only a 'premade' code for the text. and i'm wondering if there's a way to add my own text instead of the Registered Users: and then modify the links myself?
avatar
novacane.
Forumember

Female Posts : 59
Reputation : 3
Language : english

Back to top Go down

In progress Re: changing the text in who's online

Post by Sir Chivas™ on August 5th 2013, 4:14 am

Hi,

I'm not sure if there's a possible way to edit those. Since they're variables. I know for a fact that the only one that can be edited is usergroup legend.




Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please y it as solved.


avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

In progress Re: changing the text in who's online

Post by novacane. on August 5th 2013, 11:03 am

okay thanks anyway Smile 
it can be locked now
avatar
novacane.
Forumember

Female Posts : 59
Reputation : 3
Language : english

Back to top Go down

In progress Re: changing the text in who's online

Post by E-Mark on August 5th 2013, 11:45 am

Phpbb2: (Just in case someone in need of it)
Code:
function changeText(word, replacement) {
    for (var name in word) {
        document.getElementById('page-body').innerHTML = document.getElementById('page-body').innerHTML.replace(RegExp(name, 'g'), word[name]);
    }
}

$(window).load(function () {
    changeText({
        'In total there is ': ' ', 
        'In total there are ': ' ', 
        'Registered Users:': ' ',
        'user online ::': 'people are online (in the past 15 minutes):',
        'users online ::': 'people are online (in the past 15 minutes):',
    });
});
avatar
E-Mark
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

http://coding-spot.darkbb.com/

Back to top Go down

In progress Re: changing the text in who's online

Post by masqelinus. on August 5th 2013, 12:57 pm

it can be done with css and html. if we think the same thing Smile
in templates go index_body -> scroll down and find {*LOGGED_IN_USER_LIST*} and here you can edit the online users list as you wish.

example
CSS code:
Code:
.membersonline{
  font-family: georgia;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 1px;
  text-align: center;
width: 70%;
  margin-left: 10%;
}

html in templates:
Code:
<div class="membersonline">{*LOGGED_IN_USER_LIST*} </div>
but of course without * Wink

with this code you should get something like this:


now you can edit css code as you wish and make it as you want. hope this is what you were looking for Wink
avatar
masqelinus.
New Member

Female Posts : 14
Reputation : 2
Language : English
Location : Slovenia

Back to top Go down

In progress Re: changing the text in who's online

Post by novacane. on August 6th 2013, 12:56 pm

no no, i know how to do that, i just wanted to do something differently and realized it can't be done and mark helped me as much as he could (:
avatar
novacane.
Forumember

Female Posts : 59
Reputation : 3
Language : english

Back to top Go down

Back to top


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