1 kuyaedz Apr 11, 2005 23:09
3 daniel Mar 26, 2007 07:35
Ok, but is there now a solution only editing the _main.php in my skin directory?
This:
<?php posts_nav_link('','<img src="your_previous_goes_here.gif".... />','<img src="and_for_next_here.gif" .../>'); ?>
sadly doesn´t work (at least in my 1.9.2 b2evo version).
Why I only want asolution for the _main.php?
First because it´s easier and second because I want to leave the navlinks on the button of the blog-pages at they are. I only want to exchange the text-links around the calendar with icons.
How is this possible?
Thanks in advance,
Daniel
4 edb Mar 26, 2007 15:55
You dug up a two year old thread to say it doesn't work in a 2-month old release? :-/
Check out http://doc.b2evolution.net/v-1-9/evocore/_blogs---inc---MODEL---items---_item.funcs.php.html#functionposts_nav_link and you'll see the first parameter you give that function (now) is the seperator. Then the pre label, then the post label.
5 daniel Mar 27, 2007 07:29
Sorry EdB for digging up a so old thread, but I have used the search-function before asking ;)
This is in the docs:
posts_nav_link [line 539]
void posts_nav_link( [ $sep = ' :: '], [ $prelabel = '#'], [ $nxtlabel = '#'], [ $page = ''] )
But as I posted earlier, I used exactly that syntax; when I use e.g
<p class="center"><strong><?php posts_nav_link( ' :: ', '<img src="../../rsc/icons/chain_link.gif">', 'go next'); ?></strong></p>
you will see
<img src="../../rsc/icons/chain_link.gif"> :: go next
on the blog sidebar!!!
What do you suggest?
6 daniel Mar 29, 2007 21:41
Hmm, no one who has a nice idea or solution for me? :(
you should have trace it little bit more ;)
the magic code is in your snippet
got it?
i don't have access to my b2evo at the moment, so i can't test it. but you can try to set $prelabel to something like <img src="...."... /> maybe it works. don't know.
if that works, delete your changes and edit your skin.
to
if this does not work, you have to hack the code.
locate previous_posts_link and next_posts_link in /b2evocore/_functions_bposts.php
look for this code
delete the htmlspecialchars($label) and add your images there.