» » » Стикеры с магазином для Vii Engine

Чтоб скачать Стикеры с магазином для Vii Engine на сайте IpXa.Ru БЕСПЛАТНО!!!
Вам нужно Зарегистрироваться!

Стикеры с магазином для Vii Engine

14
апр
2016


Стикеры с магазином для Vii Engine
Стикеры с магазином для Vii Engine


Вырезал модуль стикеров для Vii Engine

Для админки:

Скопировать stikers.php в \system\inc

Скопировать stikers.png в \system\inc\images

Открыть \system\inc\main.php после:

echoblock('Подарки', 'Управление подарками на сайте, добавление, редактирование и удаление', 'gifts', 'gifts');


Вставить:

echoblock('Стикеры', 'Управление стикерами на сайте, добавление, редактирование и удаление', 'stikers', 'stikers');


Открыть \system\inc\mod.php после:

switch($mod){


Вставить:

//Stikers
	case "stikers":
		include ADMIN_DIR.'/stikers.php';
	break;


Импортировать (PhpMyAdmin):

vii_stikers.sql
vii_stikers_category.sql
vii_stikers_list.sql
------------------------------------------------
Теперь сам модуль:

Открыть \Default\im\form.tpl после:

onkeyup="im.typograf()"
></textarea>


Вставить:

<div style="margin-top: 7px;position: absolute;float: right;margin-left: 485px;"><div class="fl_l" id="wall_attach_link" onclick="stikers.boxbuy()" style="margin-left:5px"><img src="{theme}/images/icons/imsmil.png"></div></div>


Скопировать imsmil.png в \templates\Default\images\icons

Скопировать stikers.php в \system\modules

Открыть mod.php в \system после:

switch($go){


Вставить:

//Stikers
	case "stikers":
		include ENGINE_DIR.'/modules/stikers.php';
	break;


Скопировать папку stikers в \templates\Default

Открыть в \templates\Default\js\profile.js после:

attach_addsmile: function(){
		wall.attach_menu('close', 'wall_attach', 'wall_attach_menu');
		Box.Show('attach_smile', 395, lang_wall_atttach_addsmile, lang_wall_attach_smiles, lang_box_canсel, '', '', 0, 1, 1, 1);
	},


Вставить:

attach_addstiker: function(){
		viiBox.clos('boxbuy', 1)
		wall.attach_menu('close', 'wall_attach', 'wall_attach_menu');
		Box.Show('attach_stiker', 290, lang_wall_atttach_addstiker, lang_wall_attach_stiker, lang_box_canсel, '', '', 0, 1, 1, 1);
	},
	attach_addstiker_cat: function(){
		viiBox.clos('boxbuy', 1)
		wall.attach_menu('close', 'wall_attach', 'wall_attach_menu');
		Box.Show('attach_stiker_cat', 290, lang_wall_atttach_addstiker, lang_wall_attach_stiker_cat, lang_box_canсel, '', '', 0, 1, 1, 1);
	},


Тут же после:

//GIFTS
var gifts = {
	box: function(user_id, c, j){
		if(!j) j = 0;
		if(!j) viiBox.start();
		$.post('/index.php?go=gifts&act=view', {user_id: user_id, section: j}, function(d){
			if(!j) viiBox.win('gifts_box', d);
			else {
				var type = $('#type').val();
				$('#tb_box_'+type).hide();
				$('#tb_box_'+j).show().html('<div class="gifts_section clear_fix" id="gifts_box">'+d+'</div>');
				$('#selection_'+type).removeClass('summary_tab_sel').addClass('summary_tab');
				$('#selection_'+j).addClass('summary_tab_sel').removeClass('summary_tab');
				$('#type').val(j);
			}
		})
	},
	showgift: function(id){
		$('#g'+id).show();
	},
	showhide: function(id){
		$('#g'+id).hide();
	},
	select: function(gid, fid){
		viiBox.clos('gifts_box', 1);
		Box.Close(0, 1);
		viiBox.start();
		viiBox.win('show_box_send', '<div class="miniature_box"><div class="miniature_pos" style="width: 450px;padding:0px;"><a class="fl_r tb_close" onclick="viiBox.clos(\'show_box_send\', 1)" style="cursor: pointer;">Закрыть</a><div class="tb_title" id="tb_title">Отправка подарка</div><div id="tb_box_1"><div class="box_conetnt" id="box_content_send_gift378" style="height: 438px;border-bottom: 0px solid #D7D7D7;"><center style="margin-bottom: 20px;"><img src="/uploads/gifts/'+gid+'.jpg" style="margin-top:30px"></center><b style="color: #36638E;margin: 0px 40px;">Ваше сообщение</b><textarea id="msgfgift'+gid+'" class="inpst" style="width: 350px;height: 50px;margin: 10px 40px;"></textarea><div class="html_checkbox" id="private_gifts'+gid+'" onclick="myhtml.checkbox(this.id);" style="margin: 0px 40px;color: #777;">Показывать моё имя только получателю</div></div><div class="box_controls_wrap"><div class="box_controls"><table cellspacing="0" cellpadding="0" class="fl_r"><tbody><tr><td><div class="button_blue"><button onclick="gifts.send('+gid+', '+fid+')" id="box_butt_create">Отправить</button></div></td><td><div class="button_gray"><button onclick="viiBox.clos(\'show_box_send\', 1)">Отмена</button></div></td></tr></tbody></table></div></div></div></div></div>');
	},
	send: function(gfid, fid){
		viiBox.clos('show_box_send', 1);
		var privacy = $('#private_gifts'+gfid).val();
		var msgfgift = $('#msgfgift'+gfid).val();
		$('#box_loading').show().css('margin-top', '-5px');
		$.post('/index.php?go=gifts&act=send', {for_user_id: fid, gift: gfid, privacy: privacy, msg: msgfgift}, function(d){
			if(d == 1){
				addAllErr(lang_gifts_tnoubm, 3000);
				Box.Close();
			} else {
				Box.Close();
				Box.Info('giftok', lang_gifts_oktitle, lang_gifts_oktext, 250, 2000);
			}
		});
	},
	delet: function(gid){
		$('#gift_'+gid).html('<div class="color777" style="margin-bottom:5px">Подарок удалён.</div>');
		updateNum('#num');
		$.post('/index.php?go=gifts&act=del', {gid: gid});
	},
	showGiftPrice: function(j,text){
		$('#gift_'+j).append('<div id="gift_price"><span id="gift_price_str">'+text+'</span><b class="rbottom"><b class="r"></b></b></div>');
	},
	hideGiftPrice: function(){
		$('#gift_price').detach();
	},
	del: function(gid){
		$.post('/index.php?go=gifts&act=delet', {gid: gid}, function(){
			$('.left_gift').remove();
			$('.box_close').remove();
			myhtml.title_close(gid);
		});
	},
	viewer: function(uid){
		$('.js_titleRemove').remove();
		viiBox.start();
			$.post('/index.php?go=gifts&act=view_ajax', {uid: uid}, function(d){
		viiBox.win('gift', d);
		});
	}
}


Вставить:

//Stikers
var stikers = {
	buycat_1: function() {
		$.post('/index.php?go=stikers&act=add_category_1_buy', function(data){
			if(data == 'now_cat_stik_1') {
				Box.Info('err', 'Ошибка', 'У Вас уже есть набор "Персик"!', 250, 1500);
			} else if(data == 'n_money') {
				Box.Info('err', 'Ошибка', 'У Вас недостаточно голосов!', 250, 1500);
			} else {
				$('#cat_stik_1ok').addClass('button_div_gray');
				Box.Info('err', 'Успешно', 'Вы купили набор "Персик"!', 250, 1500);
			}
		});
	},
	boxbuy: function(user_id, c, j){
		if(!j) j = 0;
		if(!j) viiBox.start();
		$.post('/index.php?go=stikers&act=boxbuy', {user_id: user_id, section: j}, function(d){
			if(!j) viiBox.win('boxbuy', d);
			else {
				var type = $('#type').val();
				$('#tb_box_'+type).hide();
				$('#tb_box_'+j).show().html('<div class="gifts_section clear_fix" id="boxbuy">'+d+'</div>');
				$('#type').val(j);
			}
		})
	},
	open_free_cat1: function(user_id, c, j){
		viiBox.clos('boxbuy', 1);
		if(!j) j = 0;		
		$.post('/index.php?go=stikers&act=open_free_cat1', {user_id: user_id, section: j}, function(d){
			if(!j) viiBox.win('open_free_cat1', d);
			else {
				var type = $('#type').val();
				$('#tb_box_'+type).hide();
				$('#tb_box_'+j).show().html('<div class="gifts_section clear_fix" id="open_free_cat1">'+d+'</div>');
				$('#selection_'+type).removeClass('summary_tab_sel').addClass('summary_tab');
				$('#selection_'+j).addClass('summary_tab_sel').removeClass('summary_tab');
				$('#type').val(j);
			}
		})
	},
	showstikers: function(id){
		$('#s'+id).show();
	},
	showhide: function(id){
		$('#s'+id).hide();
	},
	send: function(sfid, fid){
		viiBox.clos('open_free_cat1', 1);
		var privacy = $('#private_stikers'+sfid).val();
		var msgfstiker = $('#msgfstiker'+sfid).val();
		$('#box_loading').show().css('margin-top', '-5px');
		$.post('/index.php?go=stikers&act=send', {for_user_id: fid, stiker: sfid, privacy: privacy, msg: msgfstiker}, function(d){
			if(d == 1){
				addAllErr(lang_stikers_tnoubm, 3000);
				Box.Close();
			} else {
				Box.Close();
				Box.Info('stikerok', lang_stikers_oktitle, lang_stikers_oktext, 250, 2000);
			}
		});
	},
	showStikersPrice: function(j,text){
		$('#stikers_'+j).append('<div id="gift_price"><span id="stikers_price_str">'+text+'</span><b class="rbottom"><b class="r"></b></b></div>');
	},
	hideStikersPrice: function(){
		$('#stikers_price').detach();
	}
}


После:

//Если вставляем смайлик
		if(type == 'smile'){
			Box.Close('attach_smile', 1);
			smile = data.split('smiles/');
			res_attach_id = 'smile_'+attach_id;
			$('#attach_files').append('<span id="attach_file_'+res_attach_id+'" class="attach_file"><img src="'+data+'" class="wall_attach_smile fl_l" onclick="wall.attach_delete(\''+res_attach_id+'\', \'smile|'+smile[1]+'||\')" onmouseover="myhtml.title(\''+res_attach_id+'\', \''+lang_wall_no_atttach+'\', \'wall_smile_\')" onmouseout="myhtml.title_close(\''+res_attach_id+'\')" id="wall_smile_'+res_attach_id+'" style="margin-top:0px" /></span>');
			$('#vaLattach_files').val($('#vaLattach_files').val()+'smile|'+smile[1]+'||');
		}


Вставить:

//Если вставляем стикер
		if(type == 'stiker'){
			Box.Close('attach_stiker', 1);
			stiker = data.split('stiker/');
			res_attach_id = 'smile_'+attach_id;
			$('#attach_files').append('<span id="attach_file_'+res_attach_id+'" class="attach_file"><img src="'+data+'" class="wall_attach_stiker fl_l" onclick="wall.attach_delete(\''+res_attach_id+'\', \'stiker|'+stiker[1]+'||\')" onmouseover="myhtml.title(\''+res_attach_id+'\', \''+lang_wall_no_atttach+'\', \'wall_stiker_\')" onmouseout="myhtml.title_close(\''+res_attach_id+'\')" id="wall_stiker_'+res_attach_id+'" style="margin-top:0px" /></span>');
			$('#vaLattach_files').val($('#vaLattach_files').val()+'stiker|'+stiker[1]+'||');
		}
		
		//Если вставляем стикер
		if(type == 'stiker_cat'){
			Box.Close('attach_stiker_cat', 1);
			stiker_cat = data.split('stiker_cat/');
			res_attach_id = 'smile_'+attach_id;
			$('#attach_files').append('<span id="attach_file_'+res_attach_id+'" class="attach_file"><img src="'+data+'" class="wall_attach_stiker fl_l" onclick="wall.attach_delete(\''+res_attach_id+'\', \'stiker_cat|'+stiker_cat[1]+'||\')" onmouseover="myhtml.title(\''+res_attach_id+'\', \''+lang_wall_no_atttach+'\', \'wall_stiker_cat_\')" onmouseout="myhtml.title_close(\''+res_attach_id+'\')" id="wall_stiker_cat_'+res_attach_id+'" style="margin-top:0px" /></span>');
			$('#vaLattach_files').val($('#vaLattach_files').val()+'stiker_cat|'+stiker_cat[1]+'||');
		}


В \templates\Default\js\main.js ПЕРЕД:

//LANG
var trsn = {
  box: function(){
    $('.js_titleRemove').remove();
    viiBox.start();
	$.post('/index.php?go=lang', function(d){
	  viiBox.win('vii_lang_box', d);
	});
  }
}


Вставить:

//LANG
template_dir					= '/templates/Default';
uploads_dir						= '/uploads';
lang_stikers_tnoubm				= 'У Вас недостаточно голосов для отправки этого стикера.';
lang_stikers_oktitle			= 'Стикер отправлен';
lang_stikers_oktext				= 'Ваш стикер был успешно отправлен.';
lang_wall_atttach_addstiker		= 'Выберите стикер для отправки';
lang_wall_attach_stiker			= '<img src="uploads/stiker/1.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/2.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/3.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/4.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/5.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/6.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/7.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/8.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/9.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/10.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/11.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/12.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/13.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/14.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/15.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/16.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/17.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/18.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/19.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/20.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/21.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/22.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/24.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/25.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/25.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/26.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/27.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/28.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/29.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/30.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/31.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/><img src="uploads/stiker/32.png" class="wall_attach_stiker" onclick="wall.attach_insert(\'stiker\', this.src)"/> ';
lang_wall_attach_stiker_cat		= '<img src="uploads/stiker_cat/1.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/2.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/3.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/4.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/5.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/6.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/7.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/8.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/9.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/10.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/11.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/12.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/13.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/14.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/15.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/16.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/17.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/18.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/19.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/20.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/21.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/22.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/24.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/25.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/25.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/26.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/27.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/28.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/29.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/30.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/31.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/32.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/33.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/34.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/35.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/36.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/37.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/38.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/39.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/40.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/41.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/42.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/43.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/44.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/45.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/46.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/47.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/><img src="uploads/stiker_cat/48.png" class="wall_attach_stiker_cat" onclick="wall.attach_insert(\'stiker_cat\', this.src)"/> ';


В \templates\Default\style\style.css добавить:

/* GIFTS BOX */
.gifts_section {position: relative;margin: -3px 0px 0px;overflow: auto;padding: 10px 5px 23px 7px;}
.gift_cell {height: 96px;width: 96px;padding: 4px;position: relative;cursor: pointer;}
.gift_cell .gift_img {-webkit-transition: opacity .2s;-moz-transition: opacity .2s;-o-transition: opacity .2s;transition: opacity .2s;}
.gift_cell:hover .gift_img {opacity: .8;}
#gift_price {background: #D0D8E0;background: rgba(208, 216, 224, 0.8);border-radius: 3px;padding: 1px 4px 2px;margin: 0 12px;color: #45688E;font-size: 0.8em;font-weight: bold;position: absolute;left: 0;right: 0;bottom: 0;text-align: center;z-index: 99;}
#gift_price_str {display: block;margin: 2px 0px;}
.box_controls_wrap {border: 1px solid #858585;border-top: 0px;border-bottom: 1px solid #D7D7D7;}
.box_controls {padding: 8px 5px 7px;height: 30px;background-color: #F2F2F2;border-top: 1px solid #DAE1E8;}
.box_conetnt1{background:#fff;border-top:0px;border: medium none currentColor;max-height:100%}
 
/* NEW BOX */
.tb_close {padding: 17px 20px 18px;color: #fff;-webkit-transition: color 100ms linear;-moz-transition: color 100ms linear;-o-transition: color 100ms linear;transition: color 100ms linear;}
.tb_title {-font-size: 1.09em;color: white;background: #597ba5;font-weight: bold;padding: 17px 20px 18px;}
.tb_tabs {background: #EFF1F3;padding: 2px 15px 3px;font-size:11px}
.fans_search_link {float: right;padding-top: 11px;right: 15px;}
div.tb_prg {display: block;margin: 12px 5px 0px;visibility: hidden;}
.progress, .progress_inv, .progress_inv_img {display: none;width: 32px;height: 13px;background: url(../images/upload.gif) no-repeat 50% 50%;}
.summary_tab, .summary_tab_sel {font-weight: bold;padding: 8px 5px 7px;}
.tb_tabs .summary_tab2, .tb_tabs .summary_tab2:hover {padding: 4px 6px 5px;}
.summary_tab2 {-webkit-border-radius: 2px;-khtml-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;padding: 3px 8px 4px;display: block;}
.summary_tab3 {max-width: 230px;height: 13px;overflow: hidden;font-weight: bold;color: #44678d;padding: 0;-o-text-overflow: ellipsis;text-overflow: ellipsis;line-height: 120%;}
.fans_count {padding-left: 4px;color: #b5c8c8;}
.summary_tab_sel .summary_tab2, .summary_tab_sel .summary_tab2:hover {padding: 3px 8px 4px;background: #597da3;}
.summary_tab2:hover {background: #e2e8ee;text-decoration: none;}
.summary_tab_sel .summary_tab3 {color: white;}
.fans_rows {padding: 16px 10px 1px;}
.fans_fan_row {width: 120px;overflow: hidden;height: 133px;}
.inl_bl {display: -moz-inline-stack;display: inline-block;_overflow: hidden;vertical-align: top;zoom: 1;}
.fans_fanph_wrap, .fans_idolph_wrap {position: relative;width: 100px;height: 100px;margin: 0px auto;overflow: hidden;}
.fans_fan_name {padding-top: 4px;line-height: 120%;text-align: center;font-size:11px;}
.fans_fan_ph {height: 100px;display: block;}
.fans_fan_img {vertical-align: top;width: 100px;}
.tb_fixed {position: fixed;top: 0px;z-index: 100;}
.tb_fixed .tb_tabs_sh {display: block;}
.tb_tabs_sh {position: absolute;width: 100%;height: 3px;background: #555;opacity: 0.12;filter: alpha(opacity=12);display: none;margin-top: -1px;}
.clear_fix::after {content: '.';display: block;height: 0;clear: both;visibility: hidden;}
.wall_attach_stiker{cursor:pointer;width:64px;height:64px}
.wall_attach_stiker_cat{cursor:pointer;width:64px;height:64px}


Изменить стиль .box_bg{margin:auto;width:300px;margin-top:180px} на:

.box_bg{margin:auto;width:300px;margin-top:60px}


В базу данных в таблицу vii_users добавить поле:

user_cat_stik_1 (INT) 1

Скопировать im.css в \templates\Default\style

Подключить в \templates\Default\main.tpl после:

<link media="screen" href="{theme}/style/style.css" type="text/css" rel="stylesheet" />


Вставить:

<link media="screen" href="{theme}/style/im.css" type="text/css" rel="stylesheet" />


Скопировать из папки Стикеры фото папку stickers в \templates\Default\images

Скопировать все папки из папки «в uploads» в uploads

В .htaccess в корне сайта после:

# Настройки
	RewriteRule ^settings(/?)+$ index.php?go=settings [L]
	RewriteRule ^settings/privacy(/?)+$ index.php?go=settings&act=privacy [L]
	RewriteRule ^settings/blacklist(/?)+$ index.php?go=settings&act=blacklist [L]


Добавить:

RewriteRule ^settings&act=stikers(/?)+$ index.php?go=settings&act=stikers [L]


Открыть \system\modules\im.php после:

//Смайлик
} elseif($attach_type[0] == 'smile' AND file_exists(ROOT_DIR."/uploads/smiles/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/smiles/'.$attach_type[1].'\" style="margin-right:5px" />';


Вставить:

//Стикер
} elseif($attach_type[0] == 'stiker' AND file_exists(ROOT_DIR."/uploads/stiker/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/stiker/'.$attach_type[1].'\" style="margin-right:5px" />';
									
//Стикер Cat
} elseif($attach_type[0] == 'stiker_cat' AND file_exists(ROOT_DIR."/uploads/stiker_cat/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/stiker_cat/'.$attach_type[1].'\" style="margin-right:5px" />';


После:

//Смайлик
} elseif($attach_type[0] == 'smile' AND file_exists(ROOT_DIR."/uploads/smiles/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/smiles/'.$attach_type[1].'\" style="margin-right:5px" />';
								
$resLinkTitle = '';


Вставить:

//Стикер
} elseif($attach_type[0] == 'stiker' AND file_exists(ROOT_DIR."/uploads/stiker/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/stiker/'.$attach_type[1].'\" style="margin-right:5px" />';
								
$resLinkTitle = '';
								
//Стикер Cat
} elseif($attach_type[0] == 'stiker_cat' AND file_exists(ROOT_DIR."/uploads/stiker_cat/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/stiker_cat/'.$attach_type[1].'\" style="margin-right:5px" />';
								
$resLinkTitle = '';


После:

//Смайлик
} elseif($attach_type[0] == 'smile' AND file_exists(ROOT_DIR."/uploads/smiles/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/smiles/'.$attach_type[1].'\" style="margin-right:5px" />';
								
$resLinkTitle = '';


Вставить:

//Стикер
} elseif($attach_type[0] == 'stiker' AND file_exists(ROOT_DIR."/uploads/stiker/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/stiker/'.$attach_type[1].'\" style="margin-right:5px" />';
								
$resLinkTitle = '';
								
//Стикер Cat
} elseif($attach_type[0] == 'stiker_cat' AND file_exists(ROOT_DIR."/uploads/stiker_cat/{$attach_type[1]}")){
$attach_result .= '<img src=\"/uploads/stiker_cat/'.$attach_type[1].'\" style="margin-right:5px" />';
								
$resLinkTitle = '';


Установка закончена!

У вас нет доступа для скачивания файлов с нашего сервера, пожалуйста Войдите или Зарегистрируйтесь на сайте.скачать dle 10.6фильмы бесплатно



Уважаемый Пользователь!


  • Автор: admin
  • Комментарии: 0
  • Просмотры: 1 764
 Похожие новости
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.