Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Joined: Aug 2000
Posts: 1,609
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[/]
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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.
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Joined: Aug 2000
Posts: 1,609
This is what it looks like now. What exactly do you what to change?
Attachments
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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.
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Joined: Aug 2000
Posts: 1,609
To remove the HR you will have to edit ubbt.inc.php
Look for:
$Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><hr /><br />",$Body); And replace it with:
$Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","</font><blockquote><font class=\"small\">{$ubbt_lang['IN_REPLY']}:</font><br />",$Body); Next look for:
$Body = preg_replace("/<\/font><blockquote><font class=\"small\">.*?:<\/font><hr \/><br \/>/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body); And replace it with:
$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.
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
*deep bow* thank you, great help ! I will do it at weekend.
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Joined: Aug 2000
Posts: 1,609
Bitteschön
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Joined: Aug 2000
Posts: 1,290
Removing the hr is easy HR { display: none; } If you only want the post hr gone .post-body HR { display: none; }
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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.
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Joined: Aug 2000
Posts: 1,290
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>
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
post semms not be right. If I test it and watch the output I see the following:
<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
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
found it
use
blockquote HR { <br /> display: none; <br />} <br />
Last edited by Zarzal; 07/30/2003 2:20 AM .
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Joined: Aug 2000
Posts: 1,290
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Posts:
1,157
Joined: July 2001
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166Sep 15th, 2019
Currently Online
Topics Created
Posts Made
Users Online
Birthdays