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.

Automatic Form Code Not Working

View previous topic View next topic Go down

In progress Automatic Form Code Not Working

Post by Ellianna17 on June 8th 2015, 9:51 am

Hi! I installed this code in my forum a while ago, though it's not working.
Code:
$(function() {
    if (location.pathname == '/post' && location.search == '?f=5&mode=newtopic') {
      $('#text_editor_textarea').val('[b]Name[/b]: \n[b]Question or Suggestion[/b]: \n[b]Detailed Description[/b]: \n');
    }
});

$(function() {
    if (location.pathname == '/post' && location.search == '?=27&mode=newtopic') {
      $('#text_editor_textarea').val('Name: \nAge: \nSpecies: \nHome Planet: \nPowers: \nWeapons: \nGender: \nPersonality: \nStrengths: \nWeaknesses: \nSpells: \nAppearance: \nHistory: ');
    }
});
If a test account with admin rights is needed, please tell me. Mr. Green
avatar
Ellianna17
Forumember

Female Posts : 539
Reputation : 125
Language : English, Filipino, and Basic Spanish

http://winxclub.site-forums.com

Back to top Go down

In progress Re: Automatic Form Code Not Working

Post by SLGray on June 8th 2015, 9:57 am

Was this only for topics? Do you have the In Topics checked?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40509
Reputation : 2733
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Automatic Form Code Not Working

Post by Ellianna17 on June 8th 2015, 10:06 am

Yes and yes. Wink
avatar
Ellianna17
Forumember

Female Posts : 539
Reputation : 125
Language : English, Filipino, and Basic Spanish

http://winxclub.site-forums.com

Back to top Go down

In progress Re: Automatic Form Code Not Working

Post by SLGray on June 8th 2015, 10:10 am

Is this exactly a form for posts or profiles?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40509
Reputation : 2733
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Automatic Form Code Not Working

Post by Ellianna17 on June 8th 2015, 10:11 am

Posts.
avatar
Ellianna17
Forumember

Female Posts : 539
Reputation : 125
Language : English, Filipino, and Basic Spanish

http://winxclub.site-forums.com

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