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.

Anyway to enable post templates?

4 posters

Go down

In progress Anyway to enable post templates?

Post by Giooo November 19th 2013, 8:20 pm

Is there an option when creating a forum that when a user creates a topic in that forum, the topic is filled in with a post template the member can fill in?
Giooo
Giooo
Forumember

Male Posts : 155
Reputation : 8
Language : English, Greek
Location : Virginia

http://admincentral.forumotion.com/

Back to top Go down

In progress Re: Anyway to enable post templates?

Post by Ikerepc November 19th 2013, 8:26 pm

Hello,

Yes, but you need edit all templates, and you will have bugs, but you can create html page for it.
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

In progress Re: Anyway to enable post templates?

Post by Ultron's Vision November 19th 2013, 8:29 pm

As Zyon said, your safest bet is to create HTML pages to do that.

You could edit your templates, but that's not really viable for every forum, so it's only for certain cases.

JavaScript is also unreliable because the user can always disable it.
Ultron's Vision
Ultron's Vision
Forumember

Male Posts : 634
Reputation : 45
Language : English | German | HTML | JavaScript | PHP | C++ | Perl | Java
Location : Vienna, Austria

http://duelacademy.net

Back to top Go down

In progress Re: Anyway to enable post templates?

Post by Ikerepc November 19th 2013, 8:38 pm

And you can edit in templates new topic for each forum, and set html page, only you need to have few html pages for each forum.

But if you edit templates it will have A LOT OF BUGS, and with editing it too, so it is best to create html page, like on this forum, when you click up on link create tutorial (up, in navbar), you get html page with template for that, and when you choose sent, it sent topic direct to tutorials proposal. If you think on that. Also you can add more options of corse Smile
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

In progress Re: Anyway to enable post templates?

Post by Ange Tuteur November 19th 2013, 9:23 pm

You could try this script:
Administration Panel > Modules > HTML & JAVASCRIPT > Javascript codes management
Name: What you wish
Placement: In all the pages
Source:
Code:
jQuery(function() {
if (document.location.href.indexOf('/post?f=1&mode=newtopic') > -1) {
jQuery('#text_editor_textarea').text('[b]Field 1:[/b]\n[b]Field 2:[/b]\n[b]Feild 3:[/b]');
}
});
What you need to edit:
You'll need to edit the underlined value to your forums FID(Forum ID).
('/post?f=1&mode=newtopic')

You can see this in the address bar while in your forum, or creating a new topic. It needs to be the forum where you'll want this script to work.
Anyway to enable post templates? Captu128

Lastly is the text inserted into the SCEditor textarea.
Code:
.text('[b]Field 1:[/b]\n[b]Field 2:[/b]\n[b]Feild 3:[/b]')
I already have 3 simple fields set up for you to fiddle with. If you need to add line breaks write '\n' the texts after that will display on a new line.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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