|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
Is PP installed correctly? Please share us your admin-panel info.
|
|
#3
|
|||
|
|||
|
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.. |
|
#4
|
|||
|
|||
|
Set the URL at general options to http://www.ebokeh.com/ and the image path should be something like ../images/.
|
|
#5
|
|||
|
|||
|
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.. |
|
#6
|
|||
|
|||
|
Mm, I looked at that page, the source oly contains <IMAGE_LINK_TEXT>
... Please post the source of your link_template.html |
|
#7
|
||||
|
||||
|
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
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#8
|
|||
|
|||
|
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! |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
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. |
| Post Reply |
| Thread Tools | |
|
|