TinyPortal

Development => Support => Topic started by: winky100 on August 12, 2010, 08:49:31 PM

Title: Small suggestion for the HTML article page...
Post by: winky100 on August 12, 2010, 08:49:31 PM
I think it would be good to put a "Save" button at the top of the HTML WYSIWYG editor page. Instead of having to scroll all the way to the bottom to Save it.
Title: Re: Small suggestion for the HTML article page...
Post by: ZarPrime on August 13, 2010, 02:11:28 AM
Perhaps but won't likely happen.  Just hit your "Page Down" key on your keyboard a couple of times and you're there.

ZarPrime
Title: Re: Small suggestion for the HTML article page...
Post by: IchBin on August 13, 2010, 04:37:14 PM
Quote from: winky100 on August 12, 2010, 08:49:31 PM
I think it would be good to put a "Save" button at the top of the HTML WYSIWYG editor page. Instead of having to scroll all the way to the bottom to Save it.

I've thought this a good idea too! Maybe I'll see if I can't sneak that into the code while Bloc isn't looking. :D
Title: Re: Small suggestion for the HTML article page...
Post by: IchBin on August 14, 2010, 01:19:33 AM
It was actually simple enough to find that I've added it to mine:

Open Themes/default/TPortalAdmin.template.php and find these lines on about line # 3610:
<tr class="windowbg2">
                        <td class="left" valign="top" align="right" width="20%">
                            ' , $mg['id']==0 ? '' : '<a href="'.$scripturl.'?page='.$mg['id'].';tpreview">['.$txt['tp-preview'].']</a>' , $txt['tp-title'] , ':
                        </td>
                        <td valign="top" width="80%"><input style="width: 92%;" name="tp_article_subject" type="text" value="'.htmlspecialchars_decode($mg['subject']).'"></td>
                    </tr>


Add before those lines this:
                    <tr class="windowbg2">
                        <td><input type="submit" value="Save" name="Save"></td>
                        <td></td>
                    </tr>


That should add a submit button right before the preview link when editing an article.
Title: Re: Small suggestion for the HTML article page...
Post by: ZarPrime on August 14, 2010, 01:59:57 AM
@Ichbin ~  O0

ZarPrime
Title: Re: Small suggestion for the HTML article page...
Post by: winky100 on August 14, 2010, 03:38:43 PM
Excellent work!