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.

Custom reply template

4 posters

Go down

In progress Custom reply template

Post by bertv July 13th 2019, 6:38 pm

I run PunBB on my forum ( http://www.k100-forum.com ) and I would like to know if it's possible to create a custom reply template for a specific forum.
I would like when the user click on the reply button (only on this specific forum) to have this template showing:
Is that possible and how to?
Thanks in advance.

Custom reply template Captur12
avatar
bertv
New Member

Posts : 12
Reputation : 2
Language : English

Back to top Go down

In progress Re: Custom reply template

Post by Ikerepc July 13th 2019, 6:54 pm

Yes, it is possible to do such a thing via JavaScript, and if I'm not wrong forumotion had something similar for some time.

I'm going to try to do something similar.

Also, users will still be able to avoid that on certain ways but anyway Smile

Also, have you tried something like this:
https://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic ?
Ikerepc
Ikerepc
Active Poster

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

http://admins.forumotion.com

Back to top Go down

In progress Re: Custom reply template

Post by SLGray July 13th 2019, 6:59 pm

Do you mean a reply to a topic or starting a topic?


Custom reply template 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 : 51569
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Custom reply template

Post by bertv July 13th 2019, 8:35 pm

Thanks for your quick answer.
I found my problem.... Javascript was disabled Sad
I have 2 other questions:
- How can I force the editor to start in wysiwyg when I click "reply" for the specific topic or forum? Can I add something in the javascript?
- is that any code that could disable the "new Topic" button on this specific forum?

Here is a link to my Javascript file for people looking at the same solution:
Text file of the javascript
avatar
bertv
New Member

Posts : 12
Reputation : 2
Language : English

Back to top Go down

In progress Re: Custom reply template

Post by bertv July 13th 2019, 8:44 pm

I also had to redesign my template, because when you switch between WYSIWYG and text mode, in WYSIWYG it add about 15 extra blank lines on the top of the table.
Please see attached pictures:
Custom reply template Textmo10


Custom reply template Wysiwy10
avatar
bertv
New Member

Posts : 12
Reputation : 2
Language : English

Back to top Go down

In progress Re: Custom reply template

Post by SLGray July 13th 2019, 9:58 pm

Custom reply template Wysiwy10


Custom reply template 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 : 51569
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Custom reply template

Post by SLGray July 13th 2019, 10:16 pm

Also there are a couple of places where location is misspelled in your JavaScript.


Custom reply template 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 : 51569
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Custom reply template

Post by bertv July 13th 2019, 11:02 pm

Thanks again for your reply SLGray.
WYSIWYG is activated by default on the forum and it works on every other posts or forum
The problem is only with the JavaScript template. Is that a way to force WYSIWYG in the script for the template?

You also tell me that there are a couple of places where location is misspelled.... Could you point to me where is the error?
Thanks.
avatar
bertv
New Member

Posts : 12
Reputation : 2
Language : English

Back to top Go down

In progress Re: Custom reply template

Post by SLGray July 13th 2019, 11:44 pm

I noticed the errors in the last part of the JavaScript

You have locacion instead of location.


Custom reply template 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 : 51569
Reputation : 3525
Language : English
Location : United States

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

Back to top Go down

In progress Re: Custom reply template

Post by skouliki July 24th 2019, 11:29 am

hello 

is this solved?
skouliki
skouliki
Manager
Manager

Female Posts : 15397
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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