View Full Version : Tag: IMAGE_NEXT_LINK
TommyBlue
12-30-2005, 03:03 AM
So I've got my nav set up to have the titles of the next and previous posts in the links, as you can see at my PP test site. (http://www.cleu.org/blinkpp/index.php?showimage=5)
My problem, as you can notice, is that the <IMAGE_NEXT_LINK> doesn't seem to work. This is the source from that side of the nav bar:
<div align="left"><IMAGE_PREVIOUS_LINK> |
<a href="index.php" title="Return to Homepage">today!</a> | <a href='index.php?showimage=<IMAGE_RANDOM>' >random</a> | <IMAGE_NEXT_LINK> </div>
And in the lang-english.php file I changed the first two lines to read this:
$lang_previous = "« back to <IMAGE_PREVIOUS_TITLE>";
$lang_next = "forward to <IMAGE_NEXT_TITLE> »";
Anyone know why those next titles wouldn't be showing up?
Thanks, communal genuis...
Know the system before you modify it ;)
$lang_previous = "« back to <IMAGE_PREVIOUS_TITLE>";
$lang_next = "forward to <IMAGE_NEXT_TITLE> »";
<IMAGE_PREVIOUS_TITLE> and <IMAGE_NEXT_TITLE> are just Pixelpost-tags. You can use them only in the templates.
You need to use the variables of IMAGE_PREVIOUS_TITLE and IMAGE_NEXT_TITLE there.
Like this:
$lang_previous = "« back to $image_previous_title";
$lang_next = "forward to $image_next_title »";
Succes!
*EDIT*
Oooops, this doesn't work.
Know the system before you modify it ;)
Also for me :D
Find the solution below.
TommyBlue
12-30-2005, 07:32 AM
Hmm, I put that code in exactly as you have written, and now both titles are gone! :???: I'm wondering why the previous image title would have shown up with the pixelpost tag in the language file when they're only supposed to be in the templates, and why the next image title tag would not have worked the same way. Any other suggestions? Thanks.
Be more specific. I can see both links. :confused:
Example of you upper left corner:
« back to Redux - Tong Nai Pan Noi | today! | forward to Embrace »
Or do you mean something else?
TommyBlue
12-30-2005, 07:39 AM
*EDIT*
You're looking in exactly the right place on the page, but I see where we were confused... You must be looking on my current MT version of Blink... www.cleu.org/blink/
This is not where I'm testing out PixelPost-- where the problem lies is here: http://www.cleu.org/blinkpp/
Note the "pp" added to the end of the blink directory. Now you see what I'm referring to?
I see :) wrong page. Sorry.
But how did you made the links in your current page? Or is it another program?
TommyBlue
12-30-2005, 08:15 AM
Yeah, the links on my current page are MovableType links...
blinkpp is my converted movabletype blog now hosted with pixelpost. I'm just trying to work out all these little bugs, fun stuff. :) Anybody else know how to include the previous and next image titles in the nav buttons? Should be do-able...
I found a solution.
Go to these rows in index.php
$tpl = str_replace("<IMAGE_PREVIOUS_LINK>",$image_previous_link,$tpl);
$tpl = str_replace("<IMAGE_PREVIOUS_THUMBNAIL>",$image_previous_thumbnail,$tpl);
$tpl = str_replace("<IMAGE_PREVIOUS_ID>",$image_previous_id,$tpl);
$tpl = str_replace("<IMAGE_PREVIOUS_TITLE>",$image_previous_title,$tpl);
$tpl = str_replace("<IMAGE_NEXT_ID>",$image_next_id,$tpl);
$tpl = str_replace("<IMAGE_NEXT_TITLE>",$image_next_title,$tpl);
$tpl = str_replace("<IMAGE_NEXT_THUMBNAIL>",$image_next_thumbnail,$tpl);
$tpl = str_replace("<IMAGE_NEXT_LINK>",$image_next_link,$tpl);
And change the order of NEXT like the order of PREVIOUS
$tpl = str_replace("<IMAGE_PREVIOUS_LINK>",$image_previous_link,$tpl);
$tpl = str_replace("<IMAGE_PREVIOUS_THUMBNAIL>",$image_previous_thumbnail,$tpl);
$tpl = str_replace("<IMAGE_PREVIOUS_ID>",$image_previous_id,$tpl);
$tpl = str_replace("<IMAGE_PREVIOUS_TITLE>",$image_previous_title,$tpl);
$tpl = str_replace("<IMAGE_NEXT_LINK>",$image_next_link,$tpl);
$tpl = str_replace("<IMAGE_NEXT_THUMBNAIL>",$image_next_thumbnail,$tpl);
$tpl = str_replace("<IMAGE_NEXT_ID>",$image_next_id,$tpl);
$tpl = str_replace("<IMAGE_NEXT_TITLE>",$image_next_title,$tpl);
And use in your language file this:
$lang_previous = "« back to <IMAGE_PREVIOUS_TITLE>";
$lang_next = "forward to <IMAGE_NEXT_TITLE> »";
TommyBlue
12-30-2005, 08:46 AM
Excellent! It works perfectly now, thanks eon. Good thinkin! :D
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.