| Author |
Message |
andylau Hangin' Around

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. |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Jan 02, 2010 10:12 am |
|
Line 113 of /modules/News/articles.php
| Code: |
$bodytext = $hometext . '<br /><br />' . $bodytext;
|
|
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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. |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Jan 02, 2010 6:58 pm |
|
Guess I should have posted what to change it to
| Code: |
$bodytext = $hometext . $bodytext;
|
|
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Sun Jan 03, 2010 7:39 am |
|
That is being place there by the nukeWYSIWYG editor. |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
Posted:
Sun Jan 03, 2010 8:25 pm |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
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. |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Sun Jan 03, 2010 8:54 pm |
|
Also check the end of the first part for a blank line. |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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 ? |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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. |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
Posted:
Mon Jan 04, 2010 5:22 am |
|
well still have to retype ?
how about disable <p> and </p> in source ? |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9136 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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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. |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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... |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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;} |
|
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Mon Jan 04, 2010 10:51 am |
|
Edit: You are correct Palbin. My bad. |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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 ? |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
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. |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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? |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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;} |
|
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
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 ? |
|
|
|
 |
andylau Hangin' Around

Joined: Jul 05, 2006 Posts: 27
|
Posted:
Thu Jan 07, 2010 1:18 am |
|
hi again. now it's working. kewl thanks for the clue nuken |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
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. |
|
|
|
 |
|
|
|
|