UBB.Dev
Posted By: Zarzal quote style help need - 07/22/2003 9:38 PM
Hello,

I need some help to adjust the quote output a little bit. But I get confused. Here is a picture, what I need to know:

[]http://home.snafu.de/van.dusen/quote.jpg[/]

Please can someone tell me where to adjust the spaces 1-6 ? I cannot find it
Posted By: AKD96 Re: quote style help need - 07/23/2003 3:21 AM
To edit spaces 1 and 2, look in showflat.tmpl and showthreaded.tmpl.

Look for []{$postrow[$i]['Body']}[/] This is the body of the post. The rest of the code around it is easy to figure out if you know HTML.

For the others, you want to look in your CSS file for []blockquote[/]
Posted By: Zarzal Re: quote style help need - 07/23/2003 4:01 PM
thank you, that will help.

Now I find out last night how to deal with the style sheets. I use an css editor to find out what happen and I can do it now.

My last problem: space 5 seems to be an invisible HR that made the space line in my layout. How to I remove this ? I try many things in the .css but it seems that I have to remove code somewhere to remove the HR completly. I dont find any way in the .css to eleminate th HR.
Posted By: AKD96 Re: quote style help need - 07/24/2003 1:06 AM
This is what it looks like now. What exactly do you what to change?

Attached picture 89647-screen.gif
Posted By: Zarzal Re: quote style help need - 07/25/2003 1:48 AM
I try to change the following:

In Antwort auf:
(here is the invisble HR I like to remove)
PS: Chris,


the invisible HR made an empty row and this should be removed.
Posted By: AKD96 Re: quote style help need - 07/25/2003 4:30 AM
To remove the HR you will have to edit ubbt.inc.php

Look for:
Code
       $Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />",$Body);


And replace it with:
Code
       $Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><br />",$Body);


Next look for:
Code
       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);


And replace it with:
Code
       $Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:<\/font><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);


That should do it. I haven't tested it though.
Posted By: Zarzal Re: quote style help need - 07/25/2003 7:03 PM
*deep bow* thank you, great help ! I will do it at weekend.
Posted By: AKD96 Re: quote style help need - 07/25/2003 7:16 PM
Bitteschön
Posted By: J.C. Re: quote style help need - 07/26/2003 7:20 PM
Removing the hr is easy

HR {
display: none;
}

If you only want the post hr gone

.post-body HR {

display: none;
}

Posted By: Zarzal Re: quote style help need - 07/29/2003 12:32 PM
seems to be a smarter way. hacking the file works well too. I changed it now to the .css version but have a question:

what exactly do this:

.post-body HR {
display: none;
}

I can not find any difference in my layouts. The only thing that works is:

HR {
display: none;
}

This will remove any HR in the whole layout. I use ipp5.31 and a HR is used for the poll-pal to seperate the headline from the poll.
Posted By: J.C. Re: quote style help need - 07/29/2003 8:08 PM
Sorry it should be .post not .post-body

example: (excerpt showflat.tmpl shown)

Line: 179

<td width="83%" class="lighttable">
<br />
<font class="post">
{$postrow[$i]['Body']}
{$postrow[$i]['Signature']}
{$postrow[$i]['PrintLastEdit']}
<br />
<br />
<font class="small">
{$ubbt_lang['POST_OPT']}

<a target="_blank" href="{$config['phpurl']}/printthread.php?Board=$Board&main={$postrow[$i]['Number']}&type=post">
<img src="{$config['images']}/print.gif" border="0" alt="{$ubbt_lang['PRINT_POST']}" title="{$ubbt_lang['PRINT_POST']}" /></a>

 

{$postrow[$i]['addfavlinkstart']}
<img src="{$config['images']}/addreminder.gif" border="0" alt="{$ubbt_lang['ADD_REM']}" title="{$ubbt_lang['ADD_REM']}" />{$postrow[$i]['addfavlinkstop']}

 

{$postrow[$i]['notifylinkstart']}
<img src="{$config['images']}/notifymod.gif" border="0" alt="{$ubbt_lang['NOTIFY_MOD']}" title="{$ubbt_lang['NOTIFY_MOD']}" />{$postrow[$i]['notifylinkstop']}

 

{$postrow[$i]['mailpostlink']}

</font>
</font>
</td>
Posted By: Zarzal Re: quote style help need - 07/30/2003 9:15 AM
post semms not be right. If I test it and watch the output I see the following:

Code
<br /><font class="post"></font><br /><blockquote><br /><font class="small">Quote:</font><br /><hr /><br />abcde  <br /><br /><hr /><br /></blockquote><br /><font class="post">12345<br /><br />--------------------<br /><img src="http://home.snafu.de/van.dusen/sig/zarzal.gif"> <br />...<br />


The font class code will be closed followed by font class small for the 'quote'. I try to set HR in .post to none, it dosn't work
Posted By: Zarzal Re: quote style help need - 07/30/2003 9:19 AM
found it use
Code
blockquote HR { <br />	display: none; <br />} <br />

Posted By: J.C. Re: quote style help need - 07/30/2003 7:43 PM
Yup that'll work 2
© UBB.Developers