Adding color to the post frame... uhmm, what?

Generic, discuss anything about or related to phpBB3 (Olympus) here.
-- No support or MOD requests --
Forum rules
READ: StarTrekGuide.com Board Rules

Generic discussion of anything phpBB or phpBB3 "Olympus" related.
Only specific phpBB discussions please.

No Support or MOD Requests

Adding color to the post frame... uhmm, what?

Postby HappyWarrior » 14 Jun 2011, 16:49

yeah, thats probably what you're thinking right now. im using a custom theme and im wondering about something, just to start of i'll redirect you to a random topic at my board: http://www.discusser.org/viewtopic.php?f=19&t=33.

- now, as you can see. theres a frame around the posts. i wanna make so that some groups have colored post frames. specifficly mods and admins. can it be done and how hard would it be? would it be uber super duper mega giga hard to do for a n00b like me? or could it be just a simple code that i can just add gropus and color to? im going to hire a webdesigner anyway, but i want to try and do it myself before passing it along to a pro.

thank you for your time

- Eivind
HappyWarrior    
Cadet I
Cadet I
 
Posts: 15
Joined: 26 May 2011, 11:37
Gender: Male
phpBB Knowledge: 2




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Adding color to the post frame... uhmm, what?

Postby Honor » 16 Jun 2011, 10:34

Is this a phpBB3 install?
BluePlanet RP
my own creation.

Host: Host Monster
Version: 3.0.9
Honor    
STG Moderator
STG Moderator
 
Posts: 328
Joined: 23 Dec 2010, 10:53
Gender: Female
phpBB Knowledge: 2

Re: Adding color to the post frame... uhmm, what?

Postby HappyWarrior » 17 Jun 2011, 23:06

it is indeed. 3.0.8 to be exact :)
HappyWarrior    
Cadet I
Cadet I
 
Posts: 15
Joined: 26 May 2011, 11:37
Gender: Male
phpBB Knowledge: 2

Re: Adding color to the post frame... uhmm, what?

Postby faku1810 » 11 Jul 2011, 04:03

I'm not sure at all, but I recall seeing a MOD that would let you set specific post colors, (not sure if it was a per group setting or you had to manually give permission to each group to choose the post color though)

you should check the MODs database in phpbb's web. :scratch:

Edit: I just checked it myself, there's a MOD called "Change post background colour", and it should work in phpbb 3.0.8 (not sure about 3.0.9 which was just released)
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Adding color to the post frame... uhmm, what?

Postby Sniper_E » 11 Jul 2011, 15:06

Warrior, which class is creating that border color around each post?

I know in prosilver it's the bg1 and bg2 depending on the even or odd post that gives your different background colors... like:
Code: Select all
   <div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->">

Now if you added an IF statement in this line you could change that background like this:
Code: Select all
   <div id="p{postrow.POST_ID}" class="post <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.RANK_TITLE eq "Site Admin" --> bg4<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->">
Then IF the poster was a Site Admin the bg4 color would over ride the other colors.
And you would have to add a .bg4 { background-color: #AA0000; } to your colours.css

Do you know which class in your viewtopic_body.html template is giving your posts that thick gray border color?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6


Return to Olympus Discussions

Who is online

Users browsing this forum: Exabot [Bot] and 5 guests