Problem with overlay and buttons

  • megamax
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 11 months ago - 12 years 11 months ago #7818 by megamax
I have a problem with modules overlay and buttons showing number of slides. After instaling componenet sh404sef, overlay and buttons have dissapeared. I checked on page (with Chrome - inspect element) and found that link to the button is automaticaly changed and is not wright one. I assume that same problem is with gray overlay. Can you help me what to change that otherwise great component will work as it should.
Page is: www.medartis.si
Last edit: 12 years 11 months ago by megamax.

Please Log in to join the conversation.

More
12 years 11 months ago #7826 by ivan.milic
Try this:

in libraries/joomla/environment/uri.php line 228

Replace
$base = rtrim(dirname(str_replace(array('"', '<', '>', "'"), '', $_SERVER["PHP_SELF"])), '/\\');

With
$base = rtrim(dirname(str_replace(array('"', '<', '>', "'"), '', $_SERVER["SCRIPT_NAME"])), '/\\');


remember to back up file first.
(solution by charlie777pt)

Please Log in to join the conversation.

  • megamax
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 11 months ago - 12 years 11 months ago #7837 by megamax
That didn't solve the problem.
With button link there is a problem that I assume sh404sef insert a part of link name so the link is: www.medartis.si/Ginekologija-vsebina/mod.../slide-nav-brick.png instead of www.medartis.si/modules/mod_hot_image_sl.../slide-nav-brick.png
Please any other idea?
Last edit: 12 years 11 months ago by megamax.

Please Log in to join the conversation.

More
12 years 11 months ago #7858 by ivan.milic
Then you must alter .htaccess to add conditions that will make sef don't mess with image links.

I not expert on url rewriting, try to goolge around. This may be the rule that could solve your problem:

RewriteRule ^([^/]+/)+images/([^./]+\.[^/]+)$ /images/$2 [L]

Please Log in to join the conversation.

Time to create page: 0.367 seconds
Powered by Kunena Forum