Current time: 03-19-2024, 12:06 AM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[54.235.6.60], connected from Ashburn, Virginia United States
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Color for male and female
07-23-2010, 03:26 PM
Post: #11
RE: Color for male and female
Ah, glad to see you can solved that Wink
Find all posts by this user
Quote this message in a reply
11-08-2014, 06:47 PM (This post was last modified: 11-08-2014 11:09 PM by Technoman.)
Post: #12
RE: Color for male and female
Ok i haven't played around in awhile on a mybb board so i have got back into it and redone everything mentioned in this thread but now im stuck on the color change for username on gender ?

Example: So username would be blue for men and pink for female username?

I just don't want to have create another user group hopefully the Username color is possible for these 2 genders.

Technoman's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2014, 07:57 AM
Post: #13
RE: Color for male and female
Have you done what was mentioned in this message :

http://www.mybbcodes.com/showthread.php?...2#pid12902

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2014, 08:24 AM (This post was last modified: 11-09-2014 08:28 AM by Technoman.)
Post: #14
RE: Color for male and female
(11-09-2014 07:57 AM)exdiogene Wrote:  Have you done what was mentioned in this message :

http://www.mybbcodes.com/showthread.php?...2#pid12902

Yes 1 profile field is already there by default in ACP and I enabled so its required upon registration to choose man or women ONLY and code placed so fid3 replaced the text in postbit to the left from (Gender: male) to (Gender: icon.gif) ONLY in postbit, im just stuck at where i would need to edit so that the 2 colors would be displayed for man blue and women pink USERNAME automatically.

Thanks.

Technoman's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2014, 08:45 AM (This post was last modified: 11-09-2014 08:47 AM by Technoman.)
Post: #15
RE: Color for male and female
(07-21-2010 08:54 PM)exdiogene Wrote:  For the background you would simply put the username section inside a span tag with a male or female class.

Something like : < span class="{$post['fid3']}" >< strong >< span class="largetext">{$post['profilelink']}< /span >< /strong >< /span >

You now have to create the classes in the CSS file by adding this in AdminCP -> Templates & Style -> Themes -> YourTheme -> global.css

.male {
background: #e0e0ff;
padding: 2px;
}
.female{
background: #ffe0e0;
padding: 2px;
}

I have temporarely installed these changes to MyBBCodes.com, have a look at a few members posts...

This is where it goes over my head sorry, the global css i understand but the part im stuck

< span class="{$post['fid3']}" >[/b]< strong >< span class="largetext">{$post['profilelink']}< /span >< /strong >[b]< /span >

a. where does this code go above
b. will the code automatically change the color of USERNAME according to gender?

Technoman's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2014, 09:56 AM (This post was last modified: 11-09-2014 09:58 AM by exdiogene.)
Post: #16
RE: Color for male and female
It goes inside the template where you want the username background colour to change. Mainly in the postbit template where you will find :
<span class="largetext">{$post['profilelink']}</span>

You just need to surround it with the gender colouring span section :
<span class="{$post['fid3']}"> ... </span>

Wink

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2014, 09:39 PM
Post: #17
RE: Color for male and female
(11-09-2014 09:56 AM)exdiogene Wrote:  It goes inside the template where you want the username background colour to change. Mainly in the postbit template where you will find :
<span class="largetext">{$post['profilelink']}</span>

You just need to surround it with the gender colouring span section :
<span class="{$post['fid3']}"> ... </span>

Wink

<span class="{$post['fid3']}"> ... </span>

So if i want Usernames for men gender and username for women gender to be their own color how to go about this?

Technoman's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2014, 09:52 PM
Post: #18
RE: Color for male and female
Here is what I am talking about

   

Technoman's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
11-10-2014, 09:45 AM (This post was last modified: 11-10-2014 09:46 AM by exdiogene.)
Post: #19
RE: Color for male and female
Simply replace this :
<span class="largetext">{$post['profilelink']}</span>
With this :
<span class="{$post['fid3']}"><span class="largetext">{$post['profilelink']}</span></span>

Inside your "postbit" template.

If you made the proper insertion in the style sheet, the background behind the username will be pink for "female" and blue for "male". But be sure that your profile field for the gender is really fid3! Wink

exdiogene's signature MyBBCodes.com administrator
Cool " It is not what you know that matters, it is what you do or do not do!"
Visit this user's website Find all posts by this user
Quote this message in a reply
11-10-2014, 08:36 PM (This post was last modified: 11-10-2014 08:38 PM by Technoman.)
Post: #20
RE: Color for male and female
(11-10-2014 09:45 AM)exdiogene Wrote:  
<span class="largetext">{$post['profilelink']}</span>

<span class="{$post['fid3']}"><span class="largetext">{$post['profilelink']}</span></span>

@exdiogene thanks for help up to now, almost

    <div class="author_information">
            <strong><span class="{$post['fid3']}"><span class="largetext">{$post['profilelink']}</span></span></strong> {$post['onlinestatus']}<br />
            <span class="smalltext">
                {$post['usertitle']}<br />
                {$post['userstars']}
                {$post['groupimage']}


I copied this exact code above and replaced it with the original (default theme postbit) but still no color change ? Angel

Technoman's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com