Results 1 to 10 of 10

Thread: Yahoo Map Plugin from IndexUTemplates.com

  1. #1
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default Yahoo Map Plugin from IndexUTemplates.com

    I have a question regarding the Yahoo Map plugin thats on IndexUTemplates.com. Here is what is inside the plugin php file

    PHP Code:
     //add column to idx_link_temp
        
    $dbConn->execute("alter table `idx_link_temp` add `address` varchar (255) default NULL");
        
    $dbConn->execute("alter table `idx_link_temp` add `city` varchar (255)  default NULL");
        
    $dbConn->execute("alter table `idx_link_temp` add `zip_postal` varchar (255)  default NULL");
        
    $dbConn->execute("alter table `idx_link_temp` add `state` varchar (255)  default NULL");
        
    $dbConn->execute("alter table `idx_link_temp` add `country` varchar (255)  default NULL");
        
    //add column to idx_link
        
    $dbConn->execute("alter table `idx_link` add `address` varchar (255) default NULL");
        
    $dbConn->execute("alter table `idx_link` add `city` varchar (255)  default NULL");
        
    $dbConn->execute("alter table `idx_link` add `zip_postal` varchar (255)  default NULL");
        
    $dbConn->execute("alter table `idx_link` add `state` varchar (255)  default NULL");
        
    $dbConn->execute("alter table `idx_link` add `country` varchar (255)  default NULL");
        
    //insert data to idx_custom_field
        
    $dbConn->execute("insert into `idx_custom_field`(field_name,field_text,field_type,required,searchable) values ('address','Address','TEXT',1,1)");
        
    $dbConn->execute("insert into `idx_custom_field`(field_name,field_text,field_type,required,searchable) values ('city','City','TEXT',1,1)");
        
    $dbConn->execute("insert into `idx_custom_field`(field_name,field_text,field_type,required,searchable) values ('zip_postal','Zip Postal','TEXT',1,1)");
        
    $dbConn->execute("insert into `idx_custom_field`(field_name,field_text,field_type,required,searchable) values ('state','State','TEXT',1,1)");
        
    $dbConn->execute("insert into `idx_custom_field`(field_name,field_text,field_type,required,searchable) values ('country','Country','TEXT',1,1)"); 
    I already have my custom fields created and each of them have data in it already. They are the following:

    address1
    address2
    city
    state
    zip

    I currently do not have 'country' as one of them.

    Do I need to make any changes to the plugin to work with what I already have??

    I also what this plugin to display in a very specific place in my detail_links page. What do I need to do to make that happen?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I haven't used this plugin yet, but here's what I do know.

    1) If you add this plugin it will use the custom field(s) that you already have, but if you remove this plugin it will delete those fields!!! The plugins assume that the fields it creates are not used by anything else other than the plugin

    This is not a flaw in the plugin, it's how they were designed to operate so that when you remove them they clean up after themselves.

    2) You could always manually change YOUR custom fields to something else so that you can save them. You need to edit idx_link, idx_link_temp and idx_custom_field

    3) Since we use hooks (for plugins) the plugin would go where the hook is. If you want it in a specific place then you may just need to move the hook.

  3. #3
    Join Date
    Apr 2006
    Posts
    447

    Default

    Sorry, but I don't see how removal of a simple map plugin that leads to the deletion of all custom address fields that were there prior to its installation isn't considered a flaw.

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Most users don't use custom fields anyways, but if you're that concerned then simply rename them as I stated above.

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Bruce...

    Is the Google Map Plugin the same way???
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I would assume so, I haven't used it yet. Remember I haven't been here for almost a month.

  7. #7
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Ok... I was able to download the Google Map plugin today and its the same as the Yahoo plugin. I'm just not sure what to do here...

    Like I said in my previous post, I've already created my own custom fields and stored information in it. Not all of my custom fields match up with the custom fields of the plugin. So what should I do at this point?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I'll talk to the programmers about changing the field names in the plugins by default. For now I think your best bet would be to

    a) export your current data, so it can be imported if you decide to remove the plugin
    b) change the field names in the plugin (search and replace in all files) using a number perhaps in front of the field such as 1address

  9. #9
    Join Date
    Apr 2006
    Posts
    447

    Default

    FSGDAG, what came of this? Were you ever able to get this plugin working for you?

  10. #10
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Yep... Sure did...

    If you already have custom fields with the data in it prior to installing the plugin, make sure you backup the data first!!! The only real way I got it working was to backup my data, delete the custom fields that were associated with it, then install the plugin. The plugin will install its own custom fields, then just import the data back into the new custom fields the plugin created using phpMyAdmin.

    Are you having issues with it? Let me know if you need help
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. New templates on Indexutemplates for October
    By Bruceper in forum Announcements
    Replies: 5
    Last Post: 10-21-2008, 04:54 PM
  2. Welcome to the Indexutemplates.com forum!
    By Bruceper in forum Indexutemplates
    Replies: 6
    Last Post: 09-25-2008, 12:37 AM
  3. IndexuTemplates.com now open!
    By Bruceper in forum Announcements
    Replies: 0
    Last Post: 09-23-2008, 01:56 PM
  4. Indexutemplates.com question
    By esm in forum Indexutemplates
    Replies: 1
    Last Post: 09-10-2008, 02:15 PM
  5. What's wrong on www.indexutemplates.com?
    By colinjin in forum Pre-Sales Questions
    Replies: 8
    Last Post: 07-31-2008, 02:53 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
  •