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

Ellianna17
Forumember

Female Posts : 539
Reputation : 124
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.


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

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

Ellianna17
Forumember

Female Posts : 539
Reputation : 124
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.


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

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

Ellianna17
Forumember

Female Posts : 539
Reputation : 124
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