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.

Custom form Tutorial - Script not working

View previous topic View next topic Go down

Solved Custom form Tutorial - Script not working

Post by Matikka on December 6th 2016, 12:48 am

Hello,
i am using the tutorial where you can add a custom Form on topic creation and for some reason it's not showing up in the text box (which is default) can someone please check the script to see if i have done it correctly and maybe provide a working fix.

If you need my Forum information let me know so that i can edit this thread and add in the Information you need hopefully this can be fixed. here is the tutorial link so you know which one i am following it say's for all Forums i am using PHPBB2.

@Ange Tuteur
Tutorial Thread for Custom Form
Custom Form Tutorial

Code:
$(function() {
    if (location.pathname == '/post' && location.search == '?f=30&mode=newtopic') {
      $('#text_editor_textarea').val('[color=#FFFFFF][b]Support Type[/b][/color]:/n[color=#369FCF][b]Your new Forum Name[/b][/color]:/n[color=#FFFFFF][b]Ban/Suspension length[/b][/color]:/n[color=#369FCF][b]New Account Icon[/b][/color]:/n[color=#FFFFFF][b]Have you Forgot a Password[/b][/color]:/n[color=#369FCF][b]Avatar / Signiture Change[/b][/color]:/n[color=#FFFFFF][b]Missing Forum Badge[/b][/color]:/n[color=#369FCF][b]Reporting a PM[/b][/color]:/n[color=#FFFFFF][b]Forum Link to last Post[/b][/color]:/n[color=#369FCF][b]Other Account Issue[/b][/color]:/n[color=#FFFFFF][b]Detailed Description / Include screenshots[/b][/color]:');
    }
});

Thank You.


Last edited by Matikka on December 6th 2016, 7:27 pm; edited 1 time in total
avatar
Matikka
Forumember

Male Posts : 88
Reputation : 3
Language : English
Location : United Kingdom

http://www.Stars-Clan.Forumotion.co.uk

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by SLGray on December 6th 2016, 12:16 pm

You typed the wrong code for line breaks.

/n should be \n.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 39122
Reputation : 2625
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Matikka on December 6th 2016, 5:36 pm

Sorry would have replied sooner but Internet has been down all day for Maintenence, I changed the line break to the one you stated and the text still dosen't show in the text box
avatar
Matikka
Forumember

Male Posts : 88
Reputation : 3
Language : English
Location : United Kingdom

http://www.Stars-Clan.Forumotion.co.uk

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Draxion on December 6th 2016, 6:10 pm

Hey there,

Do you have your JavaScripts enabled?


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1347
Reputation : 186
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Matikka on December 6th 2016, 6:40 pm

Yes,
Java is enabled.
avatar
Matikka
Forumember

Male Posts : 88
Reputation : 3
Language : English
Location : United Kingdom

http://www.Stars-Clan.Forumotion.co.uk

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Draxion on December 6th 2016, 6:43 pm

And you are sure you linked the correct topic number with this?

Code:
?f=30&mode=newtopic

Like this topic, for example, is '43'. so it would be '?f=43&mode=newtopic'


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1347
Reputation : 186
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Matikka on December 6th 2016, 6:45 pm

Yes,
mine is '?f=30&mode=newtopic'
avatar
Matikka
Forumember

Male Posts : 88
Reputation : 3
Language : English
Location : United Kingdom

http://www.Stars-Clan.Forumotion.co.uk

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Matikka on December 6th 2016, 7:27 pm

This has now been solved.

Thank You @Draxion
avatar
Matikka
Forumember

Male Posts : 88
Reputation : 3
Language : English
Location : United Kingdom

http://www.Stars-Clan.Forumotion.co.uk

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by Draxion on December 6th 2016, 7:28 pm

You're very welcome!
avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1347
Reputation : 186
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Custom form Tutorial - Script not working

Post by SLGray on December 6th 2016, 9:14 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


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

avatar
SLGray
Administrator
Administrator

Male Posts : 39122
Reputation : 2625
Language : English
Location : United States

https://fmthemes.forumotion.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