Previous Thread
Next Thread
Print Thread
Rate Thread
#254145 07/22/2003 2:38 PM
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

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
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
Offline
Joined: Aug 2000
Posts: 1,609
This is what it looks like now. What exactly do you what to change?
Attachments
89647-screen.gif (0 Bytes, 30 downloads)

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.

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

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
Offline
Joined: Aug 2000
Posts: 1,609
Bitteschön

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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;
}



- Custom Web Development
http://www.JCSWebDev.com
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.

Sponsored Links
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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>


- Custom Web Development
http://www.JCSWebDev.com
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:

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

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
found it use
Code
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
Offline
Joined: Aug 2000
Posts: 1,290
Yup that'll work 2


- Custom Web Development
http://www.JCSWebDev.com

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)