Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6165111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:06:34+00:00 2026-05-23T22:06:34+00:00

<div> {$google_map_link} </div> I am assigning the following google map iframe codes into smarty

  • 0
<div>
    {$google_map_link}
</div>

I am assigning the following google map iframe codes into smarty and trying to display map on the screen.

google map that assigned to smarty variable {$google_map_link} is

<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.in/maps?q=Tiriyos&amp;gl=in&amp;hl=en&amp;sll=13.008237,80.193329&amp;sspn=0.206059,0.363579&amp;ie=UTF8&amp;view=map&amp;cid=5721197682818793762&amp;hq=Tiriyos&amp;hnear=&amp;ll=12.948405,80.137217&amp;spn=0.006441,0.011362&amp;iwloc=A&amp;output=embed"></iframe>
<br />
<small>
    <a href="http://maps.google.co.in/maps?q=Tiriyos&gl=in&hl=en&sll=13.008237,80.193329&sspn=0.206059,0.363579&ie=UTF8&view=map&cid=5721197682818793762&hq=Tiriyos&hnear=&ll=12.948405,80.137217&spn=0.006441,0.011362&z=17" style="color:#0000FF;text-align:left">View Larger Map</a>
</small>

I expect to display the google map on screen but only iframe codes are displayed

How to solve this…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:06:36+00:00Added an answer on May 23, 2026 at 10:06 pm

    In php

    <?
    $google_map_link = html_entity_decode($google_map_code);
    $smarty->assign('google_map_link', $google_map_link);
    ?>
    

    In HTML

    <div>
        {$google_map_link}
    </div>
    

    I had used html_entity_decode to decode google maps iframe code and displayed in smarty. This is easiest way to display google maps in smarty.

    I may help some one else

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to display google map as a tooltip using qTip jquery plugin.
I have a google map inside a div that I need to be hidden
I have current code that loads my google map into a colorbox but I'd
I have a <div> that holds a google ad. My website is mostly AJAX
I'm trying to center a google map on a single marker pulled from a
I have the following code in my webpage - the map div is not
I have a toolbar that manipulates a Google map. Some of the functions affect
I have a show page that should show a business and a google map
I'm trying to add a set of poly lines to a google map from
i have a form to enter directions and display a google map <form action=#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.