Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 03-07-2005, 03:03 PM
cenorx's Avatar
cenorx Offline
forum loafer
 
Join Date: Feb 2005
Location: Hamburg
Posts: 14
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
Reply With Quote
  #2  
Old 03-07-2005, 05:24 PM
cenorx's Avatar
cenorx Offline
forum loafer
 
Join Date: Feb 2005
Location: Hamburg
Posts: 14
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 <LINK_IMAGE_PREVIOUS><br />
Current image link <LINK_IMAGE_CURRENT><br />
Next image link <LINK_IMAGE_NEXT><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
Reply With Quote
  #3  
Old 03-07-2005, 05:32 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
I think it's a matter of template desing not an addon.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 03-07-2005, 06:03 PM
cenorx's Avatar
cenorx Offline
forum loafer
 
Join Date: Feb 2005
Location: Hamburg
Posts: 14
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
Reply With Quote
  #5  
Old 03-07-2005, 06:30 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
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'>
is a pure html code and you can use it in the template, why there should be tags in the addon for it? You have override <IMAGE_PREVIOUS_LINK> and it is not a clean scripting. you can simply use
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>
I know your addon is cute but sorry it's too cute for me.

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
Reply With Quote
  #6  
Old 03-07-2005, 08:13 PM
cenorx's Avatar
cenorx Offline
forum loafer
 
Join Date: Feb 2005
Location: Hamburg
Posts: 14
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 05:27 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs