add a form on reply and quick reply
4 posters
Page 1 of 1
add a form on reply and quick reply
https://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic
thanks @Ange Tuteur for the tutorial.
can i request the codes for the Reply and Quick Reply?
My forum using phpbb3.
thanks @Ange Tuteur for the tutorial.
can i request the codes for the Reply and Quick Reply?
My forum using phpbb3.
Re: add a form on reply and quick reply
You can use this for each topic:
So change 23 with id of topic. That will work for reply, but not for quick reply.
- Code:
$(function() {
if (location.pathname == '/post' && location.search == '?t=23&mode=reply') {
$('#text_editor_textarea').val('[b]Field 1[/b]:\n[b]Field 2[/b]: Don\'t fill this field in\n[b]Field 3[/b]:');
}
});
So change 23 with id of topic. That will work for reply, but not for quick reply.
Re: add a form on reply and quick reply
@Ikerepc , i want for quick reply too. for the normal reply its working.
Re: add a form on reply and quick reply
- Code:
$(function() {
var g=location.pathname;
alert(g)
if(g.match(/\/t\d+/)){
$('#quick_reply iframe').contents().find('p').html('[b]Field 1[/b]:<br>[b]Field 2[/b]: Don\'t fill this field in<br>[b]Field 3[/b]:');
};
});
instead of useing \n for line breaks you will have to use <br>
Re: add a form on reply and quick reply
@_Twisted_Mods_ should i replace this "/\/t\d+/" part to the thread number which i want to add the quick reply form?
Re: add a form on reply and quick reply
remove
it wasn't suppose to be in the code i forgot to remove it
- Code:
alert(g)
it wasn't suppose to be in the code i forgot to remove it
Re: add a form on reply and quick reply
still not working, just put the code in js and check in all pages and theres no additional codes right?
Re: add a form on reply and quick reply
im not sure about quick reply but that reminded me by something i asked about before something like that
https://help.forumotion.com/t132021-about-the-code-of-add-a-form-creation-of-a-new-topic
i hope its help
https://help.forumotion.com/t132021-about-the-code-of-add-a-form-creation-of-a-new-topic
i hope its help
Michael_vx- Forumember
- Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt
Re: add a form on reply and quick reply
Michael_vx wrote:im not sure about quick reply but that reminded me by something i asked about before something like that
https://help.forumotion.com/t132021-about-the-code-of-add-a-form-creation-of-a-new-topic
i hope its help
@Michael_vx , i already saw that before making this topic.
i tried some things to make it works, like changing the variable name of the quick reply, but nothings happening, i thought that quick reply has different variable name. but idk, i'm not the maker anyway. xD
EDIT : NVM, i decided to not using this code, so mods can lock it, thanks for anyone who willing to help.
Similar topics
» quick response form in private messages, form
» When onclick button of "Post Reply" scroll down to the quick reply
» Quick Reply and Reply Not Showing Correctly
» Quick Reply and Reply alignment issues
» Quick reply box
» When onclick button of "Post Reply" scroll down to the quick reply
» Quick Reply and Reply Not Showing Correctly
» Quick Reply and Reply alignment issues
» Quick reply box
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum