Customizing SMF > SMF Coding Discussion
Filled message body
ѕησω:
Got it working, thanks :D
Labradoodle-360:
Great to hear! If your issue is now resolved, would you please mark your topic as solved? :P
ѕησω:
I'm back :P
It's working great for a booking system (After editing the text strings of course xD), but I've noticed that whenever somebody goes to edit a booking incase they got something wrong, it's duplicating whats place when you create a new topic.
Was hoping you knew a hack to make it apply to new topics only? :)
Labradoodle-360:
Wrap whatever you want with:
--- Code: ---if (!isset($_GET['last_msg']))
--- End code ---
ѕησω:
Doesn't seem to be working, maybe because the hacks I made a few months ago had to be redone to work.
This is how my text area looks, and yes, it does look ******ed but it's how I got it too work.
--- Code: ---<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '[b]Name[/b] -
[b]E-mail[/b] -
[b]Contact No.[/b] -
[b]Own Device[/b] -
[b]Sales Order No.[/b] - ', isset($_REQUEST['predefined_body']) ? "[b]Name[/b] - \n[b]Location[/b] -" : '', '</textarea>
--- End code ---
As stupid as it looks, it actually works like that lol.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version