Recent Topics

1 Nov 29, 2007 16:14    

My b2evolution Version: 1.10

I have edited _conf/_formatting.php, changing the following the line from false to true:

# Set this to true to allow id && style as core attributes for posts
$posts_allow_css_tweaks = true;

I have entered a post with the following excerpt:

<h1>Details</h1>
<p>See below for your <a href="#chances">chances</a> in attracting bats...</p>
<h1>Chances</h1>
<p id="chances">If you hang a bat house during... </p>

The link that results is

http://www.softwarefemme.com/skins/three_columns/#chances

instead of

http://www.thewildlifeporch.com/2007/09/01/provide_a_bat_house_to_attract_helpful_b#chances

Any ideas?

Thanks,

Cindy Rae

2 Nov 29, 2007 16:52

The second link works just as well. B)

Good luck

3 Nov 29, 2007 18:49

The problem is that I want the second link, but I get the first link from b2e. The first link is bogus.

Cindy Rae

4 Nov 29, 2007 18:54

Where does it spit this link?

5 Nov 29, 2007 19:40

The problem is using relative links. b2evolution uses the path to the skins/skinname folder as the base url, so the only time you can use relative links is for like images in a folder in your skin's folder. Actual clickable links need to be full URLs.

Unfortunately I can think of no way to do a full URL in a post without actually typing out the URL. Doing it in the code in _main.php (for example) means using something like

<a href="<?php $this->get_permanent_url() ?>#name">text</a>

A long time ago I seem to remember someone made up a toolbar that would give you anchors. Or maybe it was heading sizes? No - it was anchors in a post body, but I have no idea what time frame it was.

Sorry :(


Form is loading...