code to format the look of a future post?
2 posters
Page 1 of 1
code to format the look of a future post?
Our forum has post number 100,000 approaching in a month or two. I would like to make it a big surprise for the poster who writes #100,000. I have found this code to change the post background color/image of a future post.
My question: Is there a way to put text into post 100,000 ahead of time? Example: Can I make the words "Congratulations...You're a Winner!" show up in post 100,000 when it is posted?
- Spoiler:
- Code:
/*-----------------------MAKES AN INDIVIDUAL POST BG CHANGE COLORS-----------*/
#p100000.post.row1{background-color:#b016b8;
background-image: url(http://i47.servimg.com/.../body-b10.png);
background-position: top left;
background-repeat:repeat;
text-indent:0px;}
#p100000.post.row2{background-color:#b016b8;
background-image: url(http://i47.servimg.com/.../body-b10.png);
background-position: top left;
background-repeat:repeat;
text-indent:0px;}
/*------------------------------END CHANGE POST COLOR-----------------*/
My question: Is there a way to put text into post 100,000 ahead of time? Example: Can I make the words "Congratulations...You're a Winner!" show up in post 100,000 when it is posted?
Re: code to format the look of a future post?
First, you don't need two rules to change the post itself. You only need this (make sure to replace the "..." in the background image URL with whatever belongs there!):
- Code:
#p100000.post{background-color:#b016b8;
background-image: url(http://i47.servimg.com/.../body-b10.png);
background-position: top left;
background-repeat:repeat;
text-indent:0px;}
- Code:
#p100000 .content:before {display:block; margin-bottom:5px; height:30px; line-height:30px; background:#fff; font-size:18px; text-align:center; content:'Congratulations!';}
Guest- Guest
Re: code to format the look of a future post?
Last edited by boffer10 on December 14th 2011, 8:12 pm; edited 1 time in total (Reason for editing : complete button disappeard)
Re: code to format the look of a future post?
Topic Solved & Moved Note: You can also help the staff member's work by EDITING your topic and marking it as solved. |
Jophy- ForumGuru
- Posts : 17922
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» get a weird code on each post
» Hide Code? or Post to See Content Code?
» New Post/No New Post Code(? I don't exactly know how to title this)
» Post Code Issues
» Code for showing post
» Hide Code? or Post to See Content Code?
» New Post/No New Post Code(? I don't exactly know how to title this)
» Post Code Issues
» Code for showing post
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum