couple of requests - kingmomo - 2007-09-17
Hello there,
Is there anyone out there who can help me with a couple of changes i want to implement?
here we go:
- On the homepage the description from the subpage should be limited to the first couple of words(title?)
- On the thumbnailpage i would like to have also a description.
- I rather not rename the pix, so I would love to have the titledescription be generated by increasing numbers instead of the original pix-name.
- couple of small other changes..
I love to speak to someone who can do some work on my site.. please let me know.
greetings,
Momo
couple of requests - sbillard - 2007-09-17
Are you modifying a current theme?
1. You can use the PHP substr() function to copy part of a string. substr(getAlbumTitle(), 0, 25); would, for instance, give you the first 25 characters of the title. For breaking at words you would have something like
`$title = getAlbumTitle;
if(!($pos = strpos($title, ' ', -1)===false)) {
$title = substr($title, 0, $pos);
}`
which would give the title up to the first blank.
2. getImateDesc() will give you the picture description. Just add it to your thumbs loop code.
3. You can set the title of the image independent of the file name. Use the Admin interface. Sorry, on autosequenc numbers.
4. ...
couple of requests - acrylian - 2007-09-18
@Kingmomo: And you could take a look at the trac, there is a list of all theme functions (currently not the new ones of the newest build) you can use to modify your theme: http://www.zenphoto.org/trac/wiki/TemplateFunctionsGuide
|