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.

How can I add a template for my forum?

View previous topic View next topic Go down

Solved How can I add a template for my forum?

Post by Kite Trojan on December 31st 2013, 10:45 pm

How can i add my own custom template for this:http://galacticda.forumotion.com/f1-test-results

like the template for a graphic request


Last edited by Xnomejx on January 1st 2014, 7:17 pm; edited 1 time in total

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Ange Tuteur on December 31st 2013, 10:58 pm

Hello ,

It should be as simple as writing a field and wrapping it with bbcode.

example :
Code:
[color=#33cc33][b]Field 1[/b][/color]:
[color=#33cc33][b]Field 2[/b][/color]:
[color=#33cc33][b]Field 3[/b][/color]:

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on December 31st 2013, 11:05 pm

i know its something like that but, how can i just add those instead of people copy and pasting?

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Ange Tuteur on December 31st 2013, 11:23 pm

You would need to apply a script for a specific forum.

Example :
Code:
jQuery(function() {
if (document.location.href.indexOf('/post?f=33&mode=newtopic') > -1) {
jQuery('#text_editor_textarea').text('[b]Website Name[/b]:\n[b]Web Address[/b]:\n[b]Language[/b]:\n[b]Description[/b]:');
}
});

You must change the underlined value with the ID of your sub forum :
('/post?f=33&mode=newtopic')

You can see the ID of the sub forum from the address bar while viewing it.

Once you have done that you can edit the template.
Code:
[b]Website Name[/b]:\n[b]Web Address[/b]:\n[b]Language[/b]:\n[b]Description[/b]:

Line breaks MUST NOT be used otherwise the code will not work. As seen above to apply a line break you must write \n after your field.

To apply your script :
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management > create a new script

The script must be ran 'in all the pages' for it to work.

On creation of a new topic in that forum the template should be added to the editor.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 12:31 am

Code:
jQuery(function() {
if (document.location.href.indexOf('post?f=1&mode=newtopic') > -1) {
jQuery('#text_editor_textarea').text('[color=#33ffff][b]Results:[/b][/color]
[color=#ffffff](Tester's name) vs (Testee's name)[/color]
[color=#ffffff](Tester's deck) vs (Testee's deck)[/color]
[b][color=#ffffff]Duel Result:[/color][/b][color=#ffffff]Testee [0/1/2] - [0/1/2] Tester[/color]

[color=#33ffff][b]Deck:[/b][/color]
[b][color=#ffffff]Deck Build:[/color][/b][color=#ffffff]x/10 (NOT judging originality, but judging how well the cards in the deck and eventual techs work together)[/color]
[b][color=#ffffff]Side Deck:[/color][/b][color=#ffffff]x/10 (again, NOT judging originality, but how the side deck works against the most played decks this format and whether it has good or bad cards to side)[/color]

[color=#33ffff][b]Gameplay & Concentration:[/b][/color]
[b][color=#ffffff]Use of cards:[/color][/b][color=#ffffff]x/5 (considering testee's opening hand. A screenshot of your starting hand may be asked at the start of the duel for a more accurate evaluation)[/color]
[b][color=#ffffff]Siding skills:[/color][/b][color=#ffffff]x/5 (how the cards that the testee sided work against the tester's deck. A screenshot may be asked during siding to better see which cards you sided. The screenshot has to be given at the end of the match)[/color]
[b][color=#ffffff]Performance:[/color][/b][color=#ffffff]x/10 (number of misplays that the tester caught, general playstyle of the testee, etc. This also includes concentration, meaning that the tester CAN make minor illegal plays and give the testee time to catch them, HOWEVER the tester WILL have to tell the testee about the illegal play and will have to fix it before the game proceeds. This is to avoid cheated wins by the tester)[/color]

[b][color=#ffffff]Ruling Test:[/color][/b][color=#ffffff]x/10 (1 for each correct answer)[/color]
[color=#ffffff]We have a ruling test that consists of 10 questions.[/color]
[color=#ffffff]The test is located here:[/color][url=https://testmoz.com/237936][color=#333333]https://testmoz.com/237936[/color][/url][url=https://testmoz.com/237936][/url]
[color=#ffffff]Your tester will give you the login information after your match. You will have 70 minutes to complete the test. All reports that exceed the 70 minute time limit will be considered null, and will be graded 0.[/color]

[color=#33ffff][b]Total Score:[/b][/color][color=#ffffff]x/50[/color]

[b][color=#ffffff]Welcome to[color=#ff3333]Slifer[/color]/[color=#ffcc33]Ra[/color]/[color=#3366ff]Obelisk[/color]![/color][/b]

[b][color=#ffffff][color=#ff3333]Slifer[/color][/color][/b][color=#ffffff]: 0-20 pts.[/color]
[b][color=#ffffff][color=#ffcc33]Ra[/color][/color][/b][color=#ffffff]: 21-40 pts.[/color]
[b][color=#ffffff][color=#3366ff]Obelisk[/color][/color][/b][color=#ffffff]: 41-50 pts.[/color]:');
}
});

Is that correct?

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 2:05 am

Have tried adding it and see if it works?


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 2:05 am

It doesn't work.

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 2:09 am

Your code doe snot look like this:
Code:
 [b]Website Name[/b]:\n[b]Web Address[/b]:\n[b]Language[/b]:\n[b]Description[/b]:
/n


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 2:24 am

?

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 2:30 am

Between each line break you have to use this: /n
The way you have them now, the code will treat it as one long line.


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 2:43 am

The code will take along time to change because it is very long Sad

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 2:54 am

Code:
    jQuery(function() {
    if (document.location.href.indexOf('post?f=1&mode=newtopic') > -1) {
    jQuery('#text_editor_textarea').text('[color=#33ffff][b]Results:[/b][/color]\n[color=#ffffff](Tester's name) vs (Testee's name)[/color]\n
    [color=#ffffff](Tester's deck) vs (Testee's deck)[/color]\n  [b][color=#ffffff]Duel Result:[/color][/b]\n[color=#ffffff] Testee [0/1/2] - [0/1/2] Tester[/color]\n\n[color=#33ffff][b]Deck:[/b][/color]\n  [b][color=#ffffff]Deck Build:[/color][/b]\n[color=#ffffff] x/10 (NOT judging originality, but judging how well the cards in the deck and eventual techs work together)[/color]\n[b][color=#ffffff]Side Deck:[/color][/b]\n[color=#ffffff] x/10 (again, NOT judging originality, but how the side deck works against the most played decks this format and whether it has good or bad cards to side)[/color]\n\n [color=#33ffff][b]Gameplay & Concentration:[/b][/color]\n  [b][color=#ffffff]Use of cards:[/color][/b]\n[color=#ffffff] x/5 (considering testee's opening hand. A screenshot of your starting hand may be asked at the start of the duel for a more accurate evaluation)[/color]\n[b][color=#ffffff]Siding skills:[/color][/b]\n[color=#ffffff] x/5 (how the cards that the testee sided work against the tester's deck. A screenshot may be asked during siding to better see which cards you sided. The screenshot has to be given at the end of the match)[/color]\n[b][color=#ffffff]Performance:[/color][/b]\n[color=#ffffff] x/10 (number of misplays that the tester caught, general playstyle of the testee, etc. This also includes concentration, meaning that the tester CAN make minor illegal plays and give the testee time to catch them, HOWEVER the tester WILL have to tell the testee about the illegal play and will have to fix it before the game proceeds. This is to avoid cheated wins by the tester)[/color]\n\n[b][color=#ffffff]Ruling Test:[/color][/b]\n[color=#ffffff] x/10 (1 for each correct answer)[/color]\n[color=#ffffff]We have a ruling test that consists of 10 questions.[/color]\n[color=#ffffff]The test is located here:[/color][url=https://testmoz.com/237936][color=#333333]https://testmoz.com/237936[/color][/url][url=https://testmoz.com/237936][/url]\n  [color=#ffffff]Your tester will give you the login information after your match. You will have 70 minutes to complete the test. All reports that exceed the 70 minute time limit will be considered null, and will be graded 0.[/color]\n\n[color=#33ffff][b]Total Score:[/b][/color][color=#ffffff] x/50[/color]\n\n[b][color=#ffffff]Welcome to [color=#ff3333]Slifer[/color]/[color=#ffcc33]Ra[/color]/[color=#3366ff]Obelisk[/color]![/color][/b]\n\n[b][color=#ffffff][color=#ff3333]Slifer[/color][/color][/b]\n[color=#ffffff]: 0-20 pts.[/color]\n[b][color=#ffffff][color=#ffcc33]Ra[/color][/color][/b][color=#ffffff]: 21-40 pts.[/color]\n[b][color=#ffffff][color=#3366ff]Obelisk[/color][/color][/b][color=#ffffff]: 41-50 pts.[/color]:');
    }
    });


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 3:06 am

I have tried this. Nothing happens on the post reply on the specificforum

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 3:08 am

What did you check: in topics, in subforums, etc.?


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 3:13 am

In the topics

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 3:19 am

Try in subforums?


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 3:27 am

NOTHING

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 3:37 am

In all pages


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 3:39 am

nothing still

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 3:43 am

Try using your code that you created.


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Ange Tuteur on January 1st 2014, 3:21 pm

Hello ,

The reason the script is not working is because you written a single quote and our string is set between two single quotes. If you use a single quote and do not add a slash before it then it will be treated as if the string was closed. Additionally it will make the script inactive.


simply write it as :
don\'t it\'s \'


Name : what you wish
Placement : in all the pages
Code:
jQuery(function() {
if (document.location.href.indexOf('post?f=1&mode=newtopic') > -1) {
jQuery('#text_editor_textarea').text('[color=#33ffff][b]Results:[/b][/color]\n[color=#ffffff](Tester\'s name) vs (Testee\'s name)[/color]\n[color=#ffffff](Tester\'s deck) vs (Testee\'s deck)[/color]\n[b][color=#ffffff]Duel Result:[/color][/b]\n[color=#ffffff] Testee [0/1/2] - [0/1/2] Tester[/color]\n\n[color=#33ffff][b]Deck:[/b][/color]\n[b][color=#ffffff]Deck Build:[/color][/b]\n[color=#ffffff] x/10 (NOT judging originality, but judging how well the cards in the deck and eventual techs work together)[/color]\n[b][color=#ffffff]Side Deck:[/color][/b]\n[color=#ffffff] x/10 (again, NOT judging originality, but how the side deck works against the most played decks this format and whether it has good or bad cards to side)[/color]\n\n[color=#33ffff][b]Gameplay & Concentration:[/b][/color]\n[b][color=#ffffff]Use of cards:[/color][/b]\n[color=#ffffff] x/5 (considering testee\'s opening hand. A screenshot of your starting hand may be asked at the start of the duel for a more accurate evaluation)[/color]\n[b][color=#ffffff]Siding skills:[/color][/b]\n[color=#ffffff] x/5 (how the cards that the testee sided work against the tester\'s deck. A screenshot may be asked during siding to better see which cards you sided. The screenshot has to be given at the end of the match)[/color]\n[b][color=#ffffff]Performance:[/color][/b]\n[color=#ffffff] x/10 (number of misplays that the tester caught, general playstyle of the testee, etc. This also includes concentration, meaning that the tester CAN make minor illegal plays and give the testee time to catch them, HOWEVER the tester WILL have to tell the testee about the illegal play and will have to fix it before the game proceeds. This is to avoid cheated wins by the tester)[/color]\n\n[b][color=#ffffff]Ruling Test:[/color][/b]\n[color=#ffffff] x/10 (1 for each correct answer)[/color]\n[color=#ffffff]We have a ruling test that consists of 10 questions.[/color]\n[color=#ffffff]The test is located here:[/color][url=https://testmoz.com/237936][color=#333333]https://testmoz.com/237936[/color][/url][url=https://testmoz.com/237936][/url]\n[color=#ffffff]Your tester will give you the login information after your match. You will have 70 minutes to complete the test. All reports that exceed the 70 minute time limit will be considered null, and will be graded 0.[/color]\n\n[color=#33ffff][b]Total Score:[/b][/color][color=#ffffff] x/50[/color]\n\n[b][color=#ffffff]Welcome to [color=#ff3333]Slifer[/color]/[color=#ffcc33]Ra[/color]/[color=#3366ff]Obelisk[/color]![/color][/b]\n\n[b][color=#ffffff][color=#ff3333]Slifer[/color][/color][/b]\n[color=#ffffff]: 0-20 pts.[/color]\n[b][color=#ffffff][color=#ffcc33]Ra[/color][/color][/b][color=#ffffff]: 21-40 pts.[/color]\n[b][color=#ffffff][color=#3366ff]Obelisk[/color][/color][/b][color=#ffffff]: 41-50 pts.[/color]:');
}
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 7:11 pm

Ange, I have tried the code that you provided me, but theres still a issue. Nothing showes up.

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 7:14 pm

Do you have other JavaScripts? If you do, remove the others and see if the code works.


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


SLGray
Administrator
Administrator

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

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by Kite Trojan on January 1st 2014, 7:15 pm

Ok, it works! Topic solved and locked.

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Solved Re: How can I add a template for my forum?

Post by SLGray on January 1st 2014, 7:18 pm

Topic Solved & Locked


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


SLGray
Administrator
Administrator

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

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