• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Traffic

Traffic 1.1

No permission to download
Compatible XF 1.x versions
1.5
Description:

Shows a Google traffic map in the sidebar.

Live example:

South Bay Riders

(Example of traffic map)

pic001.jpg


(Example of Options page)

pic002.jpg


Installation:
  1. Download traffic_v1.1.zip and unzip it.
  2. Upload the Andy folder to your server. The correct location is library/Andy.
  3. From your Admin Control Panel, go to the "Install Add-on" page.
  4. Upload the addon-Traffic_v1.1.xml file.
  5. Click the Install Add-on button.
Requirements:

This add-on requires the Sidebar Positions add-on located here:

Sidebar Positions

Set-up:
  1. Create a folder called "misc" in the document root of your server.

    http://www.example.com/misc

  2. Copy Andy/Traffic/traffic_small.php to the "misc" folder.
  3. Copy Andy/Traffic/traffic_large.php to the "misc" folder.
  4. Edit the Traffic Options page to indicate locations of the two files copied in the previous steps.
  5. Add the following code to the andy_sidebar_extra_one template:
    Code:
    <xen:if is="{$visitor.permissions.sidebarExtraOneGroupID.sidebarExtraOneID}">
    
    <div class="section">
    <div class="secondaryContent">
    
    <h3>{xen:phrase sidebarextraone_title}</h3>
    
    <div class="sidebar_wrapper">
    <iframe width="230" height="280" src="{$xenOptions.trafficSmallView}" scrolling="no" frameborder="no"></iframe>
    <a href="{$xenOptions.trafficLargeView}">{xen:phrase traffic_large_view}</a>
    </div>
    
    </div>
    </div>
    
    </xen:if>
  6. Edit the two PHP files in the /misc/ folder to change the coordinates that suit your desired location. Google coordinates are easily found by using Google Maps and looking at the URL.
  7. Set the Options page for Sidebar Positions, the Sidebar Extra One number will determine the Traffic sidebar block position.
Questions and Answers:

Q: Will this work with other frameworks?
A: No.
Sending a donation:

If you like this add-on, please consider sending a small donation.

https://www.paypal.me/andybajka

Thank you.
Likes: Fuhrmann
Author
AndyB
Downloads
46
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from AndyB

  • Ask a question
    Ask a question
    Displays an Ask a question page.
  • Link check
    Link check
    Verifies links in posts are valid and reports any which return HTTP status code 404.
  • Similar threads
    Similar threads
    Shows a list of similar threads when a user is creating or viewing a thread.
  • Border
    Border
    Easily add a border to any attached image in a post.
  • Bolt to new posts
    Bolt to new posts
    Change lightning bolt icon to new posts.

Latest updates

  1. See description

    Traffic v1.1 changes: Change made to traffic_small.php file.

Latest reviews

You've done it again! Another awesome mod and *must-have* for local or regional forums! Thank you again!