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
3 posters

    about the code of add a form creation of a new topic

    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved about the code of add a form creation of a new topic

    Post by Michael_vx April 2nd 2014, 3:19 am

    about that tuto
    https://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic
    can this code be apply to contact us page
    i didnt try any thing with the code yet
    i still wander can this can be used on contact us page and can that code handle Arabic thank you
     Hello
    Pizza Boi
    Pizza Boi
    Hyperactive


    Male Posts : 2016
    Reputation : 160
    Language : French
    Location : Pizza Hut!

    Solved Re: about the code of add a form creation of a new topic

    Post by Pizza Boi April 2nd 2014, 10:08 am

    Hi Very Happy

    Well, I'm pretty sure you can IF you change the mode but I'm not sure if it'll be able to handle Arabic. Hopefully Ange has a solution so I can pattern over it and make one on French as well '-'.

    Regards,
    Pizza Boi
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: about the code of add a form creation of a new topic

    Post by Ange Tuteur April 2nd 2014, 4:34 pm

    Hello Michael_vx,

    You have to remove the query search from the condition, and change the pathname to the contact us page path. You also need to change the textarea selected :
    Code:
    $(function() {
     Â   if (location.pathname == '/contact') {
     Â      $('#message').val('FORM');
     Â   }
    });

    It should be able to support Arabic, just write between the single quotes where FORM is.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: about the code of add a form creation of a new topic

    Post by Michael_vx April 2nd 2014, 8:16 pm

    Ange Tuteur wrote:Hello Michael_vx,

    You have to remove the query search from the condition, and change the pathname to the contact us page path. You also need to change the textarea selected :
    Code:
    $(function() {
     Â   if (location.pathname == '/contact') {
     Â      $('#message').val('FORM');
     Â   }
    });

    It should be able to support Arabic, just write between the single quotes where FORM is.
    yeah worked by th way what kind of codes i should use in font moding like bold collor or any thing else
    topic is solved i guess just tell me the font moding and done
     Cool
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: about the code of add a form creation of a new topic

    Post by Ange Tuteur April 2nd 2014, 8:41 pm

    For the contact page ? I do not believe those messages have formatting.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: about the code of add a form creation of a new topic

    Post by Michael_vx April 3rd 2014, 3:42 am

    Ange Tuteur wrote:For the contact page ? I do not believe those messages have formatting.
     Shocked
    about topics formatting !
    sorry i didnt say that !
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: about the code of add a form creation of a new topic

    Post by Ange Tuteur April 3rd 2014, 3:46 am

    You can use bbcode :
    Code:
    val('[b][color=red]Field 1:[/color][/b]')

    or HTML :
    Code:
    val('<span style="color:red;font-weight:bold;">Field 1:</span>')

    It depends on what you're comfortable with using.
    Michael_vx
    Michael_vx
    Forumember


    Male Posts : 659
    Reputation : 29
    Language : Arabic and some English
    Location : Egypt

    Solved Re: about the code of add a form creation of a new topic

    Post by Michael_vx April 3rd 2014, 4:01 am

    thanks so much Ange
    once again you saved me Very Happy
    topic is solved
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: about the code of add a form creation of a new topic

    Post by Ange Tuteur April 3rd 2014, 4:06 am

    You're welcome :rose:

    Topic solved and archived

      Current date/time is September 22nd 2024, 7:34 pm