PHP parsing variables in SMARTY Template ($50 for first working answer)

Discussion in 'Products & Tools' started by joshuawhite@knowyouragent, Feb 22, 2008.

  1. #1
    Hello All,

    I am at my wits end on this issue. I am new to this forum, but am very motivated and anxious to put an issue behind me.

    As such, I am willing to pay $50 to the first person who is able to accomplish my goal.

    Here is the issue.

    I have built a site utilizing two separate PHP scripts which I purchased and installed. I am attempting to integrate the two. My site is at: www.knowyouragent.net

    One of the scripts uses SMARTY templates. I need to do a PHP include, and use a variable within that include which will be parsed to pull the appropriate instance into the appropriate place.

    If you were to visit my site at: www.knowyouragent.net and click on Locate Agents, type in 76051 for the zip code and hit enter. This page's output is controlled by the locator script which utilizes the SMARTY template. If you click on "View Additional Agency Information" you will be brought to this page (which is controlled by the locator/SMARTY):

    http://www.knowyouragent.net/locator/results_details.php?id=13290&dist=0.0013242598320078

    Now, I would like to include the following at the bottom of this page, using the location.id as a variable which is the same id for both scripts to append the appropraite agents reviews to the bottom of the above page:

    http://www.knowyouragent.net/review/review_insert.php?item_id=13290

    Please help me make this happen if you know how!

    Thanks so much!

    Joshua
     
  2. MjWasHere

    MjWasHere Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i got a solution to this one .....
    tried it .....
    its working .....
    reply me for the answer .....
    better mail me ... coz am not frequent on any forums ......
     
    MjWasHere, Feb 27, 2008 IP
  3. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #3
    to access the id variable
    $smarty.get.id
    $smarty.get.item_id
     
    buldozerceto, Feb 27, 2008 IP