
Стена для пользователей сайта,Просто супер. Всё рубит 100%
Установка:
2. Настроики модуля > форма добавления материала галочки все убираем!
3. Категории > создаём категорию под ID 1 и называем её: Стенки
4. Заходим по адресу: http://ВАШ САЙТ/dir, там ссылочка [ добавить материал ]
Жмёте на кнопку, появляеться аякс, и жмёте Enter много раз, надо добавить материалов, сколько у вас пользователей!
Не обижаемсо, но это традиция)))
Стр мат и ком к нему каталога сайтов всё убираем и ставим:
Code
<HTML><head><link type="text/css" rel="StyleSheet" href="$HOME_PAGE_LINK$_st/my.css" /></head><body><div align="center"><div align="left"><span style="font-size: 10pt;"><span style="font-size: 8pt;">Всего записей:</span></span><b>$COM_NUM_ENTRIES$</b><br><span style="font-size: 10pt;"><span style="font-size: 8pt;"></span></span></div><div align="right"><span style="font-size: 10pt;"><span style="font-size: 8pt;">$COM_PAGE_SELECTOR$</span></span><br><span style="font-size: 10pt;"></span></div><span style="font-size: 10pt;"><span style="font-size: 8pt;"><a style="text-decoration: none;" href="javascript:void(0)" onclick="$('#piar').toggle('slow');"><img src=$HOME_PAGE_LINK$megaokna/flex_arrow_open.gif>Написать</a></span></span></div><center><div id="piar" style="display: none;">
$COM_ADD_FORM$</div><br>$COM_BODY$<br>$POWERED_BY$<br></div></center></body></HTML>
$COM_ADD_FORM$</div><br>$COM_BODY$<br>$POWERED_BY$<br></div></center></body></HTML>
И в нужное вам место ставим:
Code
</div>
</div>
</div><div id="wall" class="flexOpen">
<div class="bOpen">
<div class="flexHeader clearFix" onclick="return collapseBox('wall', this, 0.5, 0.25, false)" onfocus="blur()">
<div><h2>Стена <span></span></h2></div>
<div class="flexEdit">
</div>
<img id="progr2" style="float: right; display: none; margin-top: 3px;" src="/images/upload.gif">
</div>
</div>
<div class="c">
<div class="fSub clearFix">
<h3>
<div style="float: left;">
Спам и тому подобное запрещено!
</div>
<div style="float: right;">
<span class="divide"></span><a href="javascript: if (ge('wRaquo').innerHTML == '»') {ge('wRaquo').innerHTML = '«'} else {ge('wRaquo').innerHTML = '»'}; shide('moreWall'); "><span id="wRaquo"></span></a>
</div>
</h3>
</div>
<div id="moreWall" style="display: none;"><a class="wallFunc" href="$HOME_PAGE_LINK$media/?t=draw;h=1">Граффити</a><a class="wallFunc" href="">Test</a><a class="wallFunc" href="">Test</a><a class="wallFunc" href="">Test</a></div>
<script type="text/javascript">
function show_quick_reply() {
quickReply('quickReply', 0.55, 0.40, 1); ge('reply_field').value = '';
}
function checkLinks() {if (isGroup && !linksAllowed && hasLinks(ge('reply_field').value)) {alert('Владелец стены запретил использование ссылок.'); return false; } else {return true;}}
var posting_on_wall = false;
function postIt() {
if (posting_on_wall) {
return;
}
var txt = ge('reply_field').value;
if (!trim(txt).length) {
ge('reply_field').focus();
return;
}
posting_on_wall = true;
page = page + 1;
hide('msg', 'dld');
show('progr2');
setTimeout('ge("progr2").src = "images/upload.gif"', 200);
var params = {act: 'get10', wall_hash: '99eb29301a46e4bb9f3674810727dacd', wpage: 100000, seed: txt, fpage: page, mid: ge('to_id').value, n: 3};
var callback = function(obj, text) {
posting_on_wall = false;
hide('r', 'progr2');
show('msg');
ge('fBox2').innerHTML = parseResponse(text);
}
var stop = function(obj, text) {
hide('progr2');
ge('reply_field').focus();
posting_on_wall = false;
}
var options = {onSuccess: callback, onFail: stop, onCaptchaShow: stop, onCaptchaHide: stop};
Ajax.postWithCaptcha('wall.php', params, options);
}
</script>
<div id="quickReply">
<div id="r" class="r" style="display: none;">
<div style="padding: 5px 12px;">
<form method="POST" action="wall.php" name="postMessage" id="postMessage">
<input id="to_id" name="to_id" value="434667414852" type="hidden">
<input id="act" name="act" value="sent" type="hidden">
<textarea onkeyup="utils.checkTextLength(4096, this.value, ge('textWarn'))" id="reply_field" name="message" style="width: 360px; height: 80px;" onkeypress="if (event.keyCode==10 || (event.ctrlKey && event.keyCode==13)) {if (checkLinks()) {postIt()}}"></textarea>
</form>
<div id="textWarn" style="margin: 5px 0px; color: rgb(102, 102, 102); display: none; width: 280px; float: left;"></div>
<div style="height: 25px;">
<div id="br" style="text-align: right;">
<ul class="nNav" style="float: right;">
<li style="margin-top: 3px; margin-right: 4px;">
<b class="nc"><b class="nc1"><b></b></b><b class="nc2"><b></b></b></b>
<span class="ncc"><a id="postIt" title="Ctrl+Enter" href="javascript: postIt()" onclick="return checkLinks()">Отправить</a></span>
<b class="nc"><b class="nc2"><b></b></b><b class="nc1"><b></b></b></b>
</li>
</ul>
<!--ul class="buttonRow" style="float:right;" class="clearFix">
<li style="width:6.4em;"><a style="width:5.4em;" title="Ctrl+Enter" onclick="return checkLinks();" id="postIt" href="javascript: postIt()">Отправить</a></li>
</ul-->
</div>
</div>
</div>
</div>
</div>
<div id="msg" style="display: none;">Сообщение отправлено.</div>
<div id="dld" style="display: none;">Сообщение удалено.</div>
<script for="playerWall" event="FSCommand" language="Jscript">
if(browser.msie){
if (arguments && arguments[1] && /^(flashDebug|stateChanged\(([^()]+)\);$)/.test(arguments[1])) {
eval(arguments[1]);
}
}
</script> <div class="flexBox clearFix" id="fBox2">
<div id="wPostContainer53625269">
<div id="wPostContent53625269">
<iframe hspace="0" vspace="0" allowtransparency="true" src="$HOME_PAGE_LINK$dir/1-1-0-$_USER_ID$" frameborder="0" height="800" scrolling="auto" width="100%"></iframe>
</div>
</div> <div id="wPostContainer53363014">
<div id="wPostContent53363014"></div>
</div></div>
</div>
</div>
</div>
</div><div id="wall" class="flexOpen">
<div class="bOpen">
<div class="flexHeader clearFix" onclick="return collapseBox('wall', this, 0.5, 0.25, false)" onfocus="blur()">
<div><h2>Стена <span></span></h2></div>
<div class="flexEdit">
</div>
<img id="progr2" style="float: right; display: none; margin-top: 3px;" src="/images/upload.gif">
</div>
</div>
<div class="c">
<div class="fSub clearFix">
<h3>
<div style="float: left;">
Спам и тому подобное запрещено!
</div>
<div style="float: right;">
<span class="divide"></span><a href="javascript: if (ge('wRaquo').innerHTML == '»') {ge('wRaquo').innerHTML = '«'} else {ge('wRaquo').innerHTML = '»'}; shide('moreWall'); "><span id="wRaquo"></span></a>
</div>
</h3>
</div>
<div id="moreWall" style="display: none;"><a class="wallFunc" href="$HOME_PAGE_LINK$media/?t=draw;h=1">Граффити</a><a class="wallFunc" href="">Test</a><a class="wallFunc" href="">Test</a><a class="wallFunc" href="">Test</a></div>
<script type="text/javascript">
function show_quick_reply() {
quickReply('quickReply', 0.55, 0.40, 1); ge('reply_field').value = '';
}
function checkLinks() {if (isGroup && !linksAllowed && hasLinks(ge('reply_field').value)) {alert('Владелец стены запретил использование ссылок.'); return false; } else {return true;}}
var posting_on_wall = false;
function postIt() {
if (posting_on_wall) {
return;
}
var txt = ge('reply_field').value;
if (!trim(txt).length) {
ge('reply_field').focus();
return;
}
posting_on_wall = true;
page = page + 1;
hide('msg', 'dld');
show('progr2');
setTimeout('ge("progr2").src = "images/upload.gif"', 200);
var params = {act: 'get10', wall_hash: '99eb29301a46e4bb9f3674810727dacd', wpage: 100000, seed: txt, fpage: page, mid: ge('to_id').value, n: 3};
var callback = function(obj, text) {
posting_on_wall = false;
hide('r', 'progr2');
show('msg');
ge('fBox2').innerHTML = parseResponse(text);
}
var stop = function(obj, text) {
hide('progr2');
ge('reply_field').focus();
posting_on_wall = false;
}
var options = {onSuccess: callback, onFail: stop, onCaptchaShow: stop, onCaptchaHide: stop};
Ajax.postWithCaptcha('wall.php', params, options);
}
</script>
<div id="quickReply">
<div id="r" class="r" style="display: none;">
<div style="padding: 5px 12px;">
<form method="POST" action="wall.php" name="postMessage" id="postMessage">
<input id="to_id" name="to_id" value="434667414852" type="hidden">
<input id="act" name="act" value="sent" type="hidden">
<textarea onkeyup="utils.checkTextLength(4096, this.value, ge('textWarn'))" id="reply_field" name="message" style="width: 360px; height: 80px;" onkeypress="if (event.keyCode==10 || (event.ctrlKey && event.keyCode==13)) {if (checkLinks()) {postIt()}}"></textarea>
</form>
<div id="textWarn" style="margin: 5px 0px; color: rgb(102, 102, 102); display: none; width: 280px; float: left;"></div>
<div style="height: 25px;">
<div id="br" style="text-align: right;">
<ul class="nNav" style="float: right;">
<li style="margin-top: 3px; margin-right: 4px;">
<b class="nc"><b class="nc1"><b></b></b><b class="nc2"><b></b></b></b>
<span class="ncc"><a id="postIt" title="Ctrl+Enter" href="javascript: postIt()" onclick="return checkLinks()">Отправить</a></span>
<b class="nc"><b class="nc2"><b></b></b><b class="nc1"><b></b></b></b>
</li>
</ul>
<!--ul class="buttonRow" style="float:right;" class="clearFix">
<li style="width:6.4em;"><a style="width:5.4em;" title="Ctrl+Enter" onclick="return checkLinks();" id="postIt" href="javascript: postIt()">Отправить</a></li>
</ul-->
</div>
</div>
</div>
</div>
</div>
<div id="msg" style="display: none;">Сообщение отправлено.</div>
<div id="dld" style="display: none;">Сообщение удалено.</div>
<script for="playerWall" event="FSCommand" language="Jscript">
if(browser.msie){
if (arguments && arguments[1] && /^(flashDebug|stateChanged\(([^()]+)\);$)/.test(arguments[1])) {
eval(arguments[1]);
}
}
</script> <div class="flexBox clearFix" id="fBox2">
<div id="wPostContainer53625269">
<div id="wPostContent53625269">
<iframe hspace="0" vspace="0" allowtransparency="true" src="$HOME_PAGE_LINK$dir/1-1-0-$_USER_ID$" frameborder="0" height="800" scrolling="auto" width="100%"></iframe>
</div>
</div> <div id="wPostContainer53363014">
<div id="wPostContent53363014"></div>
</div></div>
</div>
</div>
Готово!
GoodJob[Материал]