Set default message in a textarea
Using this resource you will be able to have a default content in a textarea, due to the section you are posting in (only in one, two, etc)
You have to reply to this topic to see the code (avoid Flood)
General InformationsCode creator: Ange Tuteur
Code tested on: PhpBB3 - Google Chrome (works even on others)
Checked by: Ange Tuteur (ESP)
- In the condition of the if statement is the following
document.location.href.indexOf('/post?f=FORUMID&mode=newtopic') > -1)
You must change f=FORUMID to the ID of the forum you want this to work in.
For example, if I wanted to add a form when users create a topic in this forum (http://www.domainname.com/f2-test) I have to use f=2
- To add a line break write : \n
If you're using single quotes write : \'
Codes last updated on 6th March 2014 - 16:56 by Ange Tuteur