форум vBSupport.ru > vBulletin > Вопрос — Ответ
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
busyava
Продвинутый
 
busyava's Avatar
Default [API] Open Weather Map (требуется помощь)
1

Нашел очень интересный - бесплатный сервис:
Погода размеченная на карте + множество всяких примочек.
Они предоставляют код и скрипты, но у меня, как я не старался, почему то ничего не показывает :(
Помогите пожалуйста. Вот ссылка:
http://openweathermap.org/weather
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
AleX
Гость
Default

busyava, куда вставляете?
 
 
StenLi
На доске почёта
Пожизненный блэк
 
banned nax
Default
1

busyava, EASY PAGES + http://openweathermap.org/wiki/API/examples и будет вам счастье, если конечно не напишете сами более функциональный модуль, или закажете. Вам в раздел куплю/закажу тогда.

PS. Под яву вот: http://openweathermap.org/wiki/API/OpenLayer

Last edited by StenLi : 11-17-2012 at 04:23 PM.
 
 
busyava
Продвинутый
 
busyava's Avatar
Default
0

Quote:
Originally Posted by AleX View Post
busyava, куда вставляете?
скрипты в headinclude, так же и в head вставлял
div id в body

ничего не помогает. не показывает и все тут. и с easy page, и без =(

вот код страницы в шаблоне:
PHP Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]lang="$stylevar[languagecode]"
<
head> <title>Прогноз погоды $vboptions[bbtitle]</title$headinclude


<script src="http://openlayers.org/api/OpenLayers.js"></script>
<script src="http://openweathermap.org/js/OWM.OpenLayers.1.3.4.js"></script>
<script type="text/javascript">
function init() {
    //Center of map
    var lat = 7486473; 
    var lon = 4193332;
    var lonlat = new OpenLayers.LonLat(lon, lat);
        var map = new OpenLayers.Map("basicMap");
    // Create overlays
    //  OSM
        var mapnik = new OpenLayers.Layer.OSM();
    // Stations
    var stations = new OpenLayers.Layer.Vector.OWMStations("Stations");
    // Current weather
    var city = new OpenLayers.Layer.Vector.OWMWeather("Weather");
    //Addind maps
    map.addLayers([mapnik, stations, city]);
    map.setCenter( lonlat, 10 );
}
</script>


</head> 
<body  onload="init()"> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0"

width="100%" align="center"> <tr> <td class="tcat">Прогноз погоды</td> </tr> <tr>
<td class="alt1">


<div id="basicMap"></div>



</td>
</tr> </table> $footer </body> </html> 
не пашет :(
 
 
StenLi
На доске почёта
Пожизненный блэк
 
banned nax
Default
1

busyava, А для чего в боди?)
Просто в скритс выведи там где нужно)
 
 
busyava
Продвинутый
 
busyava's Avatar
Default
0

не совсем понял про боди, но я почему то уверен, что дело тут явно не в месте подключения скриптов, а дело в самом коде, и скорее всего что то надо подправить, чтоб отразилась карта (яндекс карта к примеру прекрасно отображается), а вот что - не знаю, посему и создал данную тему..

busyava добавил 17.11.2012 в 20:09
+ заделиться находкой (может кто то все таки прикрутит к себе, и у него заработает)

Last edited by busyava : 11-17-2012 at 10:09 PM. Reason: Добавлено сообщение
 


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 On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 03:32 PM.


Powered by vBulletin® Version 3.0.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.