The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

add a form on reply and quick reply

View previous topic View next topic Go down

add a form on reply and quick reply

Post by gunsmaker on February 24th 2015, 2:47 pm

http://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.

gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Re: add a form on reply and quick reply

Post by Ikerepc on February 24th 2015, 4:49 pm

You can use this for each topic:

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.

Ikerepc
Active Poster

Male Posts : 1114
Reputation : 152
Language : Croatian, HTML, CSS, jQuery, JavaScript, PHP, SQL, Bascom, Python, C, FBD & LAD for PLC and more... Little English :D
Location : Around electronics and progmamming ;)

http://help.forumotion.com

Back to top Go down

Re: add a form on reply and quick reply

Post by gunsmaker on February 25th 2015, 4:29 am

@Ikerepc , i want for quick reply too. for the normal reply its working.

gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Re: add a form on reply and quick reply

Post by _Twisted_Mods_ on February 25th 2015, 4:42 am

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>

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: add a form on reply and quick reply

Post by gunsmaker on February 25th 2015, 10:53 am

@_Twisted_Mods_ should i replace this "/\/t\d+/" part to the thread number which i want to add the quick reply form?

gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Re: add a form on reply and quick reply

Post by _Twisted_Mods_ on February 25th 2015, 11:10 am

sorry replace
Code:
\d+

with the topic id#

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: add a form on reply and quick reply

Post by gunsmaker on February 25th 2015, 1:30 pm

didnt work.
nothing appears in the quick reply.

gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Re: add a form on reply and quick reply

Post by _Twisted_Mods_ on February 25th 2015, 1:35 pm

remove
Code:
alert(g)

it wasn't suppose to be in the code i forgot to remove it

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: add a form on reply and quick reply

Post by gunsmaker on February 25th 2015, 2:38 pm

still not working, just put the code in js and check in all pages and theres no additional codes right?

gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

Re: add a form on reply and quick reply

Post by Michael_vx on February 27th 2015, 2:18 am

im not sure about quick reply but that reminded me by something i asked about before something like that
http://help.forumotion.com/t132021-about-the-code-of-add-a-form-creation-of-a-new-topic
i hope its help

Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Re: add a form on reply and quick reply

Post by gunsmaker on February 27th 2015, 5:01 am

@Michael_vx wrote:im not sure about quick reply but that reminded me by something i asked about before something like that
http://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.

gunsmaker
Forumember

Posts : 34
Reputation : 1
Language : English and Indonesian

http://tcga.forumn.org

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum