Recent Topics

1 Dec 15, 2007 19:42    

My b2evolution Version: 2.x

Where can I edit the properties for:

[teaserbreak]
<!--noteaser-->
[pagebreak]


I would like to change the phrase "read more" and adjust/remove the anchor from the link.

Thanks :D

2 Dec 15, 2007 22:51

I am working on this... referring to http://manual.b2evolution.net/Change_the_read_more_icon

in the _main.php file I altered the $Item->content line to say 'See It'.


<div class="bPost">
	<span class="title"><?php $Item->title() ?></span>
	<?php 
    $Item->content( '#', '#', 'See It! »', '' );
	link_pages();
	?>

I would like to remove the anchor (eg. p36#more36) trailing the url and perhaps change it to the permanent url. OR can I change where the anchor link takes me... ie to the start of the post rather than where it says more. Would I have to edit the _item.class.php file or can the change be made in the main file?

Thoughts?

hmmm :-/

3 Dec 18, 2007 21:10

I'm using 2.2.0. Using the asevo skin. I'm looking to change the "Read More" that links to "Follow Up:" behavior as well. What I would like to do is change it so that it removes the anchor and replaces the "Follow up" text with one of my text ads. I just started looking at this, and hope to have a solution soon. I'll come back here with some suggestions and we can hammer something out.

4 Dec 19, 2007 12:03

After a long search myself I found the solution

in _item_content.inc.php (make copy into your skin folder) look for

$Item->more_link( array(
	'before'    => $params['before_more_link'],
	'after'     => $params['after_more_link'],
	'link_text' => 'My custom read more text...',
	'anchor_text' => '',
			) );

6 Dec 19, 2007 18:00

Thanks for this, as this is very helpful. However, I was looking at changing the behavior of a "single post" format. When you click on the "Read More>>" link on your blog page it takes you to a single post anchored to text that says "Follow up:"

I would like to find a way to change what this "Follow up:" says. I would also like to find a way to remove the anchor so that when you click on the "Read More>>" link, it takes you to the top of the single post rather than where the anchor is located.

I am stil poring over the code right now to find out how to do this. I will post a solution when I find it.

7 Dec 19, 2007 18:19

Topanga wrote:

$Item->more_link( array(
	'before'    => $params['before_more_link'],
	'after'     => $params['after_more_link'],
	'link_text' => 'My custom read more text...',
	'anchor_text' => '',
			) );

I'm sorry, I should have looked at this a little better. If you put text here:

'anchor_text' => 'Continue with post below...',


It changes the "Follow up:" text with "Continue with post below..."

I'm checking to see if it works with some kind of ad code... yep. It works. Don't even need to escape the quotes in the javascript since the custom text is surrounded by single quotes.

8 Dec 19, 2007 19:47

Question... Could the 'link_text' be customisable? ( is that a word ?)
In other words, click the !M button and get a prompt for the link text.?
It may default to "Read more" , but could be things like
"Watch the video"
"Show the code"
"See the photos"
etc etc.

9 Dec 19, 2007 20:09

We have a plugin somewhere that allows this ( and fancy pages and stuff ) .... can't remember off the top off my head if it works in 2.x, but we use it and we're ( eventually ) upgrading to 2.x, so it'll work again soon if it is broke ;)

¥

10 Dec 19, 2007 21:02

@¥åßßå

What would be needed to simply make the <!--more--> display inline?
I changed it to, before more <span>, after more </span> and in the post simply put
<p> To view the images <!--more--></p>
But the <!--more--> auto inserts a <p>in front of itself. Where is that coming from?

11 Dec 20, 2007 00:30

I'm sorry, the suns over the yardarm and surgery is closed for the day :|

You should ask Scott about read more and auto-p, he's ( normally ) very vocal on the subject ;)

¥

13 Dec 20, 2007 12:38

Ok, solved:

'before_more_link' => ' ',
		'after_more_link'  => ' ',

Change

'link_text' => 'My custom read more text...',

to

'link_text' => 'Click here!',

When you make a post simply do

<p>To see the poll results <!--more--></p>


<p>For the full storey <!--more--></p>

This makes "Read more" more generic and allows for a specific inline intro to the link.
Example "click here" is in the first post titled "Mozilla's new Browser Bling"
http://wow-factor.com

14 Mar 31, 2008 11:58

I must admit I'm a bit confused here.

I'd like to alter the way "more" and "follow up" appear, but changing them in the "_item_content.inc.php" file makes no difference.

So what file do I alter, or what do I add to my skin, to change them?

15 Jun 23, 2008 06:20

I want to follow up on this:

Can the "Read More" text be place in line?

Right now, I'm getting an auto p tag.

16 Jun 23, 2008 08:44

Have you tried this

$Item->more_link( array(
	'before'    => '',
	'after'     => '',
	'link_text' => 'My custom read more text...',
	'anchor_text' => '',
			) );

17 Jun 23, 2008 19:53

I created a _item_content.inc.php inside my skin folder and I have the following code for it:

	$Item->more_link( array(
    'before'    = > '',
    'after'     = > '',
    'link_text' = > 'Read More',
    'anchor_text' = > '',
            ) ); 
            


This still gives me a new line "p" tag. Not sure why.

You can see it now at my home page: http://www.thechristianalert.org

18 Jun 27, 2008 07:55

What are the paraams that I can pass these lines:?

$Item->more_link( array(
'before' => $params['before_more_link'],
'after' => $params['after_more_link'],
'link_text' => $params['more_link_text'],

I ask because I want to add style to this but I am not sure what I can add inside $params. I tried plain text and it didn't work.

19 Nov 25, 2010 23:44

V4.0.1 beta has changed the 'Read More' text to 'Full Story'. I have looked in the customary places above and in _item_content.inc.php but cannot find where this happened.
Can someone enlighten me.?

20 Nov 25, 2010 23:48

Did you change the skin you are using?

Is there a file called _item_content.inc.php in the skin folder of the skin you are using?

If so, does it have section that begins "$Item->more_link( array(" ?

21 Nov 26, 2010 00:09

Sometimes you can be dumb. Knew how to fix it, knew about _item_content.inc.php as that was what I changed before. But in uploading the new B2 version, I did not reload my pc templates so it was showing the old amended version and the server had the new.
Thanks for clue.

22 Nov 26, 2010 00:14

Glad I could help, and Happy Thanksgiving!


Form is loading...