Pixelpost

Authentic Photoblog Flavour


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

Post Reply
 
Thread Tools
  #1  
Old 10-30-2007, 03:11 PM
krembo99 Offline
forum loafer
 
Join Date: Oct 2007
Location: Here and There
Posts: 8
Icons/Images not showing

It seems I have encountered an odd problem, or maybe I am just mising the obvious here :

I can't change (or add) images to the basic template ..
somehow, if i try to change for example the RSS text link to an image/Icon link, the image is not showing(or in some cases, it showes only 1 or 2 rows of pixels... (using IMG)

It is surely a simple CSS error, but it is driving me crazy :-)
Reply With Quote
  #2  
Old 10-30-2007, 03:26 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Perhaps a link to this odd behavior?

One thing to keep in mind when adding images, is that when the template loads it's going to displayed in the root of your photoblog, so any paths to images need to account for that.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #3  
Old 10-30-2007, 05:31 PM
krembo99 Offline
forum loafer
 
Join Date: Oct 2007
Location: Here and There
Posts: 8
Sorry .. I can not post a link for 2 reasons :

1. - If I will post a link, You will not see the problem, you will just see a normal installation of the templte, because the picture is not showing :-)

2. - I do not have it on a server yet, but in a localhost install on my computer

But as i said before , except for the images not showing, you see almost nothing ifferent.

Just take the default installation of PP , and in the browse_template.html try to change the words "valid CSS" for example with <img src="../../images/something" /> .

The result of that , is nothing for me .
and so is the case if I add a new <div > </div> with an image inside. (for example at the end of the page, just before the body closure...
the div creates a table , but no image is shown. strange, eh ??
Reply With Quote
  #4  
Old 10-30-2007, 06:43 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
There are some pretty smart people on the boards here who know PixelPost pretty well and could probably figure out the problem with enough information. Since you really haven't given me much to go on, I'm going to make some broad assumptions. The footer for simple template's browse_template.html looks like this:

HTML Code:
<div id="footer">
Site Style: <a href="#" onclick="setActiveStyleSheet('light'); return false;">Light</a> /
<a href="#" onclick="setActiveStyleSheet('dark'); return false;">Dark</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<SITE_RSS_LINK> / <SITE_ATOM_LINK>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a href="http://validator.w3.org/check/referer" title="This website uses Valid xHTML">Valid xHTML</a> / <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This website uses Valid CSS2">Valid CSS</a>
</div>
If you want to change the link for valid css, you would only need to change this line:

HTML Code:
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="This website uses Valid CSS2">Valid CSS</a>
to something like this
HTML Code:
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="This website uses Valid CSS2"><img src="path/to/your/image.jpg"></a>
If you're trying to change the RSS link URL, you won't be able to use, the PP RSS tag, so you'll have to remove it and replace it with the feed URL and your image.
This:
HTML Code:
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<SITE_RSS_LINK>
Becomes:
HTML Code:
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://yourdomain.com/path/to/pixelpost/index.php?x=rss"><img src="path/to/your/image.jpg"></a>
And if you need more specific help, you will need to either post the code, or provide us with some other way to see the odd behavior.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego

Last edited by dakwegmo; 10-30-2007 at 09:05 PM.
Reply With Quote
  #5  
Old 10-30-2007, 07:56 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
True, when you post the link you won't see the image. But we will see the code. And that beats an image every time
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #6  
Old 10-30-2007, 11:00 PM
krembo99 Offline
forum loafer
 
Join Date: Oct 2007
Location: Here and There
Posts: 8
Hi...
well, when i tried to put he images, I did exactly what you later did

I have uploaded images to show what is happening:

This is the normal link :


this is how it looks in the code and in the HTML editor :



and this is how the result looks in the browser (firefox)


see that small gray line? that is the presumed image (the pixel button you see in the HTML editor)

Is the problem more clear now? anyone had that problem before??
Reply With Quote
  #7  
Old 10-31-2007, 12:45 AM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
See my original reply to your question for a hint at the answer, then see my last reply for a more thorough examination of the answer. Specifically though, you need to remove the ../../ from your image's source path. The reason for this is as I mentioned in my first reply

Quote:
Originally Posted by dakwegmo View Post
...when the template loads it's going to displayed in the root of your photoblog, so any paths to images need to account for that.
Alternatively, you could move the image file into your template directory, then change the path to the image to: templates/your_template/images/world-citizen.jpg

Either way though, the image won't show up in the design view of your HTML editor, because it's assuming a path relative to the document browse_template.html, not the actual document that calls the code which is /index.php.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #8  
Old 11-02-2007, 04:38 PM
krembo99 Offline
forum loafer
 
Join Date: Oct 2007
Location: Here and There
Posts: 8
Thanks ..

I have resolved the problem by re-writing the CSS (something I had to do anyhow for my template) . I do not know what the problem was , but it is resolved now.

Thanks anyhow ...
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:47 PM.

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