Q Map View of WeBid Users (with Google Maps)

Discussion in 'Modifications' started by telemachus, Mar 16, 2011.

  1. telemachus

    telemachus Member

    Joined:
    Dec 7, 2010
    Messages:
    23
    Likes Received:
    1
    Hi everyone:

    This application will let administrators see their WeBid users on a world map, using Google Maps.

    This would be a good analytics tool for WeBid site owners as you can see where clusters of your sellers, buyers and other users are located. This application works on WeBid Ver. 0.8.5. To use this application, download the files attached and put them all in the WeBid admin folder.

    Edit the file log_me_in.php so that it matches your Server configuration for host, username, and password. In the log_me_in.php file, Your Webid SQL database should remain as "webid".

    This php program uses Google maps to render the maps so you’ll need to go to http://code.google.com/apis/maps/signup.html and sign up for your own Google Maps api key.

    Once you have registered, you’ll get to the top of the signup pageThat says: “Your key is: (long string of characters)â€Copy this long string of characters and enter it in the line $map->setAPIKey(" "); in the files: Viewsellersmap.php, viewbiddersmap.php, viewusermaps.php. Each of these files should have your google maps API key in the line $map->setAPIKey(" "); .

    Next edit the file adminbar.tpl in C:\xampp\xampp\htdocs\WeBid\themes\default\admin At line 258 (in the "statistics" section), and add the line <img src="{SITEURL}admin/images/bul.gif" hspace="2"><a href="{SITEURL}admin/viewusermaps.php" target="content" class="submenulink">{L_50_0001}</a><br>.
    Then, you'll need to go into the language\EN\messages.inc file and add the line $MSG['50_0001'] = "Map view of users";

    Log into your WeBid admin home page, click graphic interface and then click on clear cache.Next, click the reload or refresh button in your browser. (Important NOTE: If you don’t clear cache like this in WeBid, you won’t see the changes on your admin home page!!) Now you will see an extra option in the Statistics section that says “Map view of users†(left hand side of the admin homepage).

    Note about this class: It uses the open source PHP mapping class Phoogle, which was written by Justin Johnson at Systemsevendesigns.com. I found this php interface for Google maps very easy to use!! It doesn't require any messing around with complicated xml or json codes that are used in
    other Google maps programs.

    You will now have map user files that let you view a Google maps rendering of WeBid users, including users who have a current auction listing, users who have bidded on a current auction, and users who are not currently active on WeBid. PLEASE NOTE that this application only shows a current snapshot of user activity and a snapshot on current auction listings. This mod DOES NOT SHOW user activity for auctions that have already ended in WeBid.
     

    Attached Files:

    Last edited: Jun 28, 2011
  2. van Hire Kent

    van Hire Kent New Member

    Joined:
    May 28, 2011
    Messages:
    32
    Likes Received:
    0
    Thanks for this link , will definitely download the google map as and when required.
     
  3. JerseySpence

    JerseySpence New Member

    Joined:
    Jan 8, 2011
    Messages:
    7
    Likes Received:
    0
    Hi there,

    In version 1.0.2 it seems that adminbar.tpl is no longer in system - where would I place the code to launch the maps? Is it viewaccesstats.php?

    Cheers.

    Spence
     
  4. telemachus

    telemachus Member

    Joined:
    Dec 7, 2010
    Messages:
    23
    Likes Received:
    1
    Hi,

    You can use this in Version 1.0.2 by editting a template file such as /themes/admin/sidebar-settings.tpl and inserting the line (in a location that you want on the sidebar).

    For example, in the sidebar-settings.tpl file:
    go below the line <li><a href="{SITEURL}admin/membertypes.php">{L_25_0169}</a></li> and insert the line <li><a href="{SITEURL}admin/viewusermaps.php">{L_50_0001}</a></li>

    Then, you'll need to go into the language\EN\messages.inc file and add the line $MSG['50_0001'] = "Map view of users";

    In your V 1.0.2 installation, log into your WeBid admin home page (admin/index.php), and click on clear cache. Next, click the reload or refresh button in your browser. (Important NOTE: you need to clear cache like this in WeBid, or else you won’t see the changes on your admin home page!!)

    Now you will see extra url links in your Settings page (left hand column) that has
    the link to see the Map view of the users.



     
    Last edited: Jun 28, 2011
  5. insel

    insel New Member

    Joined:
    Sep 5, 2013
    Messages:
    5
    Likes Received:
    1
    Map View does not work

    Hello,

    I get in both versions (0.8.5 and 1.0.2) the same messages:

    local (xampp):
    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in...
    online (www)
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in .../viewusermaps.php on line 23

    on all sides of this mod

    I have included in all the relevant files the google map key
    and the log_me_in.php filled in correctly

    can someone help me? please

    Thanks and regards
    insel (from Berlin)


    MODERATOR NOTE
    Please post any support for a mod in the mods own post and not in another new post.
    I have moved this for you HERE
     
    Last edited by a moderator: Sep 14, 2013
  6. Ledermann

    Ledermann New Member

    Joined:
    Apr 25, 2018
    Messages:
    2
    Likes Received:
    0
    Hello dear people,
    How do I integrate google map and google coordinates into the webid? Are there any possibilities here. I would be very happy to receive your detailed answers and solutions.

    Many Thanks.

    I. A. Ledermann


    GERMAN:
    Hallo liebe Leute,
    wie binde ich google-map und google-Kordinationen in die Webid ein? Gibt es hier Möglichkeiten. Auf eure ausführliche Antworten und Lösungen würde ich mich sehr freuen.

    Vielen Dank.

    i.A. Ledermann


    Moderator note: it's ok to post in another language as long as English is used first as you did. I combined your postings to trim the thread.
     
    Last edited by a moderator: Apr 26, 2018

Share This Page