Code: Select all
core.modify_format_display_text_after
That event is only triggered on preview. The simplest way to do it in 3.2 is by enabling the Autoimage plugin in
core.text_formatter_s9e_configure_after
. It will only apply to messages posted or edited while the extension is enabled....the named code works also on images posted before and in future...
Thanks for the translation. I can't get it to work, though. I think I've put it in the posting.php file fine, but in viewtopic.php, I can't findViolaF wrote: ↑Sat Jul 01, 2017 10:38 am English Instruction here..
http://bit.ly/2twJz4E
....(cant edit - sorry)
That's for 3.0 and it's a MOD not an extension. You shouldn't try to "help" people by posting MOD instructions that don't work for 3.2. It will do more harm than it solves.ViolaF wrote: ↑Sat Jul 01, 2017 10:38 am English Instruction here..
http://bit.ly/2twJz4E
....(cant edit - sorry)
You should revert your modifications.Brighto wrote: ↑Wed Jul 05, 2017 9:20 amThanks for the translation. I can't get it to work, though. I think I've put it in the posting.php file fine, but in viewtopic.php, I can't findViolaF wrote: ↑Sat Jul 01, 2017 10:38 am English Instruction here..
http://bit.ly/2twJz4E
....(cant edit - sorry)
// Parse the message and subject
$message = censor_text($row['post_text']);
Only
// Parse the message and subject
$parse_flags = ($row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES;
$message = generate_text_for_display($row['post_text'], $row['bbcode_uid'], $row['bbcode_bitfield'], $parse_flags, true);
I've tried just pasting it anyway, but it doesn't seem to work.
Anyone interested in doing this?
Code: Select all
$(function () {
$(".post").each(function () {
id = this.id;
$("a.colorbox", this).colorbox({
rel: id,
transition: "none",
photo: true,
maxWidth: "95%",
maxHeight: "95%",
scalePhotos: true
});
});
checkLink();
});
function checkLink() {
$("a.postlink, a.postlink-local, a.img_link").filter(function () {
return $(this).attr("href").match(/\.(gif|jpe?g|png|bmp)$/i)
}).colorbox({
photo: !0,
maxWidth: "800px",
maxHeight: "800px"
});
};
Can you explain how I go about adding this? I've read the guide and faq, but I'm none the wiser. Thanks.Theriddler1 wrote: ↑Mon Jul 17, 2017 7:58 am maybe this will work
it works with colorbox.Code: Select all
$(function () { $(".post").each(function () { id = this.id; $("a.colorbox", this).colorbox({ rel: id, transition: "none", photo: true, maxWidth: "95%", maxHeight: "95%", scalePhotos: true }); }); checkLink(); }); function checkLink() { $("a.postlink, a.postlink-local, a.img_link").filter(function () { return $(this).attr("href").match(/\.(gif|jpe?g|png|bmp)$/i) }).colorbox({ photo: !0, maxWidth: "800px", maxHeight: "800px" }); };