Posted: Thu Oct 29, 2009 11:14 am Post subject: Some site help
So, I have a site and I need help figuring how to do something. I finally got the coding to show all the user groups at the bottom of the page. Now, I just need to know how to code it so the groups show up in different colors and then the user's name show in the corresponding colors _________________ Geassnosenkai.myfreeforum.org
Quote:
Riku Tensei: Can you spell Anti-disestablishmentarrianism off the top of your head?
overkill: A-n-t-i---d-i-s-e-s-t-a-b-l-i-s-h-m-e-n-t-a-r-r-i-a-n-i-s-m- o-f-f t-h-e t-o-p o-f y-o-u-r h-e-a-d.
Where you have the names for the groups, as in the specific place you've typed it in, you should be able to use HTML coding to change the colour. Either that or BB code. It should specify which you're able to use.
Once you have the place just type in the tags; you can use a colour reference chart or do it the lazy way and use the preset colours (red, yellow, purple, blue, indigo, etc). _________________
I've been searching for like a half hour and I can't find the coding for said area
Also, I should point out this is my first time working with coding _________________ Geassnosenkai.myfreeforum.org
Quote:
Riku Tensei: Can you spell Anti-disestablishmentarrianism off the top of your head?
overkill: A-n-t-i---d-i-s-e-s-t-a-b-l-i-s-h-m-e-n-t-a-r-r-i-a-n-i-s-m- o-f-f t-h-e t-o-p o-f y-o-u-r h-e-a-d.
phpBB2 I believe
I used myfreeforum.org _________________ Geassnosenkai.myfreeforum.org
Quote:
Riku Tensei: Can you spell Anti-disestablishmentarrianism off the top of your head?
overkill: A-n-t-i---d-i-s-e-s-t-a-b-l-i-s-h-m-e-n-t-a-r-r-i-a-n-i-s-m- o-f-f t-h-e t-o-p o-f y-o-u-r h-e-a-d.
Add me on MSN and I'll teach you how to do it from there, or ask someone else on your MSN list because it requires a bit of explanation if you haven't used code before. _________________
I'll add you on MSN when I can get on a computer that doesn't have any restrictions or sites blocked.
Also, PM me your MSN account name since I don't use MSN, I use meebo _________________ Geassnosenkai.myfreeforum.org
Quote:
Riku Tensei: Can you spell Anti-disestablishmentarrianism off the top of your head?
overkill: A-n-t-i---d-i-s-e-s-t-a-b-l-i-s-h-m-e-n-t-a-r-r-i-a-n-i-s-m- o-f-f t-h-e t-o-p o-f y-o-u-r h-e-a-d.
Sorry, I overlooked it then. Don't worry about being busy, I probably won't be on a computer until saturday _________________ Geassnosenkai.myfreeforum.org
Quote:
Riku Tensei: Can you spell Anti-disestablishmentarrianism off the top of your head?
overkill: A-n-t-i---d-i-s-e-s-t-a-b-l-i-s-h-m-e-n-t-a-r-r-i-a-n-i-s-m- o-f-f t-h-e t-o-p o-f y-o-u-r h-e-a-d.
It is a bit tricky to set up at first, but easy to maintain once done:
BE SURE TO SAVE ALL FILES IN NOTEPAD OR WORD BEFORE EDITING, IN CASE YOU MESS UP YOU CAN JUST COPY THE SAVED FILES FROM NOTEPAD/WORD BACK IN...SO YOU DO NOT MESS ANYTHING UP! EVEN A SMALL TYPO IN CODE CAN SEVERELY MESS UP A WHOLE FORUM
Spoiler:
The first thing you need to do is work out how many of your ranks you wish to give a color too.
1. Goto admin panel --- 2. General --- Ranks.
You should now see a screen like this:
Here you will see the table Css Class with the Ranks numbered,this is where you get the .css information from, please make a note of YOUR (not the example shown here) rank numbers and the rank names.
2. Now goto Admin panel -- 3. Styles -- Edit Templates/Logos -- using the top drop bar choose the template you wish to edit.
Now look at the top in the area marked Choose Forum template/javascript/css File to Edit use the drop down bar and find
.css Or Overall_header.tpl This depends on where your .css is controlled, templates like Sub Silver have the .css in the overall_header.tpl
To find how yours is controlled goto your overall_header.tpl and look for a massive code like this:
<style type="text/css">
<!--
/*
The original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com
NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: {T_BODY_BGCOLOR};
scrollbar-face-color: {T_TR_COLOR2};
scrollbar-highlight-color: {T_TD_COLOR2};
scrollbar-shadow-color: {T_TR_COLOR2};
scrollbar-3dlight-color: {T_TR_COLOR3};
scrollbar-arrow-color: {T_BODY_LINK};
scrollbar-track-color: {T_TR_COLOR1};
scrollbar-darkshadow-color: {T_TH_COLOR1};
}
/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: {T_TD_COLOR2};
background-image: url(templates/myfs_testhtml1/images/{T_TH_CLASS3});
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
background-color: {T_BODY_LINK}; height: 25px;
background-image: url(templates/myfs_testhtml1/images/{T_TH_CLASS2});
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}
/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
/* Forum category titles */
.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink { text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav { text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover { text-decoration: underline; }
/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
/* Location, number of posts, post date etc */
.postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }
/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link { text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}
/* Form elements */
input,textarea, select {
color : {T_BODY_TEXT};
font: normal {T_FONTSIZE2}px {T_FONTFACE1};
border-color : {T_BODY_TEXT};
}
/* The text input fields background colour */
input.post, textarea.post, select {
background-color : {T_TD_COLOR2};
}
input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : {T_TR_COLOR1};
color : {T_BODY_TEXT};
font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}
/* The main submit button option */
input.mainoption {
background-color : {T_TD_COLOR1};
font-weight : bold;
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/myfs_testhtml1/formIE.css");
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
If you do not see something like above then your .css is controlled in the .css.tpl file, if you do see the code above in your overall_header.tpl, then you need to make the edits in your overall_header.tpl
Note.
.css will be named something like myff_[YOURFORUMNAME]1.css
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
You can change the size of the text by changing 12px to something of your choice for example 14px.
Now when members that come on who have the ranks you have put in the .css they will have the new colours.
Questions?
_________________
Dog carcass in alley this morning, tire tread on burst stomach. This city is afraid of me. I have seen its true face. The streets are extended gutters and the gutters are full of blood and when the drains finally scab over, all the vermin will drown. The accumulated filth of all their sex and murder will foam up about their waists and all the whores and politicians will look up and shout "Save us!"... and I'll look down and whisper "No." They had a choice, all of them. They could have followed in the footsteps of good men like my father or President Truman. Decent men who believed in a day's work for a day's pay. Instead they followed the droppings of lechers and communists and didn't realize that the trail led over a precipice until it was too late. Don't tell me they didn't have a choice. Now the whole world stands on the brink, staring down into bloodly Hell, all those liberals and intellectuals and smooth-talkers... and all of a sudden nobody can't think of anything to say.
Everwill wrote:
Pretty sure the episode count is over 9000.
^I got RRoD! Xbox Sent Away On: 11/1/09^
The Box Box Jutsu Roleplaying Characters: No RPC No RPC No 3rd RPC No 4th RPC RPG Stats: Shinobi Rank: Kage Village: Kirigakure Fame: 0 Reputation: Training Points: N/A Inventory: Tools for making NRC v4.5!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum