Pixelpost

Authentic Photoblog Flavour


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

Post Reply
 
Thread Tools
  #11  
Old 12-31-2006, 09:28 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
OK. I have decided to actually take the time and really look into this.

What tag is <IMAGE_LINK_TEXT> supposed to produce?

Is it some kind of addon?

There is no such tag pressent in pixelpost 1.5RC while looking though the index.php file.

This could be your answer. The tag, <IMAGE_LINK_TEXT>, does not work becuase it is not associated with anything related to pixelpost.

More info would be helpful.

Thanks.
Reply With Quote
  #12  
Old 01-01-2007, 03:20 AM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
Here are the additional lines that make up <IMAGE_LINK_TEXT>

in index.php:

$image_link_text = "images/$image_name";
. . .
$tpl = ereg_replace("<IMAGE_LINK_TEXT>",$image_link_text, $tpl);

I have added <IMAGE_LINK_TEXT> to the image_template.html file and it appears as it should. Add it to an alternate template file and it doesn't work at all.

all i'm really trying to do is get a text version of a static URL to the primary image. i'll then want to be able to also generate static links to previous pictures .

Something else i noticed when troubleshooting this is that if i pass the image template to the index.php page i get a similar (broken) result.

eg:

http://www.ebokeh.com/index.php?x=image generates a generally blank page (no image data)

from my understanding of how this works the above link should generate the same output as http://www.ebokeh.com (http://www.ebokeh.com/index.php), as all the ?x=image addition does is pass the image_template.html page as an argument.
Reply With Quote
  #13  
Old 01-01-2007, 08:26 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
I see what you mean about ?x=image but, I am still unable to find the <IMAGE_LINK_TEXT> in my index.php source code.

What version are you using?

What exactly are you trying to do?

You just want to display the url to each image on a seperate page but not clickable?
Reply With Quote
  #14  
Old 01-02-2007, 03:17 AM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
the <IMAGE_LINK_TEXT> tag is one that i added to index.php. it was done simply to allow me to have the URL to a specific image (the main image, and then previous/next as needed).

anyway that i can accomplish that would solve my problem. i was looking through the available tags and didn't see one that did that. (non-link, just text).

The version of pixelpost i'm running is 1.5 (April 2006)

thanks!
Reply With Quote
  #15  
Old 01-02-2007, 08:55 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
I made an addon for you. hold on a few minutes and i will upload it
Reply With Quote
  #16  
Old 01-02-2007, 09:06 PM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
i had a chance to try some more things here...

i had initially created the <IMAGE_LINK_TEXT> tag in index.php as a slightly more elegant way of achieving the plain text URL output. It does work as i expected, but only when it's added to the image_template.html.

I went through the tags section of the wiki and tried to construct the same output out of included pixelpost tags. The two tags that i need to use are <SITE_URL> and <IMAGE_NAME>

I constructed the URL to be output as such:
<SITE_URL>images/<IMAGE_NAME>

This does output the correct URL when used in my image_template.html page, but again when i put these tags into the link_template.html it does not work. i just get "images/" displayed as that's the only static text. when viewing the page source the non-parsed variables are still present.

http://www.ebokeh.com/index.php?x=link
Reply With Quote
  #17  
Old 01-02-2007, 09:08 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Try this and let me know if this is what you wanted:

grab_image_path.zip

Use the tag: <FULL_IMAGE_PATH>

This addon will display all images found in your database as non clickable links in a list format.

Last edited by Dkozikowski; 01-05-2007 at 07:35 AM.
Reply With Quote
  #18  
Old 01-02-2007, 09:09 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Quote:
Originally Posted by jchabalk View Post
i had a chance to try some more things here.....

.....I constructed the URL to be output as such:
<SITE_URL>images/<IMAGE_NAME>

This does output the correct URL when used in my image_template.html page, but again when i put these tags into the link_template.html it does not work. i just get "images/" displayed as that's the only static text. when viewing the page source the non-parsed variables are still present.

http://www.ebokeh.com/index.php?x=link
Install my above addon, place <FULL_IMAGE_PATH> in your link template and check it out.

Last edited by Dkozikowski; 01-05-2007 at 07:36 AM.
Reply With Quote
  #19  
Old 01-02-2007, 09:20 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
If the addon is not exactly what you wanted let me know how you want the links to display and i can change it for you.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 05:25 AM.

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