Topic: How to change the colored boxes that show news posts...
The colored boxes are cool, but is there any documentation on how to change them to little pictures and your own sprites or something?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 discussion → How to change the colored boxes that show news posts...
The colored boxes are cool, but is there any documentation on how to change them to little pictures and your own sprites or something?
It looks like it is just done through css...but is there a way to mod it so that you can put little sprites in there instead?
same area of the styles but edit them to use images instead of remove them:
http://wiki.punres.org/Remove_post_icons
in style/<stylename>.css
/****************************************************************/
/* 10. POST STATUS INDICATORS */
/****************************************************************/
/* 10.1 These are the post status indicators which appear at the left of some tables.
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
.isticky = sticky topics. By default only .inew is different from the default.*/
DIV.icon {
FLOAT: left;
MARGIN-TOP: 0.1em;
MARGIN-LEFT: 0.2em;
DISPLAY: block;
BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em;
BORDER-STYLE: solid
}
DIV.searchposts DIV.icon {MARGIN-LEFT: 0}
/* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The
margin creates space for the post status indicator */
TD DIV.tclcon {MARGIN-LEFT: 2.3em}
Hopefully you can glean some info out of this topic: http://punbb.org/forums/viewtopic.php?pid=54369#p54369
couple more links:
http://punbb.org/forums/viewtopic.php?id=9573
http://punbb.org/forums/viewtopic.php?id=8578
hhmm...what kind of a post is the .iredirect going to refer too?
The others are easy to figure out as to what they are for and I can code that in to the css without any issues....I just don't understand what the redirect forums is.
When you use a forum to just contain a link, like the PunRes in here
A redirect forum is one where there is no forum but just a link to another forum. There are some here if you look at the foreign language forums on the index page.
Thanks guys. I'm guessing we really don't want those sprites to be bigger than 15x15 or something like that. Seems to make sense at least.
PunBB Forums → PunBB 1.2 discussion → How to change the colored boxes that show news posts...
Powered by PunBB, supported by Informer Technologies, Inc.