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

View previous topic View next topic 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?

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 mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
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

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):',
});
});

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

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 (:

novacane.
Forumember

Female Posts : 59
Reputation : 3
Language : english

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