MyBB Community Forums

Full Version: changing character color portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How can I change the letter color from the characters in my portal without changing them in my forum.
This is my portal so far

http://www.ikf-forum.eu/portal.php

The list of members who are online is blue, I want to have it black or white.
The same in signin/login View New Posts/View Today's Posts.

I want to give them another color without that the colors changing on other places.
Check the admin panel/templates. Look for whoisonline or theme css. Maybe you need css class for some elements like smalltext - change this class to your class e.g. class="members_online".

Or you can use mysql query like me, bat it's not recommended Wink table [mybb_prefix] themes, field "css"
Can you help me with that I want all membernames and the wordt register in black. THANKS
spinning Wrote:Can you help me with that I want all membernames and the wordt register in black. THANKS
I just enter to your site and what i see:

from page source you know, which template you need to change:
<!-- start: portal_welcome_guesttext -->
this in Admin page -> templates -> portal templates -> portal_welcome_guesttext
There is: <span class="smalltext">{$lang->guest_welcome_registration}<br /> And now, change className "smalltext" to, hmm, "reg_font". Save the template.
Next go to themes menu (still admin panel)
Select Templates -> Add/modify. Then select your theme, choise edit and Go.
At the end you can find "Additional CSS"
There you can write
.reg_font {
color: #000;
}

original class for link is changed, so maybe you need add (under color:#...) font-size

Let me know about result Smile
and who is online:

from page source Wink : "<!-- start: portal_whosonline -->". From where i konw? When you loking to source, try find e.g. "adelaida" (member's nick) and look what it's before - yu must looking for something like "<!--start: ..."
Then you must go to admin page / templates/portal templates / portal_whosonline_memberbit
{$comma}<a href="{$mybb->settings['bburl']}/member.php?...">{$user['username']}</a>
only change <a class="member_link" href=...
and create class member_link like before for "reg_font"
Quote:Select Templates -> Add/modify. Then select your theme, choise edit and Go.
At the end you can find "Additional CSS"

I think you mean theme because in templates there is no "Additional CSS".[/quote]
But still the links View New Posts and View Today's Posts are in blue.

Quote:<a class="member_link" href=...

what must be in place of ...[/quote]
spinning Wrote:
Quote:Select Templates -> Add/modify. Then select your theme, choise edit and Go.
At the end you can find "Additional CSS"

I think you mean theme because in templates there is no "Additional CSS".
Smile my mistake, thats right - this is in themes

spinning Wrote:But still the links View New Posts and View Today's Posts are in blue.
this is in admin/templates/ portal_welcome_membertext
There you have something like:
<span [b] class="smalltext" [/b]><em>{$lang->member_welcome_lastvisit}</em> {$lastvisit}<br />
{$lang->since_then}<br />
<strong>&raquo;</strong> {$lang->new_announcements}<br />
<strong>&raquo;</strong> {$lang->new_threads}<br />
<strong>&raquo;</strong> {$lang->new_posts}<br /><br />
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->view_new}</a><br /><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->view_todays}</a>
</span>
Only change <span class="smalltext" > to <span class="member_link" >

spinning Wrote:
Quote:<a class="member_link" href=...
what must be in place of ...
text "<a class="smalltext" href=.." change to ""<a class="member_link" href=.."

Next in themes add new Additional theme:
.member_link { color: #000; }
.member_link:hover {color:#000; }
.member_link:link {color:#000; }
.member_link:visited {color:#000; }
.member_link:active {color:#000; }
in this way you can choice colors for links (e.g. when you move mouse over the link)
That's all
I guess it still don't work or I make mistakes.

I tell you what I did.
first the colors of the names from people who are online
1. TEMPLATES - MODIFY - EXPAND
2. portal-templates - portal_whosonline
3. changed
<tr>
<td class="trow1">
<span class="smalltext">
to
<tr>
<td class="trow1">
<span class="member_link">
4. THEMES - MODIFY/DELETE
5. in the standard Additional CSS I add
.autocomplete {
text-align: left;
}

.reg_font {
color: #000;
}

.member_link { color: #000; }
.member_link:hover {color:#000; }
.member_link:link {color:#000; }
.member_link:visited {color:#000; }
.member_link:active {color:#000; }
I also delete this line

Quote:}

.reg_font {
color: #000;
}

from this CSS because in the forum also colors change,
spinning Wrote:I also delete this line

Quote:}

.reg_font {
color: #000;
}

from this CSS because in the forum also colors change,

Did you delete:
.reg_font {
color: #000;
}

Or:
}

.reg_font {
color: #000;
}

If you did the second, you will have deleted a closing parenthesis for .autocomplete which will need putting back in.
Pages: 1 2