Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Jun 11, 2013 19:54:03 GMT -8
There's a code for v4 forums to fill new messages with pre-set text and I would like to do this for a v5 forum and just brain isn't working at all lately.
v4 Code: How would I go about auto-filling new thread posts in v5 for a certain board?
*Update: I should clarify, I intend to set a template with images and tables and other fancy things not just plain text with simple BBC. And I also know that there is a plug-in for custom templates that I can set for each board but I don't know if it has the functionality that I desire. Plus I am looking to use this for 3 different templates, each on one board so having a skeleton header code where I can just stick whatever template I want in would be preferable.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jun 23, 2013 3:24:39 GMT -8
Not sure if you are still looking for a way to do this but I just tried that code on a V4 site and I can't see that it does anything so I'm not sure what you are wanting. Seems the code inserts something in a post but I'm not sure. Can you give any more detail, that is if you still want this.
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Jun 23, 2013 8:41:36 GMT -8
Yes I am still interested in this. What it does is you put whatever you want into the variable, and then set the value of the initial posting form to be filled with whatever is in that variable. You need to put the code in a board header/footer (can't exactly remember which). In the example above all it inserts is 'Insert the templatey things!' and a new line, but I plan on using full html for a bunch of character templates and such.
I was looking through the v5 code and played around with setting posting templates and then looking at the source code since I can't seem to find anything regarding posting templates in the Layout stuff. I just need something that will, when a new thread is created in a board, set the text area of the posting form to be filled with whatever it is I want for that specific board.I was, in the event that no one answered this, planning on looking into trying to grab the line that templates work off of by the name or class and then filling the value, just not sure the best way to go about doing it.
|
|
inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Jun 23, 2013 9:15:28 GMT -8
this should be relatively easy, though idk about filling in the message area when using preview mode by default, but i'll see what i can come up with.
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Jun 23, 2013 11:32:09 GMT -8
It seems like it would be pretty easy, as the v4 one is anyways and the logic in my head when considering jquery makes me believe it. Just can't sit down and do it @.@ Many thanks for taking the time!
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Jul 14, 2013 11:35:12 GMT -8
Still interested in this if anyone's got the time.
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Aug 23, 2013 17:52:42 GMT -8
Anyone?
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Dec 16, 2013 19:05:52 GMT -8
Still interested in this. Also an update on describing what I want...
Know how you start a new thread in the support home and it comes up with that pop-up to enter a web address. Then after hitting submit it populates the posting area with the templated 'Forum:' followed by whatever string you entered. I want that, but without the pop-up step. Instead it would be grabbing only a preset set of bbc and throwing it down. Would only be used for a board like the support home is doing.
|
|
Kami
Forum Cat
Posts: 40,187
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,187
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Dec 16, 2013 22:55:45 GMT -8
|
|
Former Member
inherit
guest@proboards.com
131621
0
Oct 31, 2024 15:42:35 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 16, 2013 23:20:17 GMT -8
I'd suggest Predetermined Post Drop Down rather than Custom Templates Plugin, unless I'm misunderstanding the plugin.
|
|
Kami
Forum Cat
Posts: 40,187
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,187
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Dec 17, 2013 0:04:04 GMT -8
I'd suggest Predetermined Post Drop Down rather than Custom Templates Plugin, unless I'm misunderstanding the plugin. Or that, though it leaves the onus on the poster to select said template, rather than having it be default.
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Dec 17, 2013 6:41:21 GMT -8
I looked at that plugin and mentioned it in the first post. Is it able to do divs of various complication and images, tables..? I just see simple text and styling.
|
|
Former Member
inherit
guest@proboards.com
131621
0
Oct 31, 2024 15:42:35 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 17, 2013 6:56:05 GMT -8
it should but I'd ask the plugin creator
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Oct 29, 2024 7:51:02 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Dec 17, 2013 12:27:51 GMT -8
Much appreciated everyone for your help. If anyone has used the plugin and knows if it can or not I would appreciate the info too Will have to find some time to sit down and play with it then; in the near future hopefully.
|
|