scorpio писал(а):Появился глюк
Если редакируешь сообщение с цитатой, то то, что редактируешь вместе со всем текстом и цитатой появляется ниже паели редактирования при нажатии любой из трех кнопок и так дублируется по многу раз, но если не обратить внимание при перезагрузки странице или возврату к сообщению все отредактировано один раз и на месте
## Features:
## - Creating a New PM:
## -> Userlist: When typing in the username field, a userlist will generate under the
## username field,
## -> Instant Preview: After clicking the preview button, a preview of your message
## will be generated.
##
## - Creating a New Post:
## -> Instant Preview: After clicking the preview button, a preview of your message
## will be generated.
## -> Instant Poll Add: After click the button to add a poll, it will be added to the
## list of polls.
##
## - View Forum:
## -> Delete Topic: You will be able to click on a image and get a confirm message
## on if you really want to delete the topic. After click "Yes", the topic will
## get delete forever.
## -> Locking Topic: You will be able to lock a topic by click on the topic image.
## -> Move Topic: You will be able to move a topic to a different forum for a click
## of an images.
##
## - View Group:
## -> Userlist: When typing in the username field, a userlist will generate under the
## username field,
##
## - View Search page:
## -> Userlist: When typing in the search author field, a userlist will generate under the
## author field,
##
## - View Topic:
## -> Delete Topic: You will be able to click on a image and get a confirm message
## on if you really want to delete the topic. After click "Yes", the topic will
## get delete forever.
## -> Locking Topic: You will be able to lock a topic by click on the topic image.
## -> Move Topic: You will be able to move a topic to a different forum for a click
## of an images.
## -> Delete Post: You will be able to delete a post without having to reload the page.
## -> Post Subject: You will be able to edit the subject of the post. If it is the first post
## then the topic title will change.
## -> Post Message: You will be able to edit the post message within the topic page.
## -> Watch Topic: You will be able to watch a topic without leaving the page.
## -> Post Menu: Double click on the message and your well get a menu for that post.
## The post menu contains the following
## => Delete Post: You will be able to delete a post without having to reload the page.
## => Inline Post Editing: You will be able to edit the post message within the topic page.
## => Inline Post Editing Preview: You will be able to preview your post before submiting it.
## => View Poster's IP Address: You will be abel to view the poster's ip address without
## reload the page.
##
## -> Poll Menu: When a topic has a poll on it, you will be able to double click on the
## poll and get a poll menu.
## => Poll Options: You will be able to change the poll options of the poll without haing
## to edit the topic.
## => Poll Title: You will be able to change the title of the poll without having to
## editing the topic.
## => View Results: You will be able to view the results of the poll with a click
## of a button.
##
## -> View Results: You will be able to view the results of the poll with a click of a button.
## -> Poll voting: You will be able to do a instant vote. Which means that you can vote and
## have the results show without having to reload the page.
##
## - Administration Panel
## -> AJAXed Configuration:
## => Active: You will be able to turn off any or all the features this mod has.
##
## -> Group Admin > Management > Group:
## => Userlist: When typing in the search author field, a userlist will generate under the
## author field,
##
## -> User Admin > Ban Control:
## => Userlist: When typing in the search author field, a userlist will generate under the
## author field,
##
## -> User Admin > Management:
## => Userlist: When typing in the search author field, a userlist will generate under the
## author field,
##
## -> User Admin > Permissions:
## => Userlist: When typing in the search author field, a userlist will generate under the
## author field,
##
## - Registration:
## -> Username Checker: You can see if a username is: Takin, Yours, Free.
## -> Password Checker: You will be able to see if your passwords match.
##
## - Editing Your Profile:
## -> Username Checker: You can see if a username is: Takin, Yours, Free.
## -> Password Checker: You will be able to see if your passwords match.
Lanior писал(а):2) Пускай автор AJAXed переименует свой файл в ajaxed.php
function ajax_query(args, callback) {
$.post('myajax.php?sid=' + sid, callback, args);
}В функции ajax_handle_post_forms(i, e)
в тело $('input[@name=post]').click(function(el) {...
надо добавить примерно следующее :
var p = $('#preview_box');
p.html?#40;''); 1. в viewtopic_body.tpl левее кнопки цитаты добавляете :
<img class="edit_img" src="{AJAX_QUICKEDIT_IMG}" title="{L_EDITPOST}" alt="{L_EDITPOST}" style="cursor:pointer" />
(это так для примера, а вообще вытащить надо через пхп-переменную естественно с нужными условиями доступа)
2. в ajax.js заменяете
if(ajax_qei && !(el.find('.ajax_qei').length)) $(ajax_qei).addClass('ajax_qei').appendTo( el.find('div.ajax_post').parent() ).css({float: 'right', cursor: 'pointer'}).click(ajax_handle_postedit);
на
el.find('img.edit_img').click(ajax_handle_postedit);1. в ajax_postedit.tpl добавляете кнопки ббкода в таком виде :
<input type="button" class="button" accesskey="b" name="edit_addbbcode0" value=" B " style="font-weight:bold; width:30px" onClick="edit_bbstyle(0)" />
и заменяете
<textarea id="message"
на
<textarea id="edit_message"
2. в quick_reply.js добавляете новую функцию edit_bbstyle(bbnumber), которая идентична функции bbstyle(bbnumber), но все
document.post
заменяются на
document.all
а все
message и addbbcode
заменются на
edit_message и edit_addbbcode
3. в ajax.js в функции ajax_show_postedit_form(cont, msg, pid)
все '#message'
заменяются на
'#edit_message'<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/rhQ-57bLeKQ"></param>
<embed src="http://www.youtube.com/v/rhQ-57bLeKQ" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object> в теле поста
и условие $(document).ready в ajax.js1. В bbcode.tpl
все что внутри
<!-- BEGIN youtube -->...<!-- END youtube -->
заменил на
<div class="youtube">http://www.youtube.com/v/{YOUTUBEID}</div>
2. В ajax.js добавил в конец функции ajax_handle_post(i, el) :
var ytb1 = el.find('div.youtube').html?#40;);
var ytb2 = el.find('div.youtube').html?#40;);
var ytb_string = String(ytb1);
if (ytb_string.length < 100)
{
ytb2 = '';
ytb2 = ytb2 + '<param name="movie" value="'+ytb1+'"></param>';
ytb2 = ytb2 + '<embed src="'+ytb1+'" type="application/x-shockwave-flash" width="425" height="350"></embed>';
ytb2 = ytb2 + '</object>';
ytb2 = ytb2 + '<br /><a href="' + ytb1 + '" target="_blank">Link</a><br />';
el.find('div.youtube').html?#40;ytb2);
}
roll писал(а):Картинка лоадинг, залезающая под объект со стрим-видео - это тоже оказывается баг, а не моя ошибка. Проверьте пожалуйста, если еще не исправили.
Вернуться в Бета-версии модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 2