Recent Topics

1 Oct 10, 2007 04:47    

My b2evolution Version: Not Entered
how do i make "Continue reading" links on my front page

hello all.

on my front page i want to only display the first 4 lines of each post, and then a "click here to continue readiing" link under each post, so viewers can see the entire post if and only if they click on that link.

ive seen many bloggers do that, but i have no idea how to do it, can anyone give me some advise.

thank you.

2 Oct 10, 2007 05:35

You can accomplish that by using the !M and !NT buttons in your post editor....

jj.

3 Oct 10, 2007 19:37

hey, thankx
the !M worked, but the !NT didnt, not sure if it had any effect on my posts.
thanks alot jj.

4 Oct 10, 2007 19:59

question when i lick read more

am i suposed to bee the [more:]

in my post?
eg.
"
since most of us cant afford

[More:]

any fancy cooling
"

i wanted to post to read like "since most of us cant afford any fancy cooling"

5 Oct 10, 2007 20:11

I think you need to look in the /inc/MODEL/items/_item.class.php file, at approx lines 1150-1175 for this code:

		if( $more_link_text == '#' )
		{ // TRANS: this is the default text for the extended post "more" link
			$more_link_text = T_('Read more!').' »';
		}

		if( $more_anchor == '#' )
		{ // TRANS: this is the default text displayed once the more link has been activated
			$more_anchor = '['.T_('More:').']';
		}

		if( $before_more == '#' )
			$before_more = '<p class="bMore">';

		if( $after_more == '#' )
			$after_more = '</p>';

You'll need to remove the More: part... probably just leave it blank, leaving only the two ' ' marks inside the parentheses and probably without a space between them...

You'll also have to remove the opening and closing P tag, so that the text isn't broken into new paragraphs.. Might take a little tweaking, but that should get you started...

jj.

6 Oct 10, 2007 20:21

Also, I think you'll need to insert the !M inline with your text when you write your posts... like so...

since most of us cant afford <!--more--> any fancy cooling

and not like so:

since most of us cant afford

<!--more-->

any fancy cooling

otherwise the Auto P renderer might take over and split it into separate paragraphs anyway...

jj.

7 Oct 10, 2007 22:04

ah ha
heres what i did

if( $more_link_text == '#' )
{ // TRANS: this is the default text for the extended post "more" link
$more_link_text = T_('Read more!').' &raquo;';
}

if( $more_anchor == '#' )
{ // TRANS: this is the default text displayed once the more link has been activated
$more_anchor = '';
}

if( $before_more == '#' )
$before_more = '';

if( $after_more == '#' )
$after_more = '';

and now.
"
* baby oil <!--more-->
* bayol 55
"

looks like

"
* baby oil

* bayol 55
"

it has a line spacing, but ill guess ill live with it, i dont want to mess up the code, by experminting.

thankx jj

8 Oct 10, 2007 22:13

What happend if you put "bayol 55" on the same line as the preceding text? Put it immediately after the MORE code...

jj.

9 Oct 10, 2007 23:09

    * baby oil <!--more--> * bayol 55

 * baby oil

* bayol 55

i still get a line space.
:(

but its no big issue.


Form is loading...