Welcome Guest[3.21.93.139], connected from Seattle, Washington
Color for male and female
|
Post: #11
|
|||
|
|||
RE: Color for male and female
Ah, glad to see you can solved that
|
|||
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. |
|||
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 |
|||
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 : 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. |
|||
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. This is where it goes over my head sorry, the global css i understand but the part im stuck Code:[Highlight] < 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? |
|||
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 :
Code:[Highlight] <span class="largetext">{$post['profilelink']}</span> You just need to surround it with the gender colouring span section : Code:[Highlight] <span class="{$post['fid3']}"> ... </span> |
|||
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="{$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? |
|||
Post: #18
|
|||
|
|||
RE: Color for male and female
|
|||
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 :
Code:[Highlight] <span class="largetext">{$post['profilelink']}</span> Code:[Highlight] <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! |
|||
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: @exdiogene thanks for help up to now, almost Code:[Highlight] <div class="author_information"> I copied this exact code above and replaced it with the original (default theme postbit) but still no color change ? |
|||
0 member(s) viewed this thread in the last 365 days :
|
« Next Oldest | Next Newest »
|
WWWHostingServer.com
|
||||||
|
||||||
|
|
|
|
|
Powered By MyBB, © 2002-2024 MyBB Group. Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes. Hosting provided by WWWHostingServer.com |