Member
Member
barrento   2009-12-23, 21:12
#1

Hi,
Is there a way to show the text from the description of the thumbnails and single image in a two column order? I search the forum about "description" and more, and see no results.
And what about the albuns description: is it possible to limit the text to some amount, like a excerpt? I read about costume fields, but dont know how to do it...
Any help? Thanks

Administrator
Administrator
acrylian   2009-12-23, 21:19
#2
  1. HTML per se does not support real columns as you surely know. So there are two ways:

[list=1]
[]Set your theme up to use the description field and the custom field as two parts and then setup your theme to display them as fake columns. http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetAlbumCustomData
[
]Add html code to the description itself using two divs or a table.
[/list]
2. You can limit the description with standard php functions or our standard function:
http://www.zenphoto.org/documentation/functions/_functions.php.html#functiontruncate_string
You have to edit the given theme files.

Member
Member
barrento   2009-12-23, 22:30
#3

Thank you acrylian,
The only thing I tryed is the div thing, but it prints the same text three times! The two I created at the side of the thumbs and the one by default at the bottom... that is the only thing my bad knowledge let me do, lol. Php is to much for me, and css or html is just a bit better...

Administrator
Administrator
acrylian   2009-12-23, 22:44
#4

You have to use the two divs on the backend description editing field directly. You can switch our editor TinyMCE to a pure html mode. Of course the theme's CSS needs to be setup to display that correctly.

Member
Member
barrento   2009-12-24, 02:30
#5

I tryed with no sucess, probably I do something wrong...
Now I want the text one column above the thumbs. That is ok, but the description text appears at the bottom of the images too. I have deleted the editor_config.js.php because I saw in other post to remove it in order to make the text dissapear from the bottom. It did not work, still both texts. Now I put the file in its place again, but (only with IE), the search form disapear and the tags went crazy...
Zenphoto looks great, but not for people who dont understand php...

Administrator
Administrator
acrylian   2009-12-24, 11:27
#6

editor_config.js.php is the configuration file to load the TinyMCE editor on the administration backend. It has nothing to do with the display on the site itself. I don't know where you read that...

You probably call the album desc twice so it will appear twice. You probably really should read the theming tutorial again.

You also did not tell what theme you are actually using.

Quote:Zenphoto looks great, but not for people who dont understand php...
Every CMS requires special knowledge if you want to do special things as no CMS is able to do everything out of the box. You problem has not exactly really to do with PHP.

Member
Member
barrento   2009-12-24, 12:54
#7

Thanks once more, sorry for this long post.
I am using default theme. Maybe my problem is english...

I read it here: http://www.zenphoto.org/support/topic.php?id=5330
don´t know if I am right but it was what I understood. Anyway, after I remove the file, the search box dissapear. It is a strange behaviour. But now I put the file again in its place and when open the page in other computer I can see the search box, but not in my computer, only with IE, (even if I refresh the database, clean the cache, etc...). So I dont think it is a real problem.

And I dont know nothing about PHP, when you say I call the description twice, I dont think I do, but not sure exactly what that means, so maybe I am call it twice...

What I want is to remove the duplicated text at the bottom of the thumbs (the original one): http://www.barrento.com/emag/zenphoto/Egrets/ and I dont think I have call it twice, here is my code:

            " title=""> |  








" title=" ">










                " title=" ">






            " title=""> 
Member
Member
barrento   2009-12-24, 13:13
#8

OK!
I was really call it twice
Have you some ideia about the search box that dont show in my computer when using IE? Thanks once more, and sorry for my mistakes
Merry Christmas to all!

Member
Member
sbillard   2009-12-24, 18:24
#9

`` Have you enabled the theme option "allow search"?

Quote:And I dont know nothing about PHP
It is inevitable that you will need to learn something about programing (and PHP) if you wish to customize your inallation beyond what setting options can do for your.

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