Forums: [SOLVED] Custom link gets chopped off - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

[SOLVED] Custom link gets chopped off Rate Topic: -----

#1 User is offline   swanside 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 870
  • Joined: 19-December 07
  • Gender:Male
  • Location:Liverpool

Posted 11 January 2019 - 12:54 PM

Guys, |Can somebody please advise, I am using this line below as a Custom on my project, The idea is it will open the website and return the map to display the area by the Grid Reference.
The value in the Grid Ref is SJ 54456 85962

$value="<iframe src=http://gridreferencefinder.com/?gr=".$data["GridRef"] . " height='1000' width='1200'></iframe>";

But when the website runs only the link underlined below makes it to the SJ and the important bits at the end 54456 85962 get chopped off
Any ideas please how I can make the whole link complete please?
Thanks


<iframe src=http://gridreferencefinder.com/?gr=SJ 54456 85962 height='1000' width='1200'></iframe>
0

#2 User is offline   walk2fly 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 09-February 10
  • Gender:Male
  • Location:Hamburg City | Germany

Posted 11 January 2019 - 01:47 PM

https://asprunner.co...-20-characters/

... just an idea ..., if counted correctly, the underlined URL part consists out of 37 characters,
while whole you need to get underlined is 49 characters, say, 12 characters are currently NOT underlined
and hence wrongly interpreted. While shortening of URL is one thing, I think, the prolongation of URL
might work too (not tested). In other words, the suggested code as per URL above is talking about URL
shortening to 20 characters while it would be interesting to see whether changing the suggested code to
not shorten, but to prolong according to needs, here 49 characters could help or not here.

P.S. https://stackoverflo...aces-with-signs

Or you need to google for the very best "replace blank by %" code on the web ...
Ever innovate, Never compromise!
0

#3 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 16361
  • Joined: 03-February 03
  • Gender:Male

Posted 11 January 2019 - 03:52 PM

You need to wrap the value of src with single quotes:

$value="<iframe src='http://gridreferencefinder.com/?gr=".$data["GridRef"] . "' height='1000' width='1200'></iframe>";

Best regards,
Sergey Kornilov
0

#4 User is offline   swanside 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 870
  • Joined: 19-December 07
  • Gender:Male
  • Location:Liverpool

Posted 12 January 2019 - 02:43 AM

View Postadmin, on 11 January 2019 - 03:52 PM, said:

You need to wrap the value of src with single quotes:

$value="<iframe src='http://gridreferencefinder.com/?gr=".$data["GridRef"] . "' height='1000' width='1200'></iframe>";


Thansk Sergey
Worked like a charm :)
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users