The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

PHPBB3 First Post Background

Go down

PHPBB3 First Post Background Empty PHPBB3 First Post Background

Post by Honor October 24th 2010, 7:45 pm

By now those of you who like to read every thread know I run a Role Play forum Razz Our games are mission based, and I would really like to have the "first post" attached to every page, and make it stand apart from the others with a simple background picture on it. It holds the mission details, settings, goals, players, etc, and to have it on top of every page with the same look as the other posts doesn't always work.

I've searched my CSS code and all I could find was a First Post Break code to change. What is the code for the first post box? I know in PHPBB2 it has a separate template, so it has to be a separate div that I can change the properties of (seeing as how it has an added code to pull up the "First post reminder" in it as well).

I might be switching to PHPBB2 after this, so I can get to the templates, but before I make that kind of decision I'd really appreciate a simple fix that would let me just change the background of the First Post.

((Yes, I've already gotten it to show on every topic.))
avatar
Honor
Forumember

Female Posts : 172
Reputation : 17
Language : English
Location : Bouncing off the Walls

http://blueplanet.road2us.com

Back to top Go down

PHPBB3 First Post Background Empty Re: PHPBB3 First Post Background

Post by Guest October 24th 2010, 9:04 pm

Try this in your CSS:
Code:
div.clear + div.post {background: (color) (image) (repeat) (position);}
Fill in color/image/repeat/position as required for your custom background.

Note that this will not work with Internet Explorer 6.0, and it may have formatting issues with Internet Explorer 7.0. It should be fine with IE8 and all other browsers.
avatar
Guest
Guest


Back to top Go down

PHPBB3 First Post Background Empty Re: PHPBB3 First Post Background

Post by Honor October 24th 2010, 9:24 pm

Nope it didn't work. Here's what I had come up with:

Code:
div.clear + div.post {background: #000000 url('http://i21.servimg.com/u/f21/15/41/57/43/darken10.jpg') repeat: x;}

It did nothing =/ I placed it in the CSS by itself, just like that.
avatar
Honor
Forumember

Female Posts : 172
Reputation : 17
Language : English
Location : Bouncing off the Walls

http://blueplanet.road2us.com

Back to top Go down

PHPBB3 First Post Background Empty Re: PHPBB3 First Post Background

Post by Guest October 24th 2010, 9:35 pm

Your syntax was incorrect. Try this:
Code:
div.clear + div.post {background: #000000 url(http://i21.servimg.com/u/f21/15/41/57/43/darken10.jpg) repeat-x;}
avatar
Guest
Guest


Back to top Go down

PHPBB3 First Post Background Empty Re: PHPBB3 First Post Background

Post by Honor October 24th 2010, 9:42 pm

So close! Two punctuation marks off Razz Syntax isn't my thing, obviously...

It worked, thanks Smile Yay! Now if only they'd open the templates so I could hide the "Re: ..." text on every post. Razz You wouldn't happen to know that one, would ya? In CSS I mean.
avatar
Honor
Forumember

Female Posts : 172
Reputation : 17
Language : English
Location : Bouncing off the Walls

http://blueplanet.road2us.com

Back to top Go down

PHPBB3 First Post Background Empty PHPBB3 First Post Background

Post by Guest October 24th 2010, 9:46 pm

You should know that this CSS rule will work on the first post on a page. So if you have the option to display the first post on every page activated, it will work perfectly for you. If you have that option turned off, there is nothing that can be done on forumotion, templates or otherwise, that would provide a custom background for the first post of a topic, and ONLY the first post.

What Re:? There isn't one in my post!
avatar
Guest
Guest


Back to top Go down

PHPBB3 First Post Background Empty Re: PHPBB3 First Post Background

Post by Guest October 24th 2010, 10:02 pm

Dion, you just copied the first post title and paste it in your reply Wink not from the quick reply (:
avatar
Guest
Guest


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum