php forum
php mysql forum
php mysql smarty
 
Topic Options
#254145 - 07/22/03 02:38 PM quote style help need
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
Hello,<br /><br />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:<br /><br /> []http://home.snafu.de/van.dusen/quote.jpg[/] <br /><br />Please can someone tell me where to adjust the spaces 1-6 ? I cannot find it <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254146 - 07/22/03 08:21 PM Re: quote style help need [Re: landyphil]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
To edit spaces 1 and 2, look in showflat.tmpl and showthreaded.tmpl. <br /> <br />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. <br /> <br />For the others, you want to look in your CSS file for []blockquote[/]

Top
#254147 - 07/23/03 09:01 AM Re: quote style help need [Re: eslmix]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
thank you, that will help. <br /><br />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.<br /><br />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.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254148 - 07/23/03 06:06 PM Re: quote style help need [Re: landyphil]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
This is what it looks like now. What exactly do you what to change?


Attachments
89647-screen.gif (18 downloads)


Top
#254149 - 07/24/03 06:48 PM Re: quote style help need [Re: eslmix]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
I try to change the following:<br /><br />In Antwort auf:<br />(here is the invisble HR I like to remove)<br />PS: Chris,<br /><br /><br />the invisible HR made an empty row and this should be removed.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254150 - 07/24/03 09:30 PM Re: quote style help need [Re: landyphil]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
To remove the HR you will have to edit ubbt.inc.php <br /> <br />Look for: <br />
Code:
       $Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","&lt;/font&gt;&lt;blockquote&gt;&lt;font class=\"small\"&gt;{$ubbt_lang['IN_REPLY']}:&lt;/font&gt;&lt;hr /&gt;&lt;br /&gt;",$Body);
<br /> <br />And replace it with: <br />
Code:
       $Body = str_replace("[{$ubbt_lang['TEXT_QUOTE']}]","&lt;/font&gt;&lt;blockquote&gt;&lt;font class=\"small\"&gt;{$ubbt_lang['IN_REPLY']}:&lt;/font&gt;&lt;br /&gt;",$Body);
<br /> <br />Next look for: <br />
Code:
       $Body = preg_replace("/&lt;\/font&gt;&lt;blockquote&gt;&lt;font class=\"small\"&gt;.*?:&lt;\/font&gt;&lt;hr \/&gt;&lt;br \/&gt;/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);
<br /> <br />And replace it with: <br />
Code:
       $Body = preg_replace("/&lt;\/font&gt;&lt;blockquote&gt;&lt;font class=\"small\"&gt;.*?:&lt;\/font&gt;&lt;br \/&gt;/","[{$ubbt_lang['TEXT_QUOTE']}]",$Body);
<br /> <br />That should do it. I haven't tested it though.

Top
#254151 - 07/25/03 12:03 PM Re: quote style help need [Re: eslmix]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
*deep bow* thank you, great help ! I will do it at weekend.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254152 - 07/25/03 12:16 PM Re: quote style help need [Re: landyphil]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Bitteschön <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#254153 - 07/26/03 12:20 PM Re: quote style help need [Re: eslmix]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Removing the hr is easy<br /><br />HR {<br />display: none;<br />}<br /><br />If you only want the post hr gone<br /><br />.post-body HR {<br /><br />display: none;<br />}<br /><br />
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#254154 - 07/29/03 05:32 AM Re: quote style help need [Re: chrisX]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
seems to be a smarter way. hacking the file works well too. I changed it now to the .css version but have a question:<br /><br />what exactly do this:<br /><br />.post-body HR {<br />display: none;<br />}<br /><br />I can not find any difference in my layouts. The only thing that works is:<br /><br />HR {<br />display: none;<br />}<br /><br />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.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254155 - 07/29/03 01:08 PM Re: quote style help need [Re: landyphil]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Sorry it should be .post not .post-body <br /> <br />example: (excerpt showflat.tmpl shown) <br /> <br />Line: 179 <br /> <br /><td width="83%" class="lighttable"> <br /><br /> <br /><font class="post"> <br />{$postrow[$i]['Body']} <br />{$postrow[$i]['Signature']} <br />{$postrow[$i]['PrintLastEdit']} <br /><br /> <br /><br /> <br /><font class="small"> <br />{$ubbt_lang['POST_OPT']} <br /> <br /><a target="_blank" href="{$config['phpurl']}/printthread.php?Board=$Board&amp;main={$postrow[$i]['Number']}&amp;type=post"> <br /><img src="{$config['images']}/print.gif" border="0" alt="{$ubbt_lang['PRINT_POST']}" title="{$ubbt_lang['PRINT_POST']}" /></a> <br /> <br />&nbsp; <br /> <br />{$postrow[$i]['addfavlinkstart']} <br /><img src="{$config['images']}/addreminder.gif" border="0" alt="{$ubbt_lang['ADD_REM']}" title="{$ubbt_lang['ADD_REM']}" />{$postrow[$i]['addfavlinkstop']} <br /> <br />&nbsp; <br /> <br />{$postrow[$i]['notifylinkstart']} <br /><img src="{$config['images']}/notifymod.gif" border="0" alt="{$ubbt_lang['NOTIFY_MOD']}" title="{$ubbt_lang['NOTIFY_MOD']}" />{$postrow[$i]['notifylinkstop']} <br /> <br />&nbsp; <br /> <br />{$postrow[$i]['mailpostlink']} <br /> <br /></font> <br /></font> <br /></td>
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top
#254156 - 07/30/03 02:15 AM Re: quote style help need [Re: chrisX]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
post semms not be right. If I test it and watch the output I see the following:<br /><br />
Code:
<br />&lt;font class="post"&gt;&lt;/font&gt;<br />&lt;blockquote&gt;<br />&lt;font class="small"&gt;Quote:&lt;/font&gt;<br />&lt;hr /&gt;&lt;br /&gt;abcde  &lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;<br />&lt;/blockquote&gt;<br />&lt;font class="post"&gt;12345&lt;br /&gt;&lt;br /&gt;--------------------&lt;br /&gt;&lt;img src="http://home.snafu.de/van.dusen/sig/zarzal.gif"&gt; <br />...<br />
<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
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254157 - 07/30/03 02:19 AM Re: quote style help need [Re: landyphil]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
found it <img src="/forum/images/graemlins/smile.gif" alt="" /> use <br />
Code:
blockquote HR { <br />	display: none; <br />} <br />
<br />


Edited by Zarzal (07/30/03 02:20 AM)
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#254158 - 07/30/03 12:43 PM Re: quote style help need [Re: landyphil]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Yup that'll work 2
_________________________
- Custom Web Development
http://www.JCSWebDev.com

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks