SMF Support > SMF 2.0.x Support
Question about post separator
abrodski:
Hello!
I have SMF 2.0.2 and I want to add post separator. Couple of years ago when I was using SMF 1.x I did that successfully.
Now I have a new site and I installed forum from scratch. I found a mod here:
http://custom.simplemachines.org/mods/index.php?mod=1578
the first part (modification to Display.template.php) went fine, but the second part (modification to index.css) didn't work because I couldn't find "?>" at the end as it was written in the instructions.
Any ideas?
And another thing is...If I install a different template/theme...do some of those have that post separator installed by default or I would still have to do it myself?
K@:
The fact that you don't have ?> as the last line is quite worrying.
Every PHP file should have that.
Is it somewhere else, or something?
Maybe, if you attach the file to your next post, someone can take a look at it?
abrodski:
--- Quote from: K@ on July 01, 2012, 12:15:05 PM ---The fact that you don't have ?> as the last line is quite worrying.
Every PHP file should have that.
Is it somewhere else, or something?
Maybe, if you attach the file to your next post, someone can take a look at it?
--- End quote ---
As I wrote in my original message, the problem was NOT with a .php file, but with .CSS file. Because I pressed button "Parse" by "Manual Install Instructions for SMF" and I got the instructions. The instructions consist of TWO parts.
a) about .php file and it's fine;
b) about .css file and that's where the problem was for me.
Shambles:
The parse instructions are not correct for 2.0.2 as far as the CSS is concerned. The mod should simply add the extra ".seperate" class to the end of the CSS file
abrodski:
Thanks so much for the help!
Well, I took my risk and simply installed the .zip file (mod). And it seems to be OK...
Yeah...in .css file all you have to do is to add this to the end of the file:
.seperate {
/* border: 5px solid #fff; thickness and color of box outline*/
margin: 7px auto; /*to push the gap between the posts*/
}
Now...what happens is this (and here I need some coding help). The 2nd line is commented out, right? If I just add to margin, the separator gets bigger, but it still remains white. And I wanted it to be blue. I tried to remove the "/*" from the 2nd line and add a hexadecimal color code for blue. But what happened is that I also got a border to the left and to the right which is fine (as long as it's 1-2 px wide), and it did changed the color of the separator to blue. BUT...the problem is that it automatically SHRINKED the separator to just few pixels. And I wrote in a margin like 27 px.
Navigation
[0] Message Index
[#] Next page
Go to full version