Jump to content

Скрипт погоды и валюты для форума

Featured Replies

Posted
comment_131909

Всем доброго времени суток.

Нужна помощь, хочу на сайт добавить скрипт что бы погоду показывал, и курс валюты. Вот пример сайта turkeyforfriends.com

Может встречал кто-то такой скрипт погоды и валюты как на данном сайте? 

3333.JPG

4444.JPG

  • Author
comment_131911
1 минуту назад, WOLF сказал:

гугл с Яшкой не помогли?

К сожалению, нет :/

Все что находил так это скрипты от других сервисов, которые свою рекламу пихают в низу... А на том сайте ничего подобного нет. Вчера весь вечер лазил по гугле, пытался найти похожий скрипт, но так и не нашел... :|

comment_131914
21 минуту назад, qmax89 сказал:

Все что находил так это скрипты от других сервисов, которые свою рекламу пихают в низу

ну это логично, люди же как-то должны продвигать свой продукт. 

22 минуты назад, qmax89 сказал:

А на том сайте ничего подобного нет

скорее всего потому что он самописный, либо куплен, либо грамотно скрыт копирайт. но больше подозреваю что первый вариант, т.к. проект довольно-таки крупный. 

  • Author
comment_131938

Столько всяких скриптов уже перекачал, ничего подобного не нашел, есть что-то подобное, работает на api яндекса, но рабочих скриптов не нашел :(

comment_131978
<!-- currency -->
<div id="valute-block">
<table id="currency" width="100%" border="0">
 <tr>
 <td>Курс турецкой лиры</td>
 <td>Покупка:</td>
 <td id="usd_in">USD/TL</td>
 <td id="rub_in">RUB/TL</td>
 <td id="uah_in">UAH/TL</td>
 <td id="kzt_in">KZT/TL</td>
 <td id="eur_in">EUR/TL</td>
 </tr>
 <tr>
 <td>Среда, 2017-07-05</td>
 <td>Продажа:</td>
 <td id="usd_out">USD/TL</td>
 <td id="rub_out">RUB/TL</td>
 <td id="uah_out">UAH/TL</td>
 <td id="kzt_out">KZT/TL</td>
 <td id="eur_out">EUR/TL</td>
 </tr>
</table>
</div>
<script type="text/javascript">
var rrrr=[{"selling":3.59871,"update_date":1499262074,"currency":1,"buying":3.59739,"change_rate":1.12570778245,"name":"amerikan-dolari","full_name":"Amerikan Dolar\u0131","code":"USD"},{"selling":4.0757,"update_date":1499262077,"currency":2,"buying":4.0739,"change_rate":0.874674533952,"name":"euro","full_name":"Euro","code":"EUR"},{"selling":4.6461,"update_date":1499262062,"currency":3,"buying":4.6445,"change_rate":0.982416483731,"name":"sterlin","full_name":"\u0130ngiliz Sterlini","code":"GBP"},{"selling":3.71968538118,"update_date":1499262052,"currency":7,"buying":3.71789519371,"change_rate":0.221635337372,"name":"isvicre-frangi","full_name":"\u0130svi\u00e7re Frang\u0131","code":"CHF"},{"selling":2.77320882355,"update_date":1499262067,"currency":4,"buying":2.77185887066,"change_rate":0.337007435806,"name":"kanada-dolari","full_name":"Kanada Dolar\u0131","code":"CAD"},{"selling":0.0599573888955,"update_date":1499262066,"currency":12,"buying":0.0599205311689,"change_rate":0.984302949377,"name":"rus-rublesi","full_name":"Rus Rublesi","code":"RUB"},{"selling":0.979993465476,"update_date":1499262071,"currency":10,"buying":0.979541556638,"change_rate":0.0149751548567,"name":"birlesik-arap-emirlikleri-dirhemi","full_name":"B.A.E. Dirhemi","code":"AED"},{"selling":2.7284285328,"update_date":1499262068,"currency":11,"buying":2.7280813485,"change_rate":0.302035109933,"name":"avustralya-dolari","full_name":"Avustralya Dolar\u0131","code":"AUD"},{"selling":0.547900080678,"update_date":1499262067,"currency":5,"buying":0.547713642037,"change_rate":0.224266556822,"name":"danimarka-kronu","full_name":"Danimarka Kronu","code":"DKK"},{"selling":0.422975577651,"update_date":1499262046,"currency":6,"buying":0.422746765988,"change_rate":-0.146651649538,"name":"isvec-kronu","full_name":"\u0130sve\u00e7 Kronu","code":"SEK"},{"selling":0.428950065546,"update_date":1499262067,"currency":8,"buying":0.428672694997,"change_rate":0.474139014543,"name":"norvec-kronu","full_name":"Norve\u00e7 Kronu","code":"NOK"},{"selling":3.17166375831,"update_date":1499262074,"currency":9,"buying":3.17038695066,"change_rate":0.172578929481,"name":"japon-yeni","full_name":"100 Japon Yeni","code":"JPY"},{"selling":11.7367205543,"update_date":1499229235,"currency":13,"buying":11.6548672566,"change_rate":0.361842105263,"name":"kuveyt-dinari","full_name":"Kuveyt Dinar\u0131","code":"KWD"},{"selling":0.268220872611,"update_date":1499262061,"currency":14,"buying":0.267864959428,"change_rate":1.89019857704,"name":"guney-afrika-randi","full_name":"G\u00fcney Afrika Rand\u0131","code":"ZAR"},{"selling":9.52959427208,"update_date":1499258747,"currency":15,"buying":9.52093824543,"change_rate":0.0265111346766,"name":"bahreyn-dinari","full_name":"Bahreyn Dinar\u0131","code":"BHD"},{"selling":2.58422113447,"update_date":1499239937,"currency":16,"buying":2.56911617247,"change_rate":0.265709156194,"name":"libya-dinari","full_name":"Libya Dinar\u0131","code":"LYD"},{"selling":0.957783704494,"update_date":1499260503,"currency":17,"buying":0.957362666667,"change_rate":0.0040001600064,"name":"suudi-arabistan-riyali","full_name":"S. Arabistan Riyali","code":"SAR"},{"selling":0.00304438135593,"update_date":1499258973,"currency":18,"buying":0.00302779089376,"change_rate":0.211237853823,"name":"irak-dinari","full_name":"Irak Dinar\u0131","code":"IQD"},{"selling":1.02291731802,"update_date":1499262049,"currency":20,"buying":1.01976589292,"change_rate":0.404086394809,"name":"israil-sekeli","full_name":"\u0130srail \u015eekeli","code":"ILS"},{"selling":0.000110622496148,"update_date":1499258843,"currency":19,"buying":0.000110276497696,"change_rate":-0.0276421266009,"name":"iran-riyali","full_name":"\u0130ran Riyali","code":"IRR"},{"selling":0.0554017857143,"update_date":1499262032,"currency":21,"buying":0.0553886409112,"change_rate":0.131001001772,"name":"hindistan-rupisi","full_name":"Hindistan Rupisi","code":"INR"},{"selling":0.196029483376,"update_date":1499262052,"currency":22,"buying":0.195906821239,"change_rate":1.05819814664,"name":"meksika-pesosu","full_name":"Meksika Pesosu","code":"MXN"},{"selling":0.0132170256523,"update_date":1499262045,"currency":23,"buying":0.0132073546308,"change_rate":0.404304721188,"name":"macar-forinti","full_name":"Macar Forinti","code":"HUF"},{"selling":2.6099280471,"update_date":1499260800,"currency":24,"buying":2.6077420292,"change_rate":0.32058287796,"name":"yeni-zelanda-dolari","full_name":"Yeni Zelanda Dolar\u0131","code":"NZD"},{"selling":1.08423462778,"update_date":1499262020,"currency":25,"buying":1.08371980967,"change_rate":0.327819321701,"name":"brezilya-reali","full_name":"Brezilya Reali","code":"BRL"},{"selling":0.000268647155443,"update_date":1499261878,"currency":26,"buying":0.000268007748473,"change_rate":0.407705255283,"name":"endonezya-rupiahi","full_name":"Endonezya Rupiahi","code":"IDR"},{"selling":0.156003207838,"update_date":1499262074,"currency":27,"buying":0.155948087526,"change_rate":0.158902444319,"name":"cek-korunasi","full_name":"\u00c7ek Korunas\u0131","code":"CSK"},{"selling":0.959469042592,"update_date":1499262048,"currency":28,"buying":0.958953105636,"change_rate":0.514352304539,"name":"polonya-zlotisi","full_name":"Polonya Zlotisi","code":"PLN"},{"selling":1.5292319619,"update_date":1438174813,"currency":29,"buying":1.52108539945,"change_rate":-0.20618556701,"name":"bulgar-levasi","full_name":"Bulgar Levas\u0131","code":"BGN"},{"selling":0.889217503027,"update_date":1499262046,"currency":30,"buying":0.88682835453,"change_rate":0.407102641836,"name":"romen-leyi","full_name":"Romanya Leyi","code":"RON"},{"selling":0.528411715383,"update_date":1499259802,"currency":31,"buying":0.528123667064,"change_rate":0,"name":"cin-yuani","full_name":"\u00c7in Yuan\u0131","code":"CNY"},{"selling":0.210658214349,"update_date":1499227975,"currency":32,"buying":0.210518834399,"change_rate":0.0148091105648,"name":"arjantin-pesosu","full_name":"Arjantin Pesosu","code":"ARS"},{"selling":0.03070579177,"update_date":1499258700,"currency":33,"buying":0.0306385521598,"change_rate":0.329750331892,"name":"arnavutluk-leki","full_name":"Arnavutluk Leki","code":"ALL"},{"selling":2.0900863842,"update_date":1499235311,"currency":34,"buying":2.0878545839,"change_rate":0.0352505728218,"name":"azerbaycan-manati","full_name":"Azerbaycan Manat\u0131","code":"AZN"},{"selling":2.07866597307,"update_date":1499261700,"currency":35,"buying":2.07549347801,"change_rate":0.29232149576,"name":"bosna-hersek-marki","full_name":"Bosna-Hersek Mark\u0131","code":"BAM"},{"selling":0.000179618381618,"update_date":1499261241,"currency":36,"buying":0.000179319531055,"change_rate":0.0623986022713,"name":"belarus-rublesi","full_name":"Belarus Rublesi","code":"BYR"},{"selling":0.0054051374493,"update_date":1499261949,"currency":37,"buying":0.00540112612613,"change_rate":0.354102312966,"name":"sili-pesosu","full_name":"\u015eili Pesosu","code":"CLP"},{"selling":0.00117452112906,"update_date":1499262069,"currency":38,"buying":0.00117337355291,"change_rate":0.712690488702,"name":"kolombiya-pesosu","full_name":"Kolombiya Pesosu","code":"COP"},{"selling":0.00631887579904,"update_date":1499252420,"currency":39,"buying":0.00620900894665,"change_rate":0.971501459,"name":"kostarika-kolonu","full_name":"Kostarika Kolonu","code":"CRC"},{"selling":0.0334008705902,"update_date":1499262078,"currency":40,"buying":0.0327801317624,"change_rate":0.726932290663,"name":"cezayir-dinari","full_name":"Cezayir Dinar\u0131","code":"DZD"},{"selling":0.199281337047,"update_date":1499240900,"currency":41,"buying":0.18873878628,"change_rate":2.71002710027,"name":"misir-lirasi","full_name":"M\u0131s\u0131r Liras\u0131","code":"EGP"},{"selling":0.460989637372,"update_date":1499262024,"currency":42,"buying":0.460939401314,"change_rate":0,"name":"hong-kong-dolari","full_name":"Hong Kong Dolar\u0131","code":"HKD"},{"selling":0.552473970331,"update_date":1499261638,"currency":43,"buying":0.54631190487,"change_rate":0.807568949548,"name":"hirvat-kunasi","full_name":"H\u0131rvat Kunas\u0131","code":"HRK"},{"selling":0.0350381157154,"update_date":1499255103,"currency":44,"buying":0.0348696498054,"change_rate":0.636319138522,"name":"izlanda-kronasi","full_name":"\u0130zlanda Kronas\u0131","code":"ISK"},{"selling":5.01664315938,"update_date":1499235181,"currency":45,"buying":5.00562983814,"change_rate":0.176242509693,"name":"urdun-dinari","full_name":"\u00dcrd\u00fcn Dinar\u0131","code":"JOD"},{"selling":0.00311374296841,"update_date":1499261523,"currency":46,"buying":0.00311144562678,"change_rate":0.329832479819,"name":"guney-kore-wonu","full_name":"G\u00fcney Kore Wonu","code":"KRW"},{"selling":0.0110488195771,"update_date":1499254994,"currency":47,"buying":0.0110458845644,"change_rate":0.596741943984,"name":"kazak-tengesi","full_name":"Kazak Tengesi","code":"KZT"},{"selling":0.00238764119601,"update_date":1499258869,"currency":48,"buying":0.00237632275132,"change_rate":0.185528756957,"name":"lubnan-lirasi","full_name":"L\u00fcbnan Liras\u0131","code":"LBP"},{"selling":0.0233671544715,"update_date":1499254447,"currency":49,"buying":0.0233363665908,"change_rate":0.133424452472,"name":"sri-lanka-rupisi","full_name":"Sri Lanka Rupisi","code":"LKR"},{"selling":0.976009878285,"update_date":1438151715,"currency":50,"buying":0.974000352299,"change_rate":-0.539612460142,"name":"litvanya-litasi","full_name":"Litvanya Litas\u0131","code":"LTL"},{"selling":5.43639228043,"update_date":1438117198,"currency":51,"buying":5.40113547377,"change_rate":-2.05177372963,"name":"letonya-latsi","full_name":"Letonya Lats\u0131","code":"LVL"},{"selling":0.371581066433,"update_date":1499262064,"currency":52,"buying":0.371077192802,"change_rate":0.166315441511,"name":"fas-dirhemi","full_name":"Fas Dirhemi","code":"MAD"},{"selling":0.197090606816,"update_date":1499234206,"currency":53,"buying":0.195993386608,"change_rate":0.331766657451,"name":"moldova-leusu","full_name":"Moldovya Leusu","code":"MDL"},{"selling":0.0664203727625,"update_date":1499262064,"currency":54,"buying":0.0660332171041,"change_rate":1.05712166172,"name":"makedon-dinari","full_name":"Makedon Dinar\u0131","code":"MKD"},{"selling":0.835880985588,"update_date":1499261234,"currency":55,"buying":0.834562340376,"change_rate":0.361179074916,"name":"malezya-ringgiti","full_name":"Malezya Ringgiti","code":"MYR"},{"selling":9.329002079,"update_date":1499250025,"currency":56,"buying":9.3238961039,"change_rate":0.0259807742271,"name":"umman-riyali","full_name":"Umman Riyali","code":"OMR"},{"selling":1.10877695625,"update_date":1499262000,"currency":57,"buying":1.10541628264,"change_rate":-0.122737035901,"name":"peru-inti","full_name":"Peru \u0130nti","code":"PEN"},{"selling":0.0709798856241,"update_date":1499262058,"currency":58,"buying":0.0708871158392,"change_rate":0.425363537442,"name":"filipinler-pesosu","full_name":"Filipinler Pesosu","code":"PHP"},{"selling":0.0331765957447,"update_date":1499254194,"currency":59,"buying":0.0331339186691,"change_rate":3.1950405341,"name":"pakistan-rupisi","full_name":"Pakistan Rupisi","code":"PKR"},{"selling":0.985026649816,"update_date":1499257354,"currency":60,"buying":0.984701164579,"change_rate":-0.0274589488714,"name":"katar-riyali","full_name":"Katar Riyali","code":"QAR"},{"selling":0.0328812275365,"update_date":1499243420,"currency":61,"buying":0.0326726779289,"change_rate":0.357445422558,"name":"sirbistan-dinari","full_name":"S\u0131rbistan Dinar\u0131","code":"RSD"},{"selling":2.6020501847,"update_date":1499262053,"currency":62,"buying":2.60027171753,"change_rate":0.0715938675152,"name":"singapur-dolari","full_name":"Singapur Dolar\u0131","code":"SGD"},{"selling":0.00691269563867,"update_date":1499200087,"currency":63,"buying":0.00690172266625,"change_rate":0.0485220192924,"name":"suriye-lirasi","full_name":"Suriye Liras\u0131","code":"SYP"},{"selling":0.105728554642,"update_date":1499261849,"currency":64,"buying":0.105550014667,"change_rate":0.2499632407,"name":"tayland-bahti","full_name":"Tayland Baht\u0131","code":"THB"},{"selling":0.117763562594,"update_date":1499262000,"currency":65,"buying":0.117539853652,"change_rate":0.235756385069,"name":"yeni-tayvan-dolari","full_name":"Yeni Tayvan Dolar\u0131","code":"TWD"},{"selling":0.137603527607,"update_date":1499252604,"currency":66,"buying":0.136278009875,"change_rate":0.669088128465,"name":"ukrayna-grivnasi","full_name":"Ukrayna Grivnas\u0131","code":"UAH"},{"selling":0.125349083216,"update_date":1499227975,"currency":67,"buying":0.124877020379,"change_rate":0.17599436818,"name":"uruguay-pesosu","full_name":"Uruguay Pesosu","code":"UYU"}];
function setCurse(a){
 if(!a)return;
 var ids = {'0':'usd','1':'eur','5':'rub','65':'uah','46':'kzt',};
 $.each(ids,function(i,val){
 var b = parseFloat(a[i].buying).toFixed(4),
 r = (a[i].change_rate>=0)?'▲':'?',
 s = parseFloat(a[i].selling).toFixed(4);
 $('#'+val+'_in').append(':&nbsp; '+b+'&nbsp;<span class="arrow">'+r+'</span>');
 $('#'+val+'_out').append(':&nbsp; '+s+'&nbsp;<span class="arrow">'+r+'</span>');
 }); 
};
setCurse(rrrr);
</script>
<!-- currency -->

 

  • Author
comment_131990

Спасибо за скриптик. ^_^

А как-то можно узнать с какого сервиса он берет данные?

А данных по курсу он не выдает :(

  • Author
comment_131995
10 минут назад, Silence сказал:

https://turkeyforfriends.com/.s/src/uwnd.js?1


<script type="text/javascript" src="https://turkeyforfriends.com/.s/src/uwnd.js?1"></script>

 

Что-то у меня не получается... :(

<script type="text/javascript" src="https://turkeyforfriends.com/.s/src/uwnd.js?1"></script>

Куда нужно вставить? Первый скрипт ставлю в блок на форуму,  а эту строку куда? если её поставить тоже в блок то она просто пропадает после нажать на кнопку сохранить.

comment_131996
13 минут назад, qmax89 сказал:

<script type="text/javascript" src="https://turkeyforfriends.com/.s/src/uwnd.js?1"></script>

после <head>

a више код еред </body>

может поставит и ето :

<script type="text/javascript" src="https://turkeyforfriends.com/.s/src/jquery-1.10.2.js"></script>

 

comment_131998

может изменит ссилку с вашем:

<script type="text/javascript" src="https://ваш форум.ru/uwnd.js"></script>
<script type="text/javascript" src="https://ваш форум.ru/jquery-1.10.2.js"></script>

 

jquery-1.10.2.js

uwnd.js

  • Author
comment_131999
12 минут назад, Silence сказал:

<script type="text/javascript" src="https://turkeyforfriends.com/.s/src/jquery-1.10.2.js"></script>

 

Добавил эту строку после <head>  и заработал скрипт.

Теперь работает, спасибо большое! 

А погодный скрипт так достать нельзя?

О еще лучше, сейчас залью, проверю

comment_132002
Только что, qmax89 сказал:

А с погодой так не получиться?

HTML:

<!-- Meteo -->
<div id="meteo"></div>

<!-- /Meteo -->

Script:

<script type="text/javascript" src="https://ваш форум.ru/fn.meteo.js"></script>

 

fn.meteo.js

в самой .js можно изменит и залит пут картинку

  • Author
comment_132003

С погодой что-то не получается :|

Я похоже что-то не так делаю, залил fn.meteo.js на сервер, прописал в шаблоне перед <head>

<script type="text/javascript" src="https://ваш форум.ru/fn.meteo.js"></script>

Путь к файлу указал свой, на страничке форума в блок вставил:

<!-- Meteo -->
<div id="meteo"></div>

<!-- /Meteo -->

Но погода не показывает, если открыть редактировать блок то он пустой оказывается. Тут что-то нужно было дописать? Я в html не силен :/

comment_132004
23 минуты назад, qmax89 сказал:

С погодой что-то не получается :|

Я похоже что-то не так делаю, залил fn.meteo.js на сервер, прописал в шаблоне перед <head>


<script type="text/javascript" src="https://ваш форум.ru/fn.meteo.js"></script>

Путь к файлу указал свой, на страничке форума в блок вставил:


<!-- Meteo -->
<div id="meteo"></div>

<!-- /Meteo -->

Но погода не показывает, если открыть редактировать блок то он пустой оказывается. Тут что-то нужно было дописать? Я в html не силен :/

попробуй ето скрипт

 

fn.meteo.js

<link type="text/css" rel="StyleSheet" href="https://turkeyforfriends.com/new.css" />

 

comment_132006

тут походу все печально с ручками у автора, элементарные вещи если не получаются, думаю стоит почитать мат часть...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.