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.

How can I add a template for my forum?

3 posters

Go down

Solved How can I add a template for my forum?

Post by Kite Trojan 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
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 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
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Kite Trojan 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
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 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.
How can I add a template for my forum? Captu279
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Kite Trojan 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
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 January 1st 2014, 2:05 am

Have tried adding it and see if it works?


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

It doesn't work.
Kite Trojan
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 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


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

?
Kite Trojan
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 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.


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

The code will take along time to change because it is very long Sad
Kite Trojan
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 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]:');
    }
    });


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

I have tried this. Nothing happens on the post reply on the specific forum
Kite Trojan
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 January 1st 2014, 3:08 am

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


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

In the topics
Kite Trojan
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 January 1st 2014, 3:19 am

Try in subforums?


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

NOTHING
Kite Trojan
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 January 1st 2014, 3:37 am

In all pages


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

nothing still
Kite Trojan
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 January 1st 2014, 3:43 am

Try using your code that you created.


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

Post by Ange Tuteur 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.
How can I add a template for my forum? Captu280

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
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Kite Trojan 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
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 January 1st 2014, 7:14 pm

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


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

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

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

Ok, it works! Topic solved and locked.
Kite Trojan
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 January 1st 2014, 7:18 pm

Topic Solved & Locked


How can I add a template for my forum? 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 : 51572
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

Back to top

- Similar topics

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