|
Post by Dragon on Jul 13, 2012 13:17:46 GMT -8
Can a code be made to add a ubbc table inside the message area ? [#1] [#] | [atrb=style,background-image:url(MYTABLEBG); width:700,bTable] [#5] - minutes - Summary: [scrolly:w(310),sy] [/scrolly] External links:
|
[#2] for example. First post/creating thread post only.
|
|
|
Post by Wormopolis on Jul 13, 2012 17:19:13 GMT -8
force content into the message area automatically on all new threads?
|
|
|
Post by Dragon on Jul 14, 2012 16:20:06 GMT -8
Pretty much. As soon as you hit the make new thread button you go through the usual process and the UBBC table is already inside the message box area. First post/creation of thread only. Don't want it in replies, just the first post.
|
|
|
Post by Wormopolis on Jul 14, 2012 17:35:48 GMT -8
<script type="text/javascript"> <!-- // Temporary text in text areas.. // a Todge code
if(document.postForm && !location.href.match(/thread=/)) {
var rules = "If this is a request to mod someone else's code, please create a new thread in the \"other code support\" board. If you are wanting a change to one of my codes, you can reply to the thread the code is in or post in here (though I prefer it be in that code's thread).";
var ruleColor = 'AAAAAA';
var ta = document.getElementsByTagName('textarea'); for(t=0; t<ta.length; t++) { if(ta[t].name == 'message' && ta[t].value.length == 0) { ta[t].style.color = ruleColor; ta[t].value = rules; break; }}} // --> </script>
|
|
|
Post by Dragon on Jul 14, 2012 17:48:08 GMT -8
Interesting code, but it doesn't work. Overcomplicated even if it does work; want a simple area to paste in the content I want to auto appear, and only show that under the creation post of the the thread/1st post.
It's also intended for replies, not 1st post.
|
|
|
Post by Wormopolis on Jul 14, 2012 18:55:33 GMT -8
no it shouldnt be on replies. Im using it here on this site. it doesnt run on replies - only on new threads.
and its purpose is to auto fill the textarea with content.
|
|
|
Post by Dragon on Jul 14, 2012 19:44:11 GMT -8
It said under todges post where he made the code that its meant for replies. Either way, it's not working for me when I tried it a few times.
|
|
|
Post by Wormopolis on Jul 14, 2012 21:28:38 GMT -8
that isnt from his post. I changed it.
do you see in on my site when you create a new thread?
|
|
|
Post by Dragon on Jul 14, 2012 22:53:18 GMT -8
That?
Ah, I see. That doesn't work though, the text simply goes away the moment you click inside the text box.
|
|
|
Post by Wormopolis on Jul 14, 2012 23:35:02 GMT -8
mine does. the one I posted shouldnt
|
|
|
Post by Dragon on Jul 14, 2012 23:51:20 GMT -8
When I tested it though, the text never even showed up.
|
|
|
Post by Dragon on Jul 14, 2012 23:56:47 GMT -8
Ah now it shows up. I don't suppose there's a way to make the color the same as regular text?
It shows up as text for regular messages (in the funky color I don't like), if I put in a UBBC table like above then nothing shows at all.
|
|
|
Post by Dragon on Jul 15, 2012 0:01:26 GMT -8
Pardon my last, but it does accept a ubbc table, however only in this format: Not in the finished product like this: [#1] [#] | [atrb=style,background-image:url(MYTABLEBG); width:700,bTable] [#5] - minutes - Summary: [scrolly:w(310),sy] [/scrolly] External links:
|
[#2]
|
|
|
Post by Dragon on Jul 15, 2012 0:03:20 GMT -8
I do believe I see the problem; I can put this in: [#1] [#] | [atrb=style,background-image:url(MYTABLEBG); width:700,bTable][#5] - minutes - Summary: [scrolly:w(310),sy] [/scrolly]External links: |
[#2] However, it's the spaces, the line breaks that are causing the issue. If I add it on with them then the entire thing doesn't show.
|
|
|
Post by Wormopolis on Jul 15, 2012 0:07:41 GMT -8
use "\n" for line breaks
|
|