Junior Member
Junior Member
kingmomo   2007-09-17, 18:48
#1

Hello there,

Is there anyone out there who can help me with a couple of changes i want to implement?

here we go:

  1. On the homepage the description from the subpage should be limited to the first couple of words(title?)
  2. On the thumbnailpage i would like to have also a description.
  3. 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.
  4. 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

Member
Member
sbillard   2007-09-17, 21:53
#2

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. ...


Administrator
Administrator
acrylian   2007-09-18, 09:23
#3

@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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.