The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

PHPBB3 First Post Background

View previous topic View next topic Go down

PHPBB3 First Post Background

Post by Honor on 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.))

Honor
Forumember

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

http://blueplanet.road2us.com

Back to top Go down

Re: PHPBB3 First Post Background

Post by Guest on 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.

Guest
Guest


Back to top Go down

Re: PHPBB3 First Post Background

Post by Honor on 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.

Honor
Forumember

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

http://blueplanet.road2us.com

Back to top Go down

Re: PHPBB3 First Post Background

Post by Guest on 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;}

Guest
Guest


Back to top Go down

Re: PHPBB3 First Post Background

Post by Honor on 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.

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

Post by Guest on 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!

Guest
Guest


Back to top Go down

Re: PHPBB3 First Post Background

Post by Guest on 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 (:

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


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