Link to my site: www(dot)thecbg(dot)org/SMF
SMF version: 1.1.14
TP version: 1.1
Default Forum Language: English
Theme name and version: Silverpluss1
Browser Name and Version: Firefox 5.0
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg202.imageshack.us%2Fimg202%2F6753%2Funledmau.png&hash=e8147bbc333b525d9be9ddb08cbb9093be28012c)
This is just a minor thing but I would like to know how to remove the annoying indent from the front of shoutbox posts. The area that the red arrows area pointing to that is denoted with a red box, I want to get rid of that blank space so that the text is flush against the left side of the text space. I've looked at the CSS but it isn't anything in there and I've looked in the database but it isn't adding any spaces to what's in there. So the only thing left would be whatever code that displays the text is putting that indent into the text. I've looked around and I can't seem to find what it is that is adding it. If anyone could point me in the right direction I would be most grateful.
I can't see the shoutbox on your site. But, I will venture a guess that space is being allotted to the avatar, or perhaps the date and time stamp, which you removed. Look at your shoutbox with Firebug and perhaps a containing element or table has width and height but no content? The html is generated in '/tp-files/tp-modules/TPShout/Templates/TPShout.template.php'
Quote from: WillyP on August 13, 2011, 05:34:42 PM
I can't see the shoutbox on your site. But, I will venture a guess that space is being allotted to the avatar, or perhaps the date and time stamp, which you removed. Look at your shoutbox with Firebug and perhaps a containing element or table has width and height but no content? The html is generated in '/tp-files/tp-modules/TPShout/Templates/TPShout.template.php'
I have looked at it with firebug and that indent is actually inside the textbox div itself. Regarding the suggested file to look at /tp-files/tp-modules/TPShout/ doesn't have a Templates directory. The only directory there is Sources. Are you sure that's the correct place? Remember I'm using the 1.1.x version of tinyportal not 2.0 (my SMF is 1.1.14). I'll search through my files for a TPShout.template.php file though, perhaps it's in another directory.
Also how are you not seeing the shoutbox? It's on the right side of the front page and viewable to everyone whether logged in or not. Or at least it should be.
Update: ok I found TPShout.template.php it's in the default theme directory will take a look
Ok after playing around with it I have confirmed it is <div class="tp_shoutbody"> that is causing the problem. Removing that div from the code lets the text align left with no indent. However, removing it also causes other problems obviously. I have looked at my CSS and don't see anything that would cause the indent. In fact I cleared my tp_shoutbody CSS and the div still does it. It seems like it is the div itself that is doing this. Here's my CSS in case you're curious.
.tp_shoutbody
{
position: relative;
top: -5px;
background: #fff;
border: solid 1px #888;
line-height: 1.3em;
margin: 0 5px 8px 0;
padding: 8px;
font-size: 0.9em;
overflow: auto;
}Update: yep just removed the class=tp_shoutbody part and it still does it. It seems that it is literally the presence of a div there that is causing this. Note that I restored my tpshout code to the default and it was still doing this (so I went back to my modified code as it wasn't that). I also removed the code inside the div that generates the text, replacing it with a manually typed in string. It still had the indent. The only thing that removes the indent is removing the div itself.
Hmmm. Sorry, I did not see your shoutbox before, now I do. Your indent is inherited from .middletext. Either edit line 280 of style.css in your theme to remove 'text-indent: 10px;', or add 'text-indent: 0;' to .tp_shoutbody, on line 18 of TPShout.css in the default theme.
Quote from: WillyP on August 13, 2011, 11:14:40 PM
Hmmm. Sorry, I did not see your shoutbox before, now I do. Your indent is inherited from .middletext. Either edit line 280 of style.css in your theme to remove 'text-indent: 10px;', or add 'text-indent: 0;' to .tp_shoutbody, on line 18 of TPShout.css in the default theme.
Hmm could have sworn I tried text-indent on tp_shoutbody (probably misspelled it heh). Thank you very much this seems to have fixed the issue.
Your welcome... Marked solved.