![]() |
![]() ![]() |
Thêm 1 shoutbox lịch sử, ô 1 dán code này
<style>.quocte{background-color:#ffe;padding:0px;border:1px solid #ff7;color:#04a}</style><div class="shoutbox">
{% if loged %} <table width="100%"><tr valign="top"><td width="8%">{{ api.u.get(api.user_id).profilephoto(3, true)}} </td><td width="52%"><form action="{{form_url}}" method="post"> <textarea rows="2" cols="12" name="text" style="width:auto">{{api.r.get('text')|raw}}</textarea></td><td width="40%"><input type="submit" value="Đăng (10lv)" style="background:#28aa00;color:#fff;border-style:solid;border-width:1px;border-color:#990099;" /></form></td></tr></table></div><div style="background-color:#eee;padding:2px;border-color:#9f9f9f;margin:1px;text-align:center;"><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td width="25%"><a href="/main.php?f=2750491">Admin</a></td><td width="25%"><a href="main.php?f=2272122">BBcode</a></td><td width="25%"><a href="chat.php?chan=1115739&id=smiles">Smiles</a></td><td width="25%"><a href="main.php?">Refresh</a></td></tr></tbody></table></div>{% else %}
Bạn phải đăng nhập để đăng tin nhắn
{% endif %}<div class="shoutbox_message">{{message_list}}</div>{{paging_def}}<script language="javascript">
var msg=document.getElementsByName("wtg_shout_msg");
for(var i=0;i<msg.length;i++){
var oldtext=document.getElementsByName("wtg_shout_msg")[i].innerHTML;
var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig, "$1$2");
newtext=newtext.replace(/\[a=(.+?)\](.+?)\[\/a\]/ig, "<a href='"+unescape('$1')+"'>$2</a>");
newtext=newtext.replace(/\[scimg\](.+?)\[\/scimg\]/ig, "<img src='"+unescape('$1')+"'/>");
document.getElementsByName("wtg_shout_msg")[i].innerHTML = newtext;
};
</script>
{% if loged %} <table width="100%"><tr valign="top"><td width="8%">{{ api.u.get(api.user_id).profilephoto(3, true)}} </td><td width="52%"><form action="{{form_url}}" method="post"> <textarea rows="2" cols="12" name="text" style="width:auto">{{api.r.get('text')|raw}}</textarea></td><td width="40%"><input type="submit" value="Đăng (10lv)" style="background:#28aa00;color:#fff;border-style:solid;border-width:1px;border-color:#990099;" /></form></td></tr></table></div><div style="background-color:#eee;padding:2px;border-color:#9f9f9f;margin:1px;text-align:center;"><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td width="25%"><a href="/main.php?f=2750491">Admin</a></td><td width="25%"><a href="main.php?f=2272122">BBcode</a></td><td width="25%"><a href="chat.php?chan=1115739&id=smiles">Smiles</a></td><td width="25%"><a href="main.php?">Refresh</a></td></tr></tbody></table></div>{% else %}
Bạn phải đăng nhập để đăng tin nhắn
{% endif %}<div class="shoutbox_message">{{message_list}}</div>{{paging_def}}<script language="javascript">
var msg=document.getElementsByName("wtg_shout_msg");
for(var i=0;i<msg.length;i++){
var oldtext=document.getElementsByName("wtg_shout_msg")[i].innerHTML;
var newtext=oldtext.replace(/(^|[\n ])([\w]+?:\/\/[^ ,\"\n\r\t<]*)/ig, "$1$2");
newtext=newtext.replace(/\[a=(.+?)\](.+?)\[\/a\]/ig, "<a href='"+unescape('$1')+"'>$2</a>");
newtext=newtext.replace(/\[scimg\](.+?)\[\/scimg\]/ig, "<img src='"+unescape('$1')+"'/>");
document.getElementsByName("wtg_shout_msg")[i].innerHTML = newtext;
};
</script>