|
#1
|
||||
|
||||
|
Image as "previous link"
Didn't find any thread to that, so:
Is there an easy possibility to change the text/asci <IMAGE_PREVIOUS_LINK> to an image link? Gives more design options and you don't have to stick to a defined language when using a logo. Would be nice.
__________________
CenoPix |
|
#2
|
||||
|
||||
|
Here it goes...
wasn't to hard after all. Maybe one of our kind moderators can put it into the right place for download if found valuable.
<?php // ################################################## ########################################// // PIXELPOST - PHOTOSTATS ADDON | PHOTOBLOG PUNK SOFTWARE BY PUNK@PIXELPUNK.SE // ADDON BY CENOPIX - YOU HAVE TO CREATE YOUR OWN IMAGES OF COURSE AND FIX HEIGHT AND WIDTH // ################################################## ########################################// $addon_name = "Previous_Current_Next_Link_As_Image"; $addon_description = "The links can be chosen as images.<br /> Previous image link &lt;LINK_IMAGE_PREVIOUS&gt;<br /> Current image link &lt;LINK_IMAGE_CURRENT&gt;<br /> Next image link &lt;LINK_IMAGE_NEXT&gt;<br />"; $addon_version = "1.0"; $link_current = "<img src='images/link_today.gif' alt='See todays image' width='33' height='11' border='0'>"; $tpl = ereg_replace("<LINK_IMAGE_CURRENT>",$link_curre nt,$tpl); $link_previous = "<img src='images/link_previous.gif' alt='See previous image' width='43' height='11' border='0'>"; $tpl = ereg_replace("<LINK_IMAGE_PREVIOUS>",$link_prev ious,$tpl); $link_next = "<img src='images/link_next.gif' alt='See next image' width='43' height='11' border='0'>"; $tpl = ereg_replace("<LINK_IMAGE_NEXT>",$link_next,$tp l); ?> // ######################### BTW: It would be very pleasant to have a central infopoint where the markups are listed and updated regularly.
__________________
CenoPix |
|
#3
|
||||
|
||||
|
I think it's a matter of template desing not an addon.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#4
|
||||
|
||||
|
well, I really don't know how you should call it. It's simply my way of solving this little problem. You need the variable: $image_previous_id and can't call it from a html template, well I can't. With the markups its easy.
__________________
CenoPix |
|
#5
|
||||
|
||||
|
I don't get the point here.
This Code:
<img src='images/link_today.gif' alt='See todays image' width='33' height='11' border='0'> Code:
<a href='?showimage=<IMAGE_ID> '><img src='images/link_today.gif' alt='See todays image' width='33' height='11' border='0'></a> <a href='?showimage=<IMAGE_NEXT_ID> '><img src='images/link_next.gif' alt='See todays image' width='33' height='11' border='0'></a> did you see the Pixelpost 1.3 tag list? http://www.pixelpost.org/forum/viewt...highlight=tags
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#6
|
||||
|
||||
|
seems I reinvented the wheel :wink:
Well, I hope, I have not caused to much trouble. But I know, I would never have come to your solution with: <a href='?showimage=<IMAGE_NEXT_ID> '> and not only because the markup documentation is kind of unaccessible. Thanks for your correction.
__________________
CenoPix |
| Post Reply |
| Thread Tools | |
|
|