Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 18
Newbie
Newbie
Joined: Jan 2003
Posts: 18
The lines in blue were copied from newreply.tmpl and added to [:"blue"]editpost.tmpl[/] (and to editpost_nopoll.tmpl). With these extra lines, the drop down box "Make post" and the four options [using UBBCode/using HTML/using HTML and UBBCode/without using HTML/UBBCode], which are available for new posts, are now available when editing a post. This allows html to be inserted, when a post is edited, even if it's not in the original post.

<tr class="lighttable">
<td>
{$ubbt_lang['SUBJECT_TEXT']}
<br />
<input type="text" name="Subject" value="$Subject" maxlength="{$config['subjectlength']}" class="formboxes" size="60" />
$iconselect
[:"blue"]$markupselect
Edit post<br /><select name="convert" class="formboxes"><option value="markup" selected="selected">using UBBCode</option><option value="html">using HTML</option><option value="both">using HTML and UBBCode</option><option value="none">without UBBCode/HTML</option></select><br /><br />[/]
{$ubbt_lang['POST_TEXT']}
<br />
<textarea cols="$TextCols" rows="$TextRows" name="Body" class="formboxes" onkeyup="storeCaret(this);" onclick="storeCaret(this);">$Body</textarea>
$instant_ubbcode
<br />

This works when I edit a post and choose "using HTML and UBB code" from the drop down box, but fails when a mod uses it, or a member uses it (mods and members can see the drop-down box on the edit screen, but it doesn't "take", the post is still in ubb mode). What have I done wrong - do I need to add something else to editpost.tmpl, so that the drop-down box "takes" for mods and members?
Our board is www.funtrivia.com/forums running v6.5b4

with thanks, from downhere!
gt

Sponsored Links
Entire Thread
Subject Posted By Posted
insert html into ubb posts via editpost gtho4 10/23/2004 4:24 PM
Re: insert html into ubb posts via editpost Medar 10/23/2004 4:38 PM
Re: insert html into ubb posts via editpost gtho4 10/23/2004 5:01 PM
Re: insert html into ubb posts via editpost JoshPet 10/23/2004 7:46 PM
Re: insert html into ubb posts via editpost Twisty 10/23/2004 8:43 PM
Re: insert html into ubb posts via editpost SG_dup1 10/24/2004 12:48 AM
Re: insert html into ubb posts via editpost gtho4 10/24/2004 2:13 AM
Re: insert html into ubb posts via editpost Twisty 10/24/2004 9:30 AM
Re: insert html into ubb posts via editpost JoshPet 10/24/2004 9:46 AM
Re: insert html into ubb posts via editpost Twisty 10/24/2004 10:12 AM
Re: insert html into ubb posts via editpost gtho4 10/24/2004 2:51 PM
Re: insert html into ubb posts via editpost ChAoS_dup1 10/24/2004 6:49 PM
Re: insert html into ubb posts via editpost JoshPet 10/24/2004 8:52 PM
Re: insert html into ubb posts via editpost ChAoS_dup1 10/24/2004 9:04 PM
Re: insert html into ubb posts via editpost gtho4 10/25/2004 2:13 PM
Re: insert html into ubb posts via editpost tethys 01/17/2005 9:16 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,156
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 18578
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 6
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)