Kingsley |
|
---|---|
http://www.cotonti.com/downloads/plugins/pages-lists/pageavatar_plugin
I am trying to get this to work. I can upload the image, it is saved on the webserver, but image stays empty when I look at the list. used this piece of code to display an image when none is added in the page <!-- IF {LIST_ROW_IMG} --> <a href="datas/photos/{LIST_ROW_IMG}"><img src="datas/thumbs_pages/{LIST_ROW_IMG}" /></a> <!-- ELSE --> <img src="http://www.x-ecutionerz.com/images/image.png"/> <!-- ENDIF --> Strange thing is; No image is displayed, but the second I add an image, it disappears and none is shown. Live example: http://www.x-ecutionerz.com/site/list.php?c=gnews first (starcraft II) article has an page avatar added to it. Thx in advance for your help |
pieter |
|
---|---|
{LIST_ROW_IMG} is not a imagename, it is a path.
Try to replace <a href="datas/photos/{LIST_ROW_IMG}"><img src="datas/thumbs_pages/{LIST_ROW_IMG}" /></a> with {LIST_ROW_IMG} Added 2 minutes later: Did you do it like this: http://www.seditio.by/page.php?al=pageavatar_plugin_for_cotonti Added 2 minutes later: I see this link: http://www.x-ecutionerz.com/site/datas/thumbs_pages/page_153_SEC_logo_anim.gif Are you sure it is located there? ... can we help you ...
|
|
This post was edited by pieter (2010-08-12 01:21, 14 years ago) |
Kingsley |
|
---|---|
Just replaced
<a href="datas/photos/{LIST_ROW_IMG}"><img src="datas/thumbs_pages/{LIST_ROW_IMG}" /></a> with {LIST_ROW_IMG} gave as result: http://www.x-ecutionerz.com/site/datas/thumbs_pages/page_153_SEC_logo_anim.gif files are saved in datas/thumbs Added 1 minute later: k, works now |
pieter |
|
---|---|
Thumb is not created. Original is there: http://www.x-ecutionerz.com/site/datas/photos/page_153_SEC_logo_anim.gif
... can we help you ...
|
Kingsley |
|
---|---|
only resize doesn't work :S
|
pieter |
|
---|---|
Thumb is very big.
Added 17 seconds later: add a class to it. ... can we help you ...
|
Kingsley |
|
---|---|
done
![]() thank you for your help pieter |
pieter |
|
---|---|
I use this:
/*This is for Jquery*/ /* for understanding browsers */ .resizeimage { max-width:250px;max-height:250px;} /* for Internet Explorer */ /*\*/ * html .resizeimage{ border-width:1px solid #000000; height: expression(this.height >= this.width && this.height > 250 ? '250px' : true); width: expression(this.height < this.width && this.width > 250 ? '250px' : true); } <a href="$1"><img src="$1" alt="" class="resizeimage" /></a> Dit gebruik ik in forum, zodat de foto's klein zijn, en als je er op klikt de originele opengaat. Added 37 seconds later: How did you do it? ... can we help you ...
|
Kingsley |
|
---|---|
I added width="154px" height="100"
<a href="datas/photos/{LIST_ROW_IMG}"><img src="datas/thumbs/{LIST_ROW_IMG}" width="154px" height="100" /></a> Added 28 minutes later: any idea how to remove the black border around it with the size in it? |
|
This post was edited by Kingsley (2010-08-12 02:06, 14 years ago) |
ez |
|
---|---|
He King,
Those are pfs settings (see admin panel) ==- I say: Keep it EZ -==
|
Kingsley |
|
---|---|
oke, thx man..
|
tensh |
|
---|---|
"width="154px"" is quite incorrect, "px" is used in css styles, not in html. Just to let you know.
|
ez |
|
---|---|
King:
I think tensh is saying: <a href="datas/photos/{LIST_ROW_IMG}"><img src="datas/thumbs/{LIST_ROW_IMG}" style="width:154px; height:100px" /></a> ==- I say: Keep it EZ -==
|
Kingsley |
|
---|---|
uh, result is the same, why the difference?
|
ez |
|
---|---|
I do not know why tensh mentioned this??
I checked the img tag specs.. and you are right they both are valid ?? so, yes result is the same.. ==- I say: Keep it EZ -==
|