Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 8, 2012 22:39:13 GMT -8
Hiya.
I would like to know if there is a way to make an old code into a plug in? The idea was to have a template or code show up on the first post of the board?
<script type="text/javascript"> <!--
if(location.href.match(/post$/) && document.postForm){ document.postForm.message.value = '\n\n[b]Characters Appearing:[/b] \n'+ '[b]Time of Day:[/b] \n'+ '[b]Location(s):[/b] \n'+ '[b]Previous Thread Name/Info:[/b] \n'+ '[b]NPCs Used:[/b] \n'+ '[b]Plot Summary:[/b] \n\n'; }
// --> </script>
This was the original code that popped up a little form to fill out at the start of each thread. I also used it for my boards application board to fill out to get a new character. Any help would be appreciated. Thanks!
|
|
inherit
14706
0
Jan 28, 2021 15:41:20 GMT -8
Xikeon
170
October 2003
mikeo
|
Post by Xikeon on Nov 9, 2012 7:31:31 GMT -8
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 9, 2012 8:43:43 GMT -8
I tried it and added the template but nothing happens. I enabled it but the thread is still blank. Am I missing how to activate it?
|
|
inherit
14706
0
Jan 28, 2021 15:41:20 GMT -8
Xikeon
170
October 2003
mikeo
|
Post by Xikeon on Nov 9, 2012 8:47:21 GMT -8
Did you select the correct board to the left of the template? (By clicking "add board")
Edit: just noticed I added it to the wrong textfield. Fixing it right now.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 9, 2012 8:54:09 GMT -8
Yup. I tried it on our pending application board where the app needs to come up. Added a simple form and clicked save but nothing happens when i go to the board to test it.
|
|
inherit
14706
0
Jan 28, 2021 15:41:20 GMT -8
Xikeon
170
October 2003
mikeo
|
Post by Xikeon on Nov 9, 2012 9:09:01 GMT -8
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 9, 2012 20:50:23 GMT -8
Still does not work. I tried it and now I am getting an error on the page. The page still remains blank. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) Timestamp: Sat, 10 Nov 2012 04:49:06 UTC Message: 'console' is undefined Line: 8 Char: 17 Code: 0 URI: storage.proboards.com/0/0/j/Ay9IAfxKtWsZgiDBApsv.js
|
|
inherit
14706
0
Jan 28, 2021 15:41:20 GMT -8
Xikeon
170
October 2003
mikeo
|
Post by Xikeon on Nov 10, 2012 0:42:17 GMT -8
Ah, you're using IE and I forgot to remove the debugging code. My bad! I uploaded a new one, sorry about that.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 10, 2012 17:54:14 GMT -8
It works, but the template I posted comes out in one big block of text. How can I format it so it posts in a form layout? I'm also still getting an error on the page so when it posts the template it wont let you switch it to visual or change the formatting. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) Timestamp: Sun, 11 Nov 2012 01:55:09 UTC Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. Line: 979 Char: 139 Code: 0 URI: 4d5.net/f/forum.js
|
|
inherit
14706
0
Jan 28, 2021 15:41:20 GMT -8
Xikeon
170
October 2003
mikeo
|
Post by Xikeon on Nov 11, 2012 0:38:34 GMT -8
You should format it with html (not UBB). So you can use <br> for enters, <b> for bold, etc.
I'm going to rewrite the way I'm adding it to the editor. I need to find a better way to check if the visual editor has loaded.
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 11, 2012 11:37:00 GMT -8
Ah, alright. I shall test it and get back to you.
Thanks!
|
|
Former Member
inherit
guest@proboards.com
177794
0
Nov 27, 2024 22:20:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 11, 2012 12:42:37 GMT -8
Ok I got it to work sorta. When I click new message it comes up as a big block of coding. In order for it to show up properly I have to click UBBcode button twice and then the visual button? Is there any way to fix that because I can see a lot of players having a big problem knowing what to do. I already had to take out the line where you just copy in the image code because now you have to put the code in the pop up instead of between the brackets.
|
|
inherit
14706
0
Jan 28, 2021 15:41:20 GMT -8
Xikeon
170
October 2003
mikeo
|
Post by Xikeon on Nov 11, 2012 15:52:48 GMT -8
Did you use HTML rather than UBB? You should use HTML, and then for the image you can use: <img src="url">
|
|