Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Disqus and Gallery - problem with comments

6 years 9 months ago #1

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Hello to all,
I have a little problem with comments on disqus and gallery.

There is a gallery with an article, and when i enter this article my url looks linke this: /photos/ and when i clik on a photo it changed to /photos/??photo (filter is active and first category is selected). Here i comment photo on disqus.

Then i go to other category, and come to the first one. My url looks like this: /photos/?cat1 and again when i click on a photo it changed to /photos/?cat1??photo and comment is gone (other url).

Is there a way to change something in order to url shows, on enter to page, first category (/photos/?cat1) instead of no category (/photos/).?

I hope someone will understand my english and help :-)
Best wishes to you all and thanks for any assistance.
Pawel

6 years 9 months ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
Hello,

It is possible, but you need to remove categories from the url.
To do it you need at the ba-gallery.js ( ./components/com_bagallery/assets/js/ba-gallery.js) to remove the line 618: window.history.pushState(null, null, href);

Regards,
Vyacheslav, Balbooa.com

6 years 9 months ago #3

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Thank you,
I'll do that and checked the results.

or maybe there is another way to ensure that comments will be properly assigned to specific photo (regardless of category).

Best wishes
Pawel

6 years 9 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 11281
Hello,

If it's possible for you, I can recommend you to disable category All or use Album mode layout.

Regards,

6 years 9 months ago #5

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Hi,
I disabled category "All". The problem, mentioned above, occured with category All - disabled.
When page is open, all the photos of category 1 are shown with url /photos/ but when i click on category 1 my url changes to /photos/?cat1 and still the same photos are shown.

Unfortunately album mode doesn't fit into my needs :-(

Pawel

6 years 9 months ago #6

  • Artem's Avatar
  • Artem
  • Posts: 11281
Can you please send link to photo with comment

If you don't have a lot of comments, I can recommend you to disable category All.

Yes, you will lose some comments, but all images will be visible only from 1 url
www.example.com?category-name?photo-name

and future comments will be always visible

6 years 9 months ago #7

  • Pawel's Avatar
  • Pawel
  • Posts: 15
My site is under construction, i can unblock my site and send you link but in any form of private message (or mail). I'm sorry - i can send to your support mail if i'm allowed to.

Like i said - i do have disabled category all, i have three categories (Nebulaes, Galaxies and Old Ones). When i open the page category Nebuales is active but there isn't /?nebulaes us url, when i click on this category again in url appears /?nebulaes.

I do have one comment (mine :-) ) right now so i want to solve this issue before i will open my site to anyone :-)

Pawel.

Pawel

6 years 9 months ago #8

  • Artem's Avatar
  • Artem
  • Posts: 11281
At this case try this solution

Vyacheslav wrote:
you need to remove categories from the url.
To do it you need at the ba-gallery.js ( ./components/com_bagallery/assets/js/ba-gallery.js) to remove the line 618: window.history.pushState(null, null, href);

Regards,

6 years 9 months ago #9

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Hello,
i already done that - i erased specific line from file. I uploaded this file back to server but they are still categories on url :-(
I tried to purge cache of joomla and browser - with no effect.
Is there anything else what i must do?

I can send login information to your support email if you want.

I have another issue - regardless of what I set in thumbnail witdth and height of thumbnail image - they are always 300x300px (and i tried to change % of compression too).
Can you look into this one too?

Best wishes
Pawel

6 years 9 months ago #10

  • Artem's Avatar
  • Artem
  • Posts: 11281
Hi Pawel,

Send us Joomla admin and FTP access, use our contact form
support.balbooa.com/contact-us

Regards,

6 years 9 months ago #11

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Hi,
any success?

i just looked at gallery, and they are still categories in the url and thumbnails are in 300x300px instead of 600x600px.

is there any problem?

Best wishes
Pawel

6 years 9 months ago #12

  • Artem's Avatar
  • Artem
  • Posts: 11281
Hi,

Right now we are working with your Gallery. I'll contact you when it will be ready

Regards,

6 years 9 months ago #13

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Thank you for your help and sorry for lack of patience :-)

I don't do anything with site - i don't want to interrupt your work.

Thank you again.
Paweł

6 years 9 months ago #14

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
Hello,

At admin panel we changed thumbnail width to 600 px and save .
We made some changes in the ba-gallery.js and it works fine.
You can check.

Happy New Year !

Regards,
Vyacheslav, Balbooa.ком

6 years 9 months ago #15

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Thank you! You're right. Thumbnails are 600x600px and looks great!

But my first problem remains :-( with url and comments. After entring gallery i have url without category and after clicking on category my url changes with /?category.

Will you be so kind and look into that issue too? Thank you

Pawel

6 years 9 months ago #16

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
Try now ,
we remove categories from image URL image

Regards,
Vyacheslav, Balbooa.com

6 years 9 months ago #17

  • Pawel's Avatar
  • Pawel
  • Posts: 15
Exactly what I have in mind!

Works perfectly!

I have one small question - when i create new gallery (with different photos and categories) this "feature" what you just did will be applied to it or you/I must do something?

Thank you again. Best support ever!
Pawel

6 years 9 months ago #18

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 28391
it will work in all of your galleries. :)

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum