Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#121 2008-01-05 07:21:10
- bolly
- Member
- Registered: 2007-09-08
- Posts: 10
Re: Widescreen, a photoblog template
Looking at the SQL image table, I see the image and thumb etc are there , but no URL associated…isn’t there meant to be a table for that?
I have these fields, only:
name, category , ext , w, h, alt , caption, date, author, thumbnail.
JOhn
Offline
#122 2008-01-05 23:00:22
Re: Widescreen, a photoblog template
ulves wrote:
Aloha.
I have setup the widescreen, but have a strange looking ‘message form’ in comments. Is it due some css problems or other things?
I have one picture uploadet with: 700 .
Site URL: http://www.dirkov.com/
Can anybody help?
Regards ulves
Hi ulves,
sorry to say that i cant help but im having the same problem. unfortunately ive just had to turn commenting off till i figure it out.
-best
kevin
its a bad hen that wont scratch itself.
photogallery
Offline
#123 2008-01-06 12:53:52
- ulves
- New Member
- Registered: 2008-01-04
- Posts: 3
Re: Widescreen, a photoblog template
kvnmcwebn wrote:
Hi ulves,
sorry to say that i cant help but im having the same problem. unfortunately ive just had to turn commenting off till i figure it out.
-best
kevin
Hi Kevin.
Thanks for the info.
But could you short describe howto turn commenting off properly? Have played around a little without any luck.
Regards Ulves.
Offline
#124 2008-01-06 13:35:11
Re: Widescreen, a photoblog template
bolly wrote:
Well, I tried substituting the <img src=”…> code for <txp:custom_field name=“Image-ID” /> and placed <txp:image id=“2” /> in the Image-ID custom-field
But still no success- an empty string. I can only think there must be a problem with the SQL and image urls, returning an empty field.
Why aren’t using the article image field instead of the custom field? And why are you trying to place the <txp:image id="2" />
inside the custom field? It doesn’t make sense.
You could also use <txp:article_image />
-tag that works together with the article image-inputfield.
And there shouldn’t be a url-field in the database, as the actual url is made from the ID-value dynamically. And the id is same as the rows value.
It works like with txp:article_image
and txp:image
tag like:
- You insert the id to the field.
- It searches the correct row with that id.
- It returns the extension, width and caption form the db.
- And creates the link with values from preferences at db, and inserts the caption if requested.
So no url field is in the database. And the width is inserted to the database automatically with PHP+GD-magic.
But if you mean that you want to use and link images to somewhere else, you could check some plugins, like rah_aimage that adds linking support to article_image.
Cheers!
Offline
#125 2008-01-06 18:27:36
- bolly
- Member
- Registered: 2007-09-08
- Posts: 10
Re: Widescreen, a photoblog template
Gocom wrote:
Why aren’t using the article image field instead of the custom field?
Thanks for that, i think it’s what I needed to know…i misunderstood the instructions.
And why are you trying to place the
<txp:image id="2" />
inside the custom field? It doesn’t make sense.
That was to test the custom field and image id, by substituting with a tag to cal the image url, which would normally work in field, or so i thought, from reading other discussions.
And there shouldn’t be a url-field in the database, as the actual url is made from the ID-value dynamically. And the id is same as the rows value.
yes i realised that, upon reflection.
But if you mean that you want to use and link images to somewhere else, you could check some plugins, like rah_aimage that adds linking support to article_image.
Thanks I could use that, possibly.
Cheers!
John
Offline
#126 2008-01-06 18:39:40
Re: Widescreen, a photoblog template
ulves wrote:
But could you short describe howto turn commenting off properly? Have played around a little without any luck.
just in the write article screen, is you accept comments turned off or on?
-kevin
its a bad hen that wont scratch itself.
photogallery
Offline
#127 2008-01-06 18:54:19
- bolly
- Member
- Registered: 2007-09-08
- Posts: 10
Re: Widescreen, a photoblog template
*HI, Gocom, *
A quick note, because I haven’t quite nailed it yet, I checked the instructions again, and they say:
Click on the Write tab. Enter your title, caption, and use the custom fields to specify the Image ID (just the number) and the Image Color (a hexadecimal code without the # sign).
The relevant code from forms.article (default and archive) are:
<img src=”<txp:site_url />
images/<txp:custom_field name=“Image-ID” />t.jpg”
alt=“Thumbnail of <txp:title />”
<div id=“photo”>
<txp:link_to_prev showalways=“1”><img src=”<txp:site_url />images/
<txp:custom_field name=“Image-ID” />.jpg”
alt=”<txp:title />” /></txp:link_to_prev>
Am I misunderstanding something? I mean, are you saying the instructions are outdated, and the custom field isn’t needed, but I should use the article-image filed, and change the code in the default and archive forms accordingly, to <txp:article_image />
?
LO! it works for the form.default/current page…..
But not for the archive page, when substituting <txp:thumbnail />, because of course there is no reference to the article-image’s thumbnail. So, I substitute the code in the form=archive with <txp:permlink><txp:article_image thumbnail=“1” /></txp:permlink>
And LO! it all works perfectly.
BAsically, you can’t have txp tags inside txp tags, that’s why the code in the widescreen download(v.1.0 and v.0.8) didn’t work for me. SO how on earth did it work for anyone? I conclude that the custom-field “Image-ID” isn’t required, nor useful.
I’ve been working with textpattern for 1 week now. A sharp learning curve , but I think well worth it, it is great.
John
Last edited by bolly (2008-01-06 19:33:40)
Offline
#128 2008-01-06 19:34:30
- ulves
- New Member
- Registered: 2008-01-04
- Posts: 3
Re: Widescreen, a photoblog template
kvnmcwebn wrote:
ulves wrote:
But could you short describe howto turn commenting off properly? Have played around a little without any luck.
just in the write article screen, is you accept comments turned off or on?
-kevin
Hi Kevin.
Ok I knew that one. I was playing around in the backend trying to completely remove everything but the picture gallery, until anyone could tell some more about the css problem or whatever’. I never found a link to your gallery, so i assumed you had removed the total ‘lower end’ of the site by a fancy trick.
Its a bit of a work to start going on with adding a lot of pictures, if the problem continues or can’t be solved. in 1024×800 it looks almost ok, but in 1280×1024 problem starts.
Regards ulves
Last edited by ulves (2008-01-06 19:39:25)
Offline
#129 2008-01-06 20:38:59
Re: Widescreen, a photoblog template
ulves,
i dont know what you mean by the gallery and lower end of my site.
anyway if you remove the coment on your article the layout wont break-its the same problem im having but its not with the css or outputted html.
its a bad hen that wont scratch itself.
photogallery
Offline
#130 2008-02-23 13:07:36
- Lakerfan24
- New Member
- Registered: 2008-02-23
- Posts: 1
Re: Widescreen, a photoblog template
Can someone help me with the installation of this theme? I love the design for my photoblog but I’m having a really hard time installing it. :(
My MSN Live Messenger is at purple.and.gold@live.com
Somebody please help me. Thanks!
Offline
#131 2008-03-05 18:39:19
- oneathena
- Member
- From: CA, USA
- Registered: 2006-02-07
- Posts: 14
Re: Widescreen, a photoblog template
Love the template. Strange problem i’m having. On pages other than the current the comment form shows twice and is at the top of the screen. If I remove this tag from the archive page it is fixed but i lose the custom color.
<txp:article limit="1" form="custom-color" />
Nevermind i had “Automatically append comments to articles?” set to yes
Last edited by oneathena (2008-03-06 03:01:02)
Offline
#132 2008-04-01 14:29:45
Re: Widescreen, a photoblog template
Here is a plugin I created to add a colorpicker to the custom-color field.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline