Results 1 to 8 of 8
  1. #1
    Pligg Donor lumpen5's Avatar
    Joined
    Mar 2007
    Posts
    50
    Thanks
    Received:0
    Given: 0

    Google map placement

    All:

    I want to be able to have a google map (plus street viewer) embed into my pligg site. Is there an easy way to make this happen?

  2. #2
    Constant Pligger aaronpais's Avatar
    Joined
    Apr 2007
    Posts
    168
    Thanks
    Received:0
    Given: 0
    Can anyone help us get started?

    I can do Step 1, need help with Step 2.

    Step 1) I want to capture the following info in the submit step (specifically submit step2)

    - Street Address (extra field1)
    - city (extra field 2)
    - state (extra field 3)
    - zip (extra field 4)

    Step 2) When the user submits after submit step 2, I want to use google's geocoding function to store the co-ordinates (Lat, Long) into another extra field.

    Thx

  3. #3
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    It's hard to answer this due to the lack of specifics in your post. I'm assuming you want a user to add these fields in the submission process? If so you will need to look into "extra fields" Having it process through google and spit out the results into link_summary.tpl is a whole different ball of wax.. Regardless, it's not something your going to be able to just set up like 1,2,3.. This will require vast programming skills and some serious in depth pligg knowledge.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  4. #4
    Constant Pligger aaronpais's Avatar
    Joined
    Apr 2007
    Posts
    168
    Thanks
    Received:0
    Given: 0
    Yes, you are right. I want to use extra fields to store the Address, City, Zip. Then use google code to convert it into latitude/longtitude and store in link_field7

    I started with a simple test. I inputted a hard-coded physical address, city, zip, using this code and added it to submit_step_3.tpl and got back a result. I am having trouble inserting this result into the link_field7 variable.

    Any suggesitons on what I could try next or how I could get this to work?

    Thx

  5. #5
    Constant Pligger aaronpais's Avatar
    Joined
    Apr 2007
    Posts
    168
    Thanks
    Received:0
    Given: 0
    AshDigg:

    Any ideas?

    The code returns the numbers that I need. I just need to inject into link_field7, so need some Pligg help...

    Thx

  6. #6
    Mayor of PliggVille/Coder AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Thanks
    Received:0
    Given: 0
    If you put it at or around line 68 of submit_step_3 then it should add it to the database. Just be sure to remove (or replace) this line

    PHP Code:
            $linkres->link_field7 trim($_POST['link_field7']); 

  7. #7
    New Pligger ThePortlander's Avatar
    Joined
    Feb 2007
    Posts
    24
    Thanks
    Received:0
    Given: 0
    Is there anyway to just get google maps into a posting.

  8. #8
    New Pligger valerio's Avatar
    Joined
    Mar 2008
    Posts
    4
    Thanks
    Received:0
    Given: 0

Similar Threads

  1. Ads Placement Problem
    By D4ce in forum Questions & Comments
    Replies: 2
    Last Post: 05-08-2009, 11:09 AM
  2. Placement of Search Box
    By fistball in forum Questions & Comments
    Replies: 5
    Last Post: 03-08-2009, 11:11 PM
  3. Ad Placement
    By rubber2002 in forum Questions & Comments
    Replies: 0
    Last Post: 07-20-2008, 09:30 PM
  4. Ad placement on these forums...
    By SoapTaco in forum Questions & Comments
    Replies: 5
    Last Post: 10-05-2007, 01:40 PM
  5. Google AdSense placement help
    By AshMCairo in forum Questions & Comments
    Replies: 7
    Last Post: 09-20-2007, 07:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg