Pixelpost

Authentic Photoblog Flavour


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

Post Reply
 
Thread Tools
  #1  
Old 12-30-2006, 02:36 AM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
Additional page in template

I'm having a problem i can't quite figure out. I have built a template based on the pixelpost-ligh/dark templates. I've changed nothing except some of the css particulars and the page layout etc, and i've added a couple of pages with no problem (about/browse etc)

anyway, i'm working on an something that would run external to my site and want to create a couple of additional pages but i'm having problems. The first page i want will simply display a static link directly to the current image, no css, no formatting, just the link in the form: http://www.wxyz.com/images/image.jpg (not clickable, just text)

I've gotten a tag to work to display this text just fine, and i can add it to my image_template.html file and it displays just fine. i've created a new page called link_template.html, but when browsing to www.xyz.com/index.php?x=link i get nothing. i have tried a variety of things to make this link display, but none of them have worked. When viewing page source all i see is my tag (eg: <SITE_URL><IMAGE_NAME> or whatever)

I have a feeling that i'm just missing something pretty simple here, but i don't know what it is. if it makes any difference, when i copy my image_template.html file to image2_template.html and browse to http://www.wxyz.com/index.php?x=image2 i also get blanked out variables, but when i use my about_template.html page and go to ?x=about everything works as it has, variables such as <SITE_NAME> return the proper data.

Variables that are static (aka: not part of the dynamic image content, site name, base url etc) seem to display fine, but variables that rely on image data do not.

Any ideas?
Reply With Quote
  #2  
Old 12-30-2006, 09:36 AM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Is PP installed correctly? Please share us your admin-panel info.
Reply With Quote
  #3  
Old 12-30-2006, 09:55 AM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
I'm assuming you're talking about the "general-info" information about the install etc? it looks ok to me, never had any problems with it:

Host Information
URL http://www.ebokeh.com/cgi-system/php.cgi
PHP-version 4.4.4 (Pixelpost's min requirement: PHP version: 4.3.0 )
MySQL version 5.0.24a-standard-log (Pixelpost's min requirement: MySQL: 3.23.58 )
GD-lib bundled (2.0.28 compatible) with JPEG support
File Uploads to pixelpost site are possible.
Server Software Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.3.2
EXIF Pixelpost is using exifer v1.5 for EXIF-information.

Paths
Guessed imagepath: /home/jchabalk/htdocs/com.ebokeh/htdocs/cgi-systemimages/
Configured Imagepath: /home/jchabalk/htdocs/com.ebokeh/htdocs/images/
Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK

The only things that are strange to me are the "URL" and the Guessed Imagepath, that looks like some trick my provider is doing as those directories don't exist. The configured image path is correct. The behavior is strange though, as it there's a configuration detail missing etc..
Reply With Quote
  #4  
Old 12-30-2006, 11:25 AM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Set the URL at general options to http://www.ebokeh.com/ and the image path should be something like ../images/.
Reply With Quote
  #5  
Old 12-30-2006, 06:23 PM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
the URL is set to: http://www.ebokeh.com/

the images path is set to the absolute path of the directory on the filesystem, not relative to the web root. i think i had problems when setting it as a relative path. i just tried setting it to "images/" and my site works fine. i re-tried my static page and the results are the same as before. Just blank tags again..
Reply With Quote
  #6  
Old 12-30-2006, 08:45 PM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
Mm, I looked at that page, the source oly contains <IMAGE_LINK_TEXT>
...

Please post the source of your link_template.html
Reply With Quote
  #7  
Old 12-30-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
If you goto his link_template.html file and check out the source, all you see is: <IMAGE_LINK_TEXT>

Nothing else

http://www.ebokeh.com/templates/merc..._template.html
Reply With Quote
  #8  
Old 12-31-2006, 01:50 AM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
i've tried it a bunch of different ways - currently the file is one line: <IMAGE_LINK_TEXT>

If i put this same tag anywhere in image_template.html it returns the correct information. i've tried copying the image_template.html file to a new name and removing most everything (and also nothing) except for that tag and i also get the same resumts: no data. it's perplexing as everytime i use my image_template.html file things work properly, but if i try it in any other template file that i have (which otherwise do exactly what they should) i get the same results: nothing.

There must be either a problem with the way the *_template.html files are being parsed, or there's a config issue in my site, but i'm not seeing it.

thanks everyone for your help! i really appreciate it!
Reply With Quote
  #9  
Old 12-31-2006, 07:16 AM
DikkieBurger Offline
pixelpost guru
 
Join Date: Jul 2006
Posts: 157
MM, I don;t get it.

The image tag is only parsed in the image_template, you have to put something in the links template else it won't display anything.
Reply With Quote
  #10  
Old 12-31-2006, 08:39 PM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
that's what i think, but what is it that has to go in the link template to make it parse the tag? i've looked through my image_template and it's pretty straightforward. i tried setting up the link_template.html file with the head section of my image_template.html and the results didn't change.

if i put any of the static tags <SITE_NAME>, <SITE_URL> by themselves in the link_template they work just fine. kinda strange.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:38 PM.

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