Каталог файлов

Рейтинг:3.0
Категория: Скрипты для Ucoz
 


Отнятие/прибавление баллов пользователям очень простое (1 клик).

Пользователь заполняет форму заказа услуги, вам в ЛС приходит такое сообщение, вы выполняете услугу, переходите по ссылке, делаете 1 клик и все, готово.




Требования:
- Модуль Блог

Заходим в модуль Блог » Настройки модуля » Поля для добавления материалов и уберем галочки везде кроме,

Полный текст материала,

Дополнительное поле 1,

Дополнительное поле 2

В вид материалов блога меняем все на:

Code
<span class="xml-punctuation"><</span><span class="xml-tagname">span </span><span class="xml-attname">class</span><span class="xml-punctuation">=</span><span class="xml-attribute">"ballEdit"</span><span class="xml-punctuation">></span><span class="xml-punctuation">
<</span><span class="xml-tagname">span </span><span class="xml-attname">class</span><span class="xml-punctuation">=</span><span class="xml-attribute">"plus"</span><span class="xml-punctuation">></span><span class="xml-text">$OTHER1$</span><span class="xml-punctuation"></</span><span class="xml-tagname">span</span><span class="xml-punctuation">></span><span class="xml-punctuation">
<</span><span class="xml-tagname">span </span><span class="xml-attname">class</span><span class="xml-punctuation">=</span><span class="xml-attribute">"minus"</span><span class="xml-punctuation">></span><span class="xml-text">$OTHER2$</span><span class="xml-punctuation"></</span><span class="xml-tagname">span</span><span class="xml-punctuation">>
</span><span class="xml-punctuation"><</span><span class="xml-tagname">span </span><span class="xml-attname">class</span><span class="xml-punctuation">=</span><span class="xml-attribute">"log"</span><span class="xml-punctuation">></span><span class="xml-text">$MESSAGE$</span><span class="xml-punctuation"></</span><span class="xml-tagname">span</span><span class="xml-punctuation">></span>
<span class="xml-punctuation"></</span><span class="xml-tagname">span</span><span class="xml-punctuation">></span><span class="xml-text">$MODER_PANEL$</span>


OTHER1$ и $OTHER2$ - можно поменять на свои.

Страница архива материалов блогa, меняем $BODY$ на:

Code
<div id="bFast">$BODY$</div>


Скачиваем файл скрипта, после чего открываем его текстовым редактором, идем на сайт - Персональная страница пользователя и перед вставляем код скрипта. В этом же шаблоне, в нужное место, где хотите видеть надпись "Баллы пользователя" вставляем:

Code
<span class="xml-punctuation"><</span><span class="xml-tagname">div </span><span class="xml-attname">class</span><span class="xml-punctuation">=</span><span class="xml-attribute">"udtb"</span><span class="xml-punctuation">></span><span class="xml-punctuation"><</span><span class="xml-tagname">div </span><span class="xml-attname">class</span><span class="xml-punctuation">=</span><span class="xml-attribute">"udtlb"</span><span class="xml-punctuation">></span><span class="xml-text">Баллы пользователя:</span><span class="xml-punctuation"></</span><span class="xml-tagname">div</span><span class="xml-punctuation">></span><span class="xml-punctuation"><</span><span class="xml-tagname">a </span><span class="xml-attname">href</span><span class="xml-punctuation">=</span><span class="xml-attribute">"#" </span><span class="xml-attname">onclick</span><span class="xml-punctuation">=</span><span class="xml-attribute">"balli.open();return false;" </span><span class="xml-attname">id</span><span class="xml-punctuation">=</span><span class="xml-attribute">"ballov"</span><span class="xml-punctuation">></span><span class="xml-text">…</span><span class="xml-punctuation"></</span><span class="xml-tagname">a</span><span class="xml-punctuation">></span><span class="xml-punctuation"></</span><span class="xml-tagname">div</span><span class="xml-punctuation">> </span>


Стили вставляем в самый низ - Дизайн >> Таблица стилей:

Code
<span class="xml-punctuation"><</span><span class="xml-tagname">style </span><span class="xml-attname">type</span><span class="xml-punctuation">=</span><span class="xml-attribute">"text/css"</span><span class="xml-punctuation">></span>
<span class="css-select-op">.</span><span class="css-selector">gold1 </span><span class="css-punctuation">{</span><span class="css-identifier">text-align</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">padding</span><span class="css-punctuation">:</span><span class="css-unit">3px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">gold2 </span><span class="css-punctuation">{</span><span class="css-identifier">clear</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">float</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">width</span><span class="css-punctuation">:</span><span class="css-unit">150px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-selector">#goldI </span><span class="css-punctuation">{</span><span class="css-identifier">display</span><span class="css-punctuation">: </span><span class="css-value">none</span><span class="css-punctuation">}</span>
<span class="css-select-op">.</span><span class="css-selector">etitle</span><span class="css-punctuation">{</span><span class="css-identifier">background</span><span class="css-punctuation">:</span><span class="css-colorcode">#f1f1f1</span><span class="css-punctuation">;</span><span class="css-identifier">border</span><span class="css-punctuation">:</span><span class="css-unit">1px </span><span class="css-value">solid </span><span class="css-colorcode">#cdcbcb</span><span class="css-punctuation">;</span><span class="css-identifier">text-shadow</span><span class="css-punctuation">:  
  </span><span class="css-unit">0.1em </span><span class="css-unit">0.1em  
  </span><span class="css-unit">0.05em </span><span class="css-colorcode">#FFF</span><span class="css-punctuation">;</span><span class="css-identifier">padding</span><span class="css-punctuation">:</span><span class="css-unit">7px</span><span class="css-punctuation">;</span><span class="css-punctuation">}</span>
<span class="css-selector">#tableball </span><span class="css-selector">tr </span><span class="css-selector">td</span><span class="css-punctuation">{</span><span class="css-identifier">background</span><span class="css-punctuation">:  
  </span><span class="css-colorcode">#fafafa</span><span class="css-punctuation">; </span><span class="css-identifier">border</span><span class="css-punctuation">: </span><span class="css-unit">1px </span><span class="css-value">solid </span><span class="css-colorcode">#bdbdbd</span><span class="css-punctuation">;</span><span class="css-identifier">padding</span><span class="css-punctuation">: </span><span class="css-unit">4px </span><span class="css-unit">10px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">xt-edit</span><span class="css-punctuation">{</span><span class="css-identifier">background-position</span><span class="css-punctuation">:</span><span class="css-unit">0 </span><span class="css-value">-90px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">xt-edit-over</span><span class="css-punctuation">{</span><span class="css-identifier">background-position</span><span class="css-punctuation">:</span><span class="css-value">-15px </span><span class="css-value">-90px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">xt-log</span><span class="css-punctuation">{</span><span class="css-identifier">background-position</span><span class="css-punctuation">:</span><span class="css-unit">0 </span><span class="css-value">-315px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">xt-log-over</span><span class="css-punctuation">{</span><span class="css-identifier">background-position</span><span class="css-punctuation">:</span><span class="css-value">-15px </span><span class="css-value">-315px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">rdv </span><span class="css-punctuation">{</span><span class="css-identifier">text-align</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">padding</span><span class="css-punctuation">:</span><span class="css-unit">6px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">ldv </span><span class="css-punctuation">{</span><span class="css-identifier">clear</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">float</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">width</span><span class="css-punctuation">:</span><span class="css-unit">150px</span><span class="css-punctuation">;</span><span class="css-punctuation">}</span>
<span class="css-select-op">.</span><span class="css-selector">ulb</span><span class="css-punctuation">{</span><span class="css-identifier">text-align</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">; </span><span class="css-identifier">margin</span><span class="css-punctuation">: </span><span class="css-unit">2px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-select-op">.</span><span class="css-selector">lbl</span><span class="css-punctuation">{</span><span class="css-identifier">clear</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">float</span><span class="css-punctuation">:</span><span class="css-value">left</span><span class="css-punctuation">;</span><span class="css-identifier">width</span><span class="css-punctuation">:</span><span class="css-unit">170px</span><span class="css-punctuation">;</span><span class="css-punctuation">}</span>
<span class="css-select-op">.</span><span class="css-selector">field_Y</span><span class="css-punctuation">{</span><span class="css-identifier">width</span><span class="css-punctuation">:</span><span class="css-unit">145px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-selector">#infa_y  
  </span><span class="css-punctuation">{</span><span class="css-identifier">display</span><span class="css-punctuation">: </span><span class="css-value">none</span><span class="css-punctuation">; </span><span class="css-identifier">font-size</span><span class="css-punctuation">: </span><span class="css-unit">9px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="css-selector">#infa_y </span><span class="css-selector">label </span><span class="css-punctuation">{</span><span class="css-identifier">cursor</span><span class="css-punctuation">: </span><span class="css-value">pointer</span><span class="css-punctuation">; </span><span class="css-identifier">font-size</span><span class="css-punctuation">: </span><span class="css-unit">9px</span><span class="css-punctuation">;</span><span class="css-punctuation">} </span>
<span class="xml-punctuation"></</span><span class="xml-tagname">style</span><span class="xml-punctuation">></span>


В нужное место вставляем скрипт Услуг с надписью "Услуги сайта":

Code
<span class="xml-punctuation"><</span><span class="xml-tagname">script </span><span class="xml-attname">type</span><span class="xml-punctuation">=</span><span class="xml-attribute">"text/javascript" </span><span class="xml-attname">src</span><span class="xml-punctuation">=</span><span class="xml-attribute">"http://ucodes.ru/js/yslygi.js"</span><span class="xml-punctuation">></span><span class="xml-punctuation"></</span><span class="xml-tagname">script</span><span class="xml-punctuation">></span><span class="xml-punctuation">
<</span><span class="xml-tagname">script </span><span class="xml-attname">type</span><span class="xml-punctuation">=</span><span class="xml-attribute">"text/javascript"</span><span class="xml-punctuation">></span><span class="whitespace"> </span><span class="js-variable">
_y</span><span class="js-punctuation">.</span><span class="js-property">href </span><span class="js-operator">= </span><span class="js-string">"$HOME_PAGE_LINK$"</span><span class="js-punctuation">;  
  </span><span class="whitespace"></span><span class="js-variable">_y</span><span class="js-punctuation">.</span><span class="js-property">idSender </span><span class="js-operator">= </span><span class="js-string">"$USER_ID$"</span><span class="js-punctuation">;  
</span><span class="whitespace"></span><span class="js-variable">_y</span><span class="js-punctuation">.</span><span class="js-property">date </span><span class="js-operator">= </span><span class="js-string">"$DAY$.$MONTH$.$YEAR$"</span><span class="js-punctuation">;
</span><span class="whitespace"></span><span class="js-variable">_y</span><span class="js-punctuation">.</span><span class="js-property">admin </span><span class="js-operator">= </span><span class="js-string">"ваш ник"</span><span class="js-punctuation">;</span><span class="xml-punctuation">
</</span><span class="xml-tagname">script</span><span class="xml-punctuation">></span><span class="xml-punctuation">
<</span><span class="xml-tagname">a </span><span class="xml-attname">href</span><span class="xml-punctuation">=</span><span class="xml-attribute">"javascript:_y.all();"</span><span class="xml-punctuation">></span><span class="xml-text">Услуги сайта</span><span class="xml-punctuation"></</span><span class="xml-tagname">a</span><span class="xml-punctuation">> </span>
 
 
 
 
 0 комментариев  699 просмотров  дата: 30.09.2020  автор: admin
 
 
Советую взглянуть:
  • Фокус при наведении на текстовые поля JQuery
  • Ajax окна как вконтакте
  • Чёрный мини-чат для uCoz с множеством функций
  • Простенький мини-профиль для ucoz
  •  
     
    Всего комментариев: 0
    Добавлять комментарии могут только зарегистрированные пользователи.
    Регистрация | Вход

    Меню сайта

    Мини чат

    Последние комментарии


    Опрос сайта

    Бесит ли вас реклама на сайтах?
    Всего ответов: 13

    Статистика

    Кол-во зареганных: 2906 (+0)
    Онлайн всего: 1
    Гостей: 1
    Пользователей: 0
    Сейчас на сайте:

    Нас посетили: