Author |
Message |
andylau
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 05, 2006
Posts: 27
|
Posted:
Sat Jan 02, 2010 9:37 am |
|
hope this is the right place.
i got problem with story text and extended text
after post there are some line between story text and extended text after read more?
may be -> br br between those
help thanks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Jan 02, 2010 10:12 am |
|
Line 113 of /modules/News/articles.php
Code:
$bodytext = $hometext . '<br /><br />' . $bodytext;
|
|
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 02, 2010 4:57 pm |
|
wow. thanks. the 2lines of <br> gone but still one more line between, it look likes   <- i use simpleblue theme.
please help thanks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 02, 2010 6:58 pm |
|
Guess I should have posted what to change it to
Code:
$bodytext = $hometext . $bodytext;
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 03, 2010 6:23 am |
|
thanks. now i found something in the source code there are automatic <p></p>
between them how to get rid of it ?
what i did in manual from source i remove </p> from story text and <p> from extended text and keep one br . any idea to remove that thanks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Sun Jan 03, 2010 7:39 am |
|
That is being place there by the nukeWYSIWYG editor. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 03, 2010 8:25 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 03, 2010 8:53 pm |
|
Are you sure there isn't a blank line at the beginning of the "extended text"? Edit the story and look because I think that is your problem. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 03, 2010 8:54 pm |
|
Also check the end of the first part for a blank line. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 03, 2010 9:12 pm |
|
i start a new one . i just type test in story text and some text in extended text and check in source i found <p></p> those in there automatic .
any idea ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 03, 2010 11:10 pm |
|
The easiest way to do what you want to do is to change the line you edited earlier
Code:$bodytext = $hometext . $bodytext;
|
to
Code:$bodytext = $bodytext;
|
and just retype the hometext into the top of the bodytext. This would be more like using the home text as a preview of the article and use the body text as the actual article. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 5:22 am |
|
well still have to retype ?
how about disable <p> and </p> in source ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Jan 04, 2010 6:56 am |
|
I don't think this belongs in this forum. Which version of RN are you using andylau? Thanks. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 7:02 am |
|
The <p> tags are generated by the wysiwyg editor. You are using two separate instances of the editor so you will have the tags there unless you change the way the fckeditor closes text. This could cause all kind of issues with regard to how the text is rendered on the site.
What I suggested was when you post a story in the news, type what you want displayed on the front page in the Story Text text area and type what you want displayed on the articles page in the Extended Text text area. The $hometext is the Story Text and the $bodytext is the Extended Text. If you remove the $hometext from the code mentioned above, you will be left with only the Extended Text (if used) on the article view which will be formated with out the extra <p> tags that are causing the unwanted spaces. If you do not use the Extended Text, the articles view will be the Home Text. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 7:53 am |
|
i use RavenNuke_v2.40.00 . nuken i can't use the code like u say. otherwise i lost the home text when they click on readmore... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 7:54 am |
|
Another way would be to change the <p> tag in your themes css to something like this
Code:p{margin-top: 0; padding-top: 0;}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 8:58 am |
|
I tested this on my site you should not be getting a <p> </p> unless you have a blank line. The wysiwyg editor does not add <p> tags to the beginning or end unless you do. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 10:51 am |
|
Edit: You are correct Palbin. My bad. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 4:57 pm |
|
i do just write some text but if i look in source there are <p> </p> everyline there.
can i post my site here u can check ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 04, 2010 11:50 pm |
|
Yes every line has <p> tags. I thought you where talking about have "<p> </p>" in between your home and body text. If you do you have a blank line. If you are talking about removing it in general, not sure why you would be, that is not possible. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 05, 2010 3:17 am |
|
home text
<p>testing01</p>
Extended text
<p>testing02</p>
it's coming out like this:
testing01
testing02
i dun want it a line break them in between when i've remove <br><br> from 113 line of the article.php
so need to be
like this:
Home text
<p>testing01
Extended text
testing02</p>
and one <br> in article.php line 113
so it will come out like this
testing01
testing02
when i was using phpnuke never got something like that . any idea for that? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 05, 2010 7:07 am |
|
I didn't give you the complete css to remove the space, sorry. Try using this in your themes style.css.
Code:p{margin-top: 0; padding-top: 0; margin-bottom: 0; padding-bottom: 0;}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Jan 06, 2010 12:56 am |
|
i've try. but still not work thanks anyway. i have to do manua.
well can u give me any idea again about remove
<p> </p> in source from the editor ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
andylau
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Jan 07, 2010 1:18 am |
|
hi again. now it's working. kewl thanks for the clue nuken |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Jan 11, 2010 11:04 am |
|
The wysiwyg editor automatically 'cleans' the formatting to show paragraphs. To stop it creating paragraphs use SHIFT + ENTER in the editor for a new line, this will force the editor to use <BR /> instead of paragraphs. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|