The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Automatic Form Code Not Working

2 posters

Go down

In progress Automatic Form Code Not Working

Post by Ellianna17 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
Ellianna17
Forumember

Female Posts : 539
Reputation : 126
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 June 8th 2015, 9:57 am

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


Automatic Form Code Not Working Slgray10

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Automatic Form Code Not Working

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

Yes and yes. Wink
Ellianna17
Ellianna17
Forumember

Female Posts : 539
Reputation : 126
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 June 8th 2015, 10:10 am

Is this exactly a form for posts or profiles?


Automatic Form Code Not Working Slgray10

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Automatic Form Code Not Working

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

Posts.
Ellianna17
Ellianna17
Forumember

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

http://winxclub.site-forums.com

Back to top Go down

Back to top

- Similar topics

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