In Gallery alttext and title do not show

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

In Gallery alttext and title do not show

Postby PixelPrinses » Wed Mar 30, 2011 9:07 pm

Hello,

I've tried to install the gallery for somebody and I've run into above mentioned problem.
Is there a way that I can fix it myself?

I have used:
Code: Select all
<div class="gallery">
[[gallery popup="fancybox" specthumbmax="150"]]
  <a href='%imageurl%%filename%' class="fancybox" title="%title%" rel="gallery-%uid%" >
  <img src="%pivotxurl%includes/timthumb.php?src=%filename%&w=%thumbw%&h=%thumbh%&zc=1" alt="%alttext%" />
  </a>
[[/gallery]]
</div>


And have added some specifics to the alttext and title fields but all I get is the filename, which is not what I want to see... (using Flat files running PivotX 2.2.5.)
Regards,
Irene
http://www.pixelprinses.nl/

Nothing of me is original, I'm the combined efforts of everyone I ever met!
User avatar
PixelPrinses
 
Posts: 46
Joined: Tue Sep 28, 2010 6:54 pm

Re: In Gallery alttext and title do not show

Postby Harm10 » Thu Mar 31, 2011 8:11 am

Were title and alt filled when images were added to the gallery? And is the text not displayed on the thumbnail or on the fancybox pop-up?
A link would help!
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: In Gallery alttext and title do not show

Postby PixelPrinses » Thu Mar 31, 2011 2:47 pm

Yes, all that was filled out when adding images to the Gallery. I've deleted most of the images now, since you cannot change the alttext and titletext afterwards and tried again...

Link: http://secondhandfashionzusenzo.nl/page/aanbiedingen
Regards,
Irene
http://www.pixelprinses.nl/

Nothing of me is original, I'm the combined efforts of everyone I ever met!
User avatar
PixelPrinses
 
Posts: 46
Joined: Tue Sep 28, 2010 6:54 pm

Re: In Gallery alttext and title do not show

Postby Harm10 » Thu Mar 31, 2011 6:39 pm

I tried recreating your problem but on my site it works without problems (on entries and on pages). This is a MySQL site.
You could try and see whether the galleryimagelist is correctly registered. It should be in the flat file that belongs to the page or entry. Look for galleryimagelist. After this string the image list with the alt and titles should be readable. Entries can be found in db/standard-00000.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: In Gallery alttext and title do not show

Postby PixelPrinses » Thu Mar 31, 2011 7:26 pm

OK, I set up the MySQL database and still no alttext or title in the fancybox picture...

UPDATE: 22:00 hrs...
I deleted in extensions the gallery dir and uploaded it again... From now on it works. But apparently only with MySQL.
Regards,
Irene
http://www.pixelprinses.nl/

Nothing of me is original, I'm the combined efforts of everyone I ever met!
User avatar
PixelPrinses
 
Posts: 46
Joined: Tue Sep 28, 2010 6:54 pm

Re: In Gallery alttext and title do not show

Postby Schop » Thu Mar 31, 2011 8:06 pm

It seems to be working though. I looked in the source code, and the anchor tag has the title attribute, the image tag has the alt attribute:

Code: Select all
<a href="/images/2011-02/img-20110211-00066.jpg" title="Mooie kinder-jacks in de aanbieding" rel="gallery-" class="fancybox"> <img src="/pivotx/includes/timthumb.php?src=2011-02/img-20110211-00066.jpg&amp;w=0&amp;h=100&amp;zc=1" alt="Mooie kinder-jacks in de aanbieding" /> </a>
User avatar
Schop
Contributor
 
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: In Gallery alttext and title do not show

Postby Harm10 » Thu Mar 31, 2011 8:31 pm

When I investigated I also looked in the source code (and this is before Irene changed to MySQL) and the strings were not there then. Did you check the strings in the flat file, Irene? Apparently this is a problem for flat file only but it would be useful to know whether the strings are there are not.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: In Gallery alttext and title do not show

Postby PixelPrinses » Mon Apr 04, 2011 4:08 am

I'm sorry but I did not catch any strings at all (in flat file system) which is why I switched to a database construction.
Regards,
Irene
http://www.pixelprinses.nl/

Nothing of me is original, I'm the combined efforts of everyone I ever met!
User avatar
PixelPrinses
 
Posts: 46
Joined: Tue Sep 28, 2010 6:54 pm

Re: In Gallery alttext and title do not show

Postby Harm10 » Mon Apr 04, 2011 1:55 pm

I am not sure but when you change from flat file to sql the flat files remain in place. If you just download the one that had the gallery in it and open it with notepad you should find the string "gallery". The rest is straightforward.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: In Gallery alttext and title do not show

Postby PixelPrinses » Sun Apr 10, 2011 6:35 am

Good mornin' all,

There seems to be a new problem. In Gallery it is no longer possible to upload images, plus (because I have tried to reinstall pivotx 2.2.5 and the gallery) the alttext and the titletext no longer appear on the latest images. Working with a database.

Anyone got a solution?

(It's for above mentioned site....)

PS I have also cleared the cache for the browsers and PivotX and tried it in Firefox, Chrome and Safari...

UPDATE 12-4-2011:
I found that the gallery release in the unstable development section solved the upload issue. And I found out that I can only upload an image once in order to retrieve the alt-text and title-text, when I try to upload the same image again it will not show alt-text and title-text..... :-D
Regards,
Irene
http://www.pixelprinses.nl/

Nothing of me is original, I'm the combined efforts of everyone I ever met!
User avatar
PixelPrinses
 
Posts: 46
Joined: Tue Sep 28, 2010 6:54 pm

Next

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 2 guests

cron