|
[Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
|
|
08-08-2008, 03:42 PM
(This post was last modified: 08-08-2008 03:43 PM by aglioeolio.)
Post: #1
|
|||
|
|||
|
This is a nice feature if you want to use custom icons and don't want to kill your CPU usage (if is a Shared Host) - Without <img> tags to each Forum there will be lower http requests.
(I) New Style Sheet Create this CSS in ACP => Themes => Edit Theme => Add Stylesheet: custom_forum_icons.css Quote: [II] Template Edit Go to ACP => Templates & Style => Templates => Expand your Template Expand "Forum Bit Templates": forumbit_depth2_forum Replace: Quote: with: Quote: [III] Background Image and Screenshot Put "custom_forum_icons.png" in "\images\yourtheme\" folder See attachments .. Thanks Labrocca for Custom Forum Icons for 1.2x and texasli for the code in mybb 1.4 .. []s, Claudio
|
|||
|
08-16-2008, 03:00 PM
Post: #2
|
|||
|
|||
|
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
Ok I did all of that but there was one problem
Only that last forum category had an image http://i38.tinypic.com/15x23ch.jpg How do I edit the codes so they all have there own one? If You Are En I Tee, You Are Eeh
|
|||
|
08-16-2008, 07:07 PM
Post: #3
|
|||
|
|||
|
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
The important it´s that each forum ID you have, get 3 classes in CSS file: on_ID, off_ID and offlock_ID. This sequence: 1,2 and 3 is figurative
example: http://www.yoursite.com/forumdisplay.php?fid=38 will be: Quote:/* Margin */ Replace all "_1" to "_38" and you´ll get the idea When you have more than 3 Forums, just add some height to image canvas and add the new icons there and subtract 75pixels to last icon position in CSS background-position x,y,z and v = different forum IDs #on_x a, #off_x a { background-position: 0 -0px; } #on_y a, #off_z a { background-position: 0 -147px; } #on_z a, #off_z a { background-position: 0 -222px; } #on_v a, #off_v a { background-position: 0 -297px; } etc... You can get this "Y" position in Photoshop with pressing Ctrl+R and using pixels to scale []s, Claudio
|
|||
|
08-16-2008, 10:04 PM
Post: #4
|
|||
|
|||
|
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
Ok how do I make it so that each of them have there own image?
If You Are En I Tee, You Are Eeh
|
|||
|
08-19-2008, 11:10 AM
Post: #5
|
|||
|
|||
|
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
you need to edit this image to your needs
try it with your own forum IDs in CSS and you´ll get the idea ![]() if you dont know how to work with 'CSS' read some tutorials first, it´s easy and usefull stuff []s, Claudio
|
|||
|
08-27-2008, 12:40 AM
Post: #6
|
|||
|
|||
|
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
This was extremely helpful - thanks!
|
|||
|
09-25-2008, 09:50 AM
Post: #7
|
|||
|
|||
|
CSS FAQ
There is no need of such a lengthy piece of code, when by using CSS font shorthand rule you can write the whole style in a single line.Human beings understand a particular topic more clearly if it is explained with the help of examples. log on this website and take help
CSS Tools, |
|||
|
09-25-2008, 09:28 PM
Post: #8
|
|||
|
|||
|
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
Thanks! But now Labrocca has released a plugin for this...
|
|||
|
11-14-2008, 08:12 PM
(This post was last modified: 12-20-2008 09:23 PM by aglioeolio.)
Post: #9
|
|||
|
|||
RE: [Tutorial][Mybb 1.4] Pure CSS "Custom Forum Icons" with only 1 image
(09-25-2008 09:50 AM)Pitter Wrote: There is no need of such a lengthy piece of code, when by using CSS font shorthand rule you can write the whole style in a single line.Human beings understand a particular topic more clearly if it is explained with the help of examples. log on this website and take help I didn´t understand what you mean... the image itself is an example if you know how mybb forum icons works ('on', 'off' and 'offlock' states) (09-25-2008 09:28 PM)Infranight Wrote: Thanks! But now Labrocca has released a plugin for this... OK but that´s not for shared hosts like mine, as to each ficon there is a new http request in mybb Central Plugin (<img src=blablabla>). I´ve installed in my board the 1.2x version by labrocca and there is too much perfomance lost with 30+ foruns in Board Index like my case []s, Claudio
|
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help





