DTO vBulletin Product Support


Go Back   Drive Thru Online - Support | Drive Thru Online vBulletin Products > Pre-Sales Questions > DTO Vendor Tools

DTO Vendor Tools Questions regarding our Vendor Tools product.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2010, 10:15 AM
Morrus Morrus is offline
 
Join Date: Apr 2010
Posts: 16
Default Error Messages

I've just installed DT Vendor Tools.

When attempting to add my first sample vendor, I am presented with the following error message:

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in [path]/includes/dto_classes/DTO_GoogleMapLocator.php on line 50

Warning: file_get_contents(http://maps.google.com/maps/geo?q=6%...GXwAWxjICh8dVg) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in [path]/includes/dto_classes/DTO_GoogleMapLocator.php on line 50


I'm assuming this is why it's not calculating the lat/long or displaying a map on the end user interface.

A bit of Googling indicates that this is linked to the allow_url_fopen and allow_url_include settings in php.ini. Most things I'm reading tell me it's a bad idea to set these settings to ON, although I did so to see if the error went away - which it didn't.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2010, 10:22 AM
Mark's Avatar
Mark Mark is offline
Administrator
 
Join Date: Nov 2008
Posts: 1,044
Default

Only allow_url_fopen needs to be set to yes in your php.ini. I'll be changing this out to use a internal vBulletin function that provides the same functionality but that won't be ready until we release the next versions of Vendor Tools for vB4 and vB 3.8.

If you change this set you'll need to restart Apache and check the resulting php settings as reported in AdminCP >> Maintenance >>View PHP Info to insure that it is enabled.

To retrieve the lat/lon information we have to query the Google mapping API to retrieve the information for the given city, state/province, country.

Thanks

Mark
__________________
Mark Ferguson
President - Drive Thru Online, Inc.
Drive Thru Online – Helping Turn Your Passion into Profit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2010, 10:36 AM
Morrus Morrus is offline
 
Join Date: Apr 2010
Posts: 16
Default

Thanks! That's what I needed to know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-16-2010, 10:52 AM
Morrus Morrus is offline
 
Join Date: Apr 2010
Posts: 16
Default

Thanks again - that has fixed the problem.

One other question, however - the map view in the end user interface is left-justified. Where would I go to center it?

(EN World D&D / RPG News - Powered by vBulletin) for link to see what I mean.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-16-2010, 10:58 AM
Mark's Avatar
Mark Mark is offline
Administrator
 
Join Date: Nov 2008
Posts: 1,044
Default

Can you tell me what browser you are using? In Firefox, Safari, and Chrome under OSX the map is centered justified in the display when viewing the URL you provided.

Thanks!

Mark
__________________
Mark Ferguson
President - Drive Thru Online, Inc.
Drive Thru Online – Helping Turn Your Passion into Profit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-16-2010, 11:07 AM
Morrus Morrus is offline
 
Join Date: Apr 2010
Posts: 16
Default

I'm using the latest IE.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-16-2010, 05:32 PM
Mark's Avatar
Mark Mark is offline
Administrator
 
Join Date: Nov 2008
Posts: 1,044
Default

I've spent some time looking at this and I've tested IE against several other sites running the same version of Vendor Tools to see if they are centered. On all the sites I checked only your installation is showing as not centered.

In investigating further I ran the URL (EN World D&D / RPG News - Powered by vBulletin) through a Tidy utility (HTML Tidy Online) to determine if there is some HTML that is confusing IE. Usually when I see different behavior between browsers it is due to some HTML tagging issue (ie - broken table cells, form tags, etc.).

When I run your link through there are some usual warnings you can ignore but the ones that concern me are those showing div tags outside of the body and Tidy thinking it needs to insert an implicit <body> tag for the page. Given this I believe that with some use of the Tidy utility you can resolve this issue in your style. I would suspect that most of the changes needed will be found in the headerinclude and header templates. Obviously if this is where the changes are made it will benefit your entire site as Tidy is reporting similar problems when I go to visit pages like your FAQ area (EN World D&D / RPG News - FAQ).

If you can get these sorted out I would expect that IE will start to render the map centered as expected.

Hope this helps!

Mark
__________________
Mark Ferguson
President - Drive Thru Online, Inc.
Drive Thru Online – Helping Turn Your Passion into Profit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-17-2010, 07:35 AM
Morrus Morrus is offline
 
Join Date: Apr 2010
Posts: 16
Default

I'm afraid I didn't understand a word of that, Mark! :)

There are no <body> tags in the header or headinclude templates. Do you mean that there's a redundant <div> tag in there somewhere?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-17-2010, 09:47 AM
Mark's Avatar
Mark Mark is offline
Administrator
 
Join Date: Nov 2008
Posts: 1,044
Default

It just means that there are some HTML validation problems in the pages of your site. Often, most browsers can still parse and render these ok but IE tends to not be as graceful.

The Tidy tool I mentioned above will help identify these issues so you can clean them up. I've found that if you look at a simple area of your site like the FAQ and start there, correct the issues that are often found in the header and headerinclude that all pages use, the problem will be resolved.

If you want me to take a few minutes and see if I can clean up your header/headerinclude so that it validates correctly for the vendor map just open a ticket so I can access the AdminCP >> Styles & Templates interface and I'll take a look. It will be Monday before I can take a look though since I've got family and some work items to complete first.

Thanks!

Mark
__________________
Mark Ferguson
President - Drive Thru Online, Inc.
Drive Thru Online – Helping Turn Your Passion into Profit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-17-2010, 11:39 AM
Morrus Morrus is offline
 
Join Date: Apr 2010
Posts: 16
Default

Quote:
Originally Posted by Mark View Post

If you want me to take a few minutes and see if I can clean up your header/headerinclude so that it validates correctly for the vendor map just open a ticket so I can access the AdminCP >> Styles & Templates interface and I'll take a look. It will be Monday before I can take a look though since I've got family and some work items to complete first.
Thanks, Mark - ticket submitted!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:26 PM.