maternal
Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22728 Posts in 6695 Topics- by 17594 Members - Latest Member: permsk

21-05-2019 11:50:47
JOOM::GALLERY::FORUMJoomGallery 2.x ACL - ExtensionsPluginsproblem with pinterest plugin
Pages: [1]
Print
Author Topic: problem with pinterest plugin  (Read 3057 times)
0 Members and 1 Guest are viewing this topic.
kogos
Newbie
*
Offline Offline

Posts: 18


View Profile
« on: 29-04-2013 16:35:05 »

there is a major problem with the pinterest plugin under joomla 2.5, using latest joomgallery and plugin versions. Everytime i try to pin something, i get an error:
Parameter 'image_url' (value http://http://xxxxxxx.com/images/joomgallery/details/xxxxxxxx/xxxxxx.jpg) is not a valid URL format.

of course, xxxx is my site name, my image url etc.... the problem is the two "http" that you see on the url. The plugin is creating a url like this:
http://pinterest.com/pin/create/button/?url=http://xxxx.com/xxx/xxx/&media=http://http://xxxxxxx.com/images/joomgallery/details/xxxxxxxx/xxxxxx.jpg

but this is wrong, and cannot be accepted by pinterest because it has http://http:// in the "media" value. It has 2 "http://" but there should be only one.

It is supposed to be easy to correct, and make the plugin to produce the correct url, but i don't know how...

Any ideas/fix on that?
« Last Edit: 29-04-2013 23:08:56 by kogos » Logged
federa
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #1 on: 06-10-2013 18:46:34 »


I've solved in this way ...

delete at line 57 in the joompinitbutton.php file this:

Code:
      $uri->setHost($current_host);

I hope will found a better solution. This works fine!
Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #2 on: 06-10-2013 20:05:17 »

Hi,

unfortunately, I cannot reproduce this problem.
Could you please post a link to your site?

The line you deleted is necessary with some site configurations.

Regards
Chraneco
Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 5246 access attempts in the last 7 days.

maternal