Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 29. Mar 2024, 13:58

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 22. Oct 2017, 22:13 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
Hi
Can you tell me if there is a setting I am missing in order to make combined iframe links work on Facebook? Whenever I try to share a link there (f.eks. https://www.hafdal.dk/legstadaleit/index.php/database/?page=s|www.hafdal.dk%2Ftng%2Fgetperson.php%3FpersonID%3DI3068%26tree%3DTree2) the url gets cut off when it is converted to HTML so this part gets converted: https://www.hafdal.dk/legstadaleit/index.php/database/?page=s|www.hafdal.dk and this part is left off: %2Ftng%2Fgetperson.php%3FpersonID%3DI3068%26tree%3DTree2.

How can I fix this?
Thanks
Rakel


Top
 Profile  
 
PostPosted: 22. Oct 2017, 22:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I don't understand. If I open
https://www.hafdal.dk/legstadaleit/index.php/database/?page=s|www.hafdal.dk%2Ftng%2Fgetperson.php%3FpersonID%3DI3068%26tree%3DTree2

and then check the iframe url it tells me:
https://www.hafdal.dk/tng/getperson.php?personID=I3068&tree=Tree2

in the iframe. In FF and Chrome.

Best, Michael


Top
 Profile  
 
PostPosted: 23. Oct 2017, 11:41 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
Yes the URL is correct, but somehow Facebook cuts the URL in two, stopping at the first "%" that is in the URL:
https://www.hafdal.dk/legstadaleit/index.php/database/?page=s|www.hafdal.dk%2Ftng%2Fgetperson.php%3FpersonID%3DI3068%26tree%3DTree2

Just try to copy the URL and share it on Facebook (either by creating a new post or adding it as a comment to an existing post). After you press Enter, the URL gets converted to a clickable URL, but only up to the first %. So when you try to click on the URL, you go to a page that does not exist.

I hope I have explained this good enough.


Top
 Profile  
 
PostPosted: 23. Oct 2017, 15:09 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Maybe the url is decoded there. You might have to encode the whole string one more time.

Best, Michael


Top
 Profile  
 
PostPosted: 23. Oct 2017, 15:15 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
How do I do that?


Top
 Profile  
 
PostPosted: 23. Oct 2017, 15:27 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
try something like this: https://www.url-encode-decode.com/

you might only have to encode the missing part twice...

Best, Michael


Top
 Profile  
 
PostPosted: 23. Oct 2017, 21:03 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
Thanks for the suggestion, unfortunately it does not work :( :( :(


Top
 Profile  
 
PostPosted: 23. Oct 2017, 23:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Have you checked in the facebook page how the link looks like?

Best, Michael


Top
 Profile  
 
PostPosted: 24. Oct 2017, 16:12 
Offline

Joined: 15. May 2016, 21:44
Posts: 78
I tried encoding this URL:
https://www.hafdal.dk/legstadaleit/index.php/database/?page=s|www.hafdal.dk%2Ftng%2Fgetperson.php%3FpersonID%3DI3428%26tree%3DTree2

And I got this URL:
[url]https%3A%2F%2Fwww.hafdal.dk%2Flegstadaleit%2Findex.php%2Fdatabase%2F%3Fpage%3Ds%7Cwww.hafdal.dk%252Ftng%252Fgetperson.php%253FpersonID%253DI3428%2526tree%253DTree2[/url]
Which Facebook does not recognize/convert it to a clickable link, so it does not work.

The problem is also that I want my users to be able to share a link, and they would not know to go through this encoding/decoding procedure before sharing my website.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy