Member
Member
sketchy   2010-03-15, 21:57
#1

it seems that no matter what i do, printTags() is outputting the tags without the 'preText' or as links. just a list of the tags.

function printTags($option='links', $preText=NULL, $class='taglist', $separator=', ', $editable=TRUE, $editclass='', $messageIfEmpty = true )

this is my call from the image.php file of my template.

will print only the tags, just, like, this, without, being, links, either.

any ideas?

Member
Member
kagutsuchi   2010-03-15, 23:46
#2

Are you using the latest version of Zenphoto (1.2.9)?

Member
Member
sketchy   2010-03-16, 01:32
#3

yes. 1.2.9

Administrator
Administrator
acrylian   2010-03-16, 10:01
#4

Make sure that you are not loggedin. If loggedin it does not display the pretext because of the inline editing capability.

Member
Member
sketchy   2010-03-16, 20:32
#5

ok. thanks.

now, with tags that are 2 words with a space in the middle, the link is wrong.
example:
TAGS: Double Window, etc...

when i click on 'Double Window' - the search link puts a %22 before and after and messes up the return of thumbnails.
http://mysite.com/page/search/tags/%22Double+Window%22
instead of
http://mysite.com/page/search/tags/Double+Window

why is that happening?

Administrator
Administrator
acrylian   2010-03-16, 20:55
#6

I do not see that on my install. How is your database setup?

Member
Member
sketchy   2010-03-16, 21:58
#7

is this what you mean?

Zenphoto version 1.2.9 [5088] (Official Build)


Current gallery theme: zpFocus_v1.2


PHP version: 5.2.13


Graphics support: PHP GD library bundled (2.0.34 compatible)


PHP memory limit: 96M (Note: Your server might allocate less!)


MySQL version: 5.0.67

Administrator
Administrator
acrylian   2010-03-17, 10:00
#8

I meant acutally the encoding of tables and fields in those tables.

Member
Member
sketchy   2010-03-17, 19:57
#9

ok.
zp_tags name varchar(255) utf8_unicode_ci

is this the table you mean?

these are the rest:

zp_administrators 65 MyISAM utf8_unicode_ci
zp_admintoalbum 60 MyISAM utf8_unicode_ci
zp_albums 145 MyISAM utf8_general_ci
zp_captcha 5 MyISAM utf8_unicode_ci
zp_comments 3 MyISAM utf8_general_ci
zp_images 2,022 MyISAM utf8_general_ci
zp_obj_to_tag 958 MyISAM utf8_unicode_ci
zp_options 457 MyISAM utf8_general_ci
zp_tags 308 MyISAM utf8_unicode_ci
zp_zenpage_news 7 MyISAM utf8_unicode_ci
zp_zenpage_news2cat 7 MyISAM utf8_unicode_ci
zp_zenpage_news_categories 3 MyISAM utf8_unicode_ci
zp_zenpage_pages 2 MyISAM utf8_unicode_ci

Administrator
Administrator
acrylian   2010-03-17, 20:53
#10

That was what I mean as the wrong encoding can lead to funny issues. utf8 is great. But sadly I have no idea why that happens for you.

I can't reproduce it with the standard themes. What theme are you using? (this is basic info btw...;-)) Probably a link to the site would be helpful, too.

Member
Member
reneesanguinetti   2010-03-25, 17:17
#11

Hello,

I am using version 1.2.9 default theme. I thought my problem was EXIF/IPTC related, but I have figured out it stems back to my original questions about tag "links" not working.

http://www.zenphoto.org/support/topic.php?id=7160

It puzzled me that the "links" worked at times and not others, but after much trial and error it seems the only tags that will not return images are multi-word tags. Such as "famous people". All single words work. Is there a way to change the code to return phrases or multi-word tags correctly without using a hyphen or comma?

Because the keywords for the metadata field are derived from these tags it is important to me to have "phrases" for many of my keywords.

Thank-you!

Member
Member
sbillard   2010-03-25, 17:44
#12

Check the setting of the "treat spaces as OR" search option.

Member
Member
reneesanguinetti   2010-03-25, 17:52
#13

I guess I always try to make things harder than they have to be!

I had that setting enabled. With it disabled all works well.

Thank-you for your help!

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