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.
The forum of the forums
2 posters

    Automatic Form Code Not Working

    Ellianna17
    Ellianna17
    Forumember


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

    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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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.
    Ellianna17
    Ellianna17
    Forumember


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

    In progress Re: Automatic Form Code Not Working

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

    Yes and yes. Wink
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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.
    Ellianna17
    Ellianna17
    Forumember


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

    In progress Re: Automatic Form Code Not Working

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

    Posts.

      Current date/time is November 11th 2024, 8:37 pm