PDA

View Full Version : Keep next / prev in menu


thsch
01-14-2008, 11:09 AM
Hi,

I want to keep the next and previous link although, there's no next or previous image.

When you look at my page http://thsch.com/photoblog/ the navigation to the next/prev images consists of two small arrows, but there's only one showing when you're looking at the first / last image. I tried to edit the language file the same way I did with the images to show the <IMAGE_NEXT_LINK> as an image instead of a text link.

And I thought it should say the text "No Previous Image" and "No Next Image" when there's no next or previous images but it doesnt show up regardless if there's text or a link to an image

$lang_no_previous = "No Previous Image";
$lang_no_next = "No Next Image";

Anyone knows what's wrong?

zac
03-02-2008, 04:28 AM
*bump* I am having trouble modifying this too... I am using images in my nav so for the next and previous like this

$lang_previous = "<img src='./../../style_images/nav/righty.gif' alt='next image' />";
$lang_next = "<img src='./../../style_images/nav/lefty.gif' alt='previous image'/>";


I want a blank gif to display as a placeholder when there is no previous or next image to view. I tried to replace this the same way with a blank img:

$lang_no_previous = "<img src='./../../style_images/nav/blank.gif' alt='no previous image'/>";
$lang_no_next = "<img src='./../../style_images/nav/blank.gif' alt='no next image'/>";

Any ideas on why this doesnt work and how I can make this work?

Thanks

kevincrafts
03-02-2008, 04:56 AM
I would suggest you use CSS to place your images instead of modifying the language file.

zac
03-02-2008, 05:45 AM
Thanks for the reply Kevin... I am not sure how to do that however. Have you seen this done somewhere? Everything I find in the forums here suggests modifying the language file. I would much prefer to have this change handled by CSS.

kevincrafts
03-03-2008, 04:10 PM
Here's a link about how to replace text with images....

http://www.stopdesign.com/articles/replace_text/

zac
03-03-2008, 08:01 PM
Thanks for the link. That is good stuff! This will be much better than hacking the lang file every time I upgrade. However, I still dont know if this addresses the original problem of this thread. It more seems that part of the language file is broken, PP does recognize when there is no next or previous image and removes the nav, however it does not show the text that is designated in the lang file. Since it is not calling a different text (ie: No Previous Image) from the lang file then there is nothing for me to link the spacer.gif over. Know what I mean?