Recent Topics

1 Jul 02, 2008 05:14    

My b2evolution Version: 2.4.2

Hello Folks,

In my menu bar I've added a link to the site's main home page with the
following FreeHTML

<li><a href="http://www.caronia2.info/home.php" title="Go to Caronia Timeline Home Page">Timeline</a></li>


But if I add this code to provide a link to the bottom of the page for access
to the page navigation...

<li><a href="#navbar" title="Jump down to page navigation">Navigation</a></li>


it doesn't work because the URL base comes from the skin rather than the
current page.
Similarly, I want to place a Page Top link at the bottom of each page.
Is this possible?

Regards,
Steve (Peter S.)
[url=http://www.caronia2.info/]Caronia Timeline Webmaster[/url]

2 Jul 03, 2008 06:51

have you tried hardcoding the link?

adding the links is possible by editing your skin. You can put the links to the Top or Bottom inside the index.main.php file before and after the "START OF POSTS" section.

Give it a try.

3 Jul 03, 2008 07:30

The best way I found was to use this...

<a href="<?php echo htmlspecialchars($url); ?>#navbar"  title="Jump to page navigation">Navigation</a>

4 Jul 03, 2008 07:33

Hi there,

Thanks for the suggestion.

esanchez wrote:

You can put the links to the Top or Bottom inside the index.main.php file before and after the "START OF POSTS" section.

That's what I tried first...


		// ----------------------------- END OF "Menu" CONTAINER -----------------------------
	?>
	<li><a href="#pageFooter" title="Link: Jump to Navigation Bar">Navigation</a></li>
	</ul>

bombs me out to a directory listing with an address URL of:
http://localhost/car2blog/skins/c2custom/#pageFooter

Regards,
Steve (Peter S)
[url=http://www.caronia2.info]Caronia Timeline Webmaster[/url]

5 Jul 03, 2008 07:39

Hello Folks,

Having given this some thought, I'm guessing that the actual page URL could
be gathered from the paging widget, it's just a question of finding the variable
that's being tested to establish the current page. I'll investigate further...

Regards,
Steve (Peter S)
[url=http://www.caronia2.info]Caronia Timeline Webmaster[/url]

6 Jul 03, 2008 07:46

Steve,

it will help a bit more if you could paste more of the code so we can see the section you're working with...

so far from what you've posted here, I'm not sure how i can help.

could you also provide the actualy link you want to see on your blog page? did you try hardcoding it?

7 Jul 03, 2008 15:40

Hello Edgar,

esanchez wrote:

it will help a bit more if you could paste more of the code so we can see the section you're working with...

I followed the advice that you gave in your first reply, hard-coded just above
the main section just as you suggested...


		// ----------------------------- END OF "Menu" CONTAINER -----------------------------
	?>
	<li><a href="#pageFooter" title="Jump to page navigation">Navigation</a></li>
	</ul>
</div>
<!-- =================================== START OF MAIN AREA =================================== -->


with the results as outlined in my reply.
esanchez wrote:

could you also provide the actual link you want to see on your blog page? did you try hardcoding it?

Supposing that I'm on this page...[url=http://www.caronia2.info/car2blog/index.php?blog=2&paged=2]Caronia Blog[/url]

As I've removed the top paging links, I want to place the word Navigation
into the top menu next to the Home | Timeline links with a link to the page
footer. So, the placement of my hard coding on index_main page is nearly
there, all I need to do is establish a result that gives me a url of the current
page. If I were to hardcode this...
"http://www.caronia2.info/car2blog/index.php#pageFooter"
it would only ever jump to the bottom of the opening page.

Steve

8 Jul 03, 2008 15:58

I do suggest you try the code I posted above...

It gives a url specific jump to page bottom/ jump to page top everytime

9 Jul 04, 2008 04:39

Hello John,

When I tried your method, I got an undefined index error, whatever that
is, so I modified the code somewhat, in the index.main file as below...

// ----------------------------- END OF "Menu" CONTAINER -----------------------------
	$nuri = $_SERVER["REQUEST_URI"];
	echo '<li>&nbsp;<a class="navlt" href="'.htmlspecialchars($nuri).'#pageFooter" title="Jump to page navigation">Navigation</a></li>
	';
	?>
	</ul>
</div>


<!-- =================================== START OF MAIN AREA =================================== -->

and it now works as intended. The upgrade from 1.10.x to 2.4 is still a work
in progress, but I'm fairly happy with the results so far.

Thanks for your help guys.

Regards,
Steve (Peter S.)
[url=http://www.caronia2.info/car2blog/]Caronia Timeline Webmaster[/url]


Form is loading...