TextareaResizer

Started by digger, July 28, 2009, 10:27:11 PM

Previous topic - Next topic

digger

Link to Mod

Features: This mod makes it possible for SMF1 to resize the textarea in Reply, QuickReply, QuickEdit and PM. (Similar to the functionality SMF2)

Mod uses textareaResizer.js script.
// textareaResizer.js
// The script dynamically changes height of a textarea (actually any HTML element)
// (c) 2008 Leonid Shevtsov (http://leonid.shevtsov.me)
// Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License 

History:
1.1. QuickEdit support added.
===

GitHub repository: https://github.com/realdigger/SMF-TextareaResizer

gbsothere

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

forumuser

#2
Excellent Mod!!!

Installed where other SMF resizers failed due to conflicts with other mods. Plus I love the simple click and drag.

Again, Excellent Mod!!!

I did make some minor changes to my file, './Themes/default/style.css' (View the attachment below.)

I reduced the height to 5px for a sleeker look
Changed the background color to match the scroll button (Firefox)
Added 2px padding to make the control the same width as the reply window (4px if no side borders)
Added a blue gray border to make the control appear as a natural extension off the 'default' window.



/* TextareaResizer */
div.text_editor div {
  background: #B1BBC5 url(images/textareaResizer.gif) no-repeat;
  background-position: center;
  height: 5px;
  width: 96%;
  font-size: .01em;
  cursor: s-resize;
  padding-left: 2px;
  border-right: 1px solid #7F9DB9 ;
  border-left: 1px solid #7F9DB9 ;
  border-bottom: 1px solid #7F9DB9;



I also did a slight edit on the 'textareaResizer.gif'.  (Also attached below.)
The current one works fine as well.

Thanks again digger,
forumuser

TurtleKicker

Installed without error on my SMF 1.1.10 forum, but doesn't work. Must conflict with another mod. I have a lot.

1. Ad Managment 2.3
2. Anti-Spam Verification Questions 1.02
3. Auto Merge Double Post 1.2
4. EmailValidator 1.0
5. Global Headers Footers 1.4.1
6. Google Member Map 1.0 beta 4
7. BBC-Google for SMF 1.1.2 (ver. 2.5.2) 2.5.2
8. Google Talk Field 1.0.6
9. Last Active On MemberList 1.01
10. New In Topic View 1.1
11. No Single Character Serach 1.0.5
12. Off-Topic_BBC_Tag 1.1
13. SMF Staff Page 1.6
14. SMF Trader System 1.2
15. Strike Out Locked Topics 1.0
16. The Rules 1.2
17. Treasury 2.32
18. Unread and Replies Tabs in Main Menu 3.0
19. vReportBoard Mod 1.04
20. Bookmarks 2.2.1
21. Prettier_Quotes 1.12
22. Spoiler Tag 0.6
23. Signature Settings Mod 1.1
24. Anti Spam! 1.1
25. MessagePreviewOnHover 1.7
26. PM On Registration 1.0.2
27. AJAX Instant Quick Reply 1.0.1
28. Aeva ~ Auto-Embed Video & Audio 5.2.50
29. AjaxChat Integration 1.2.2
30. RSS Feed Icon 1.1
31. Quote Clear Line 1.0
32. SMFChess 1.1
33. EmailFlash 2.0
34. Message for your guests 0.1
35. AddThis Social Bookmarks 1.0
36. Enhanced Calendar 1.1
37. Report Icon Mod 1.0
38. SMF Poll Mod 1.2
39. CountDown BBC 1.0
40. Space Between Posts 1.0
41. XMPP/Jabber Mod 0.1
42. Enhanced Forum Statistics 1.0
43. Monthly Statistics on Profile 1.0
44. Integrate Lightbox 1.6
45. Enhanced Profile Header 1.0
46. SMF 1.0.16 / 1.1.8 Update 1.0
47. Auto Email Inactive Users 1.7
48. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0
49. Referrals Mod 2.2.6
50. TopicStarter Mod 1.3
51. Topics Started by a user v 0.1.3 bugfixed - By Yio - bugfixed by Jack van Dijk 0.1.3
52. Favicon 1.2
53. Caps_Lock_Detection_on_Login 1.1
54. Remove MySQL, PHP & W3C images to minimize footer size 1.2
55. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.0
56. Amazon Search 1.0
57. Custom Action Mod 2.04
58. Own Logo Links To Domain 1.0
59. Admin Ban Button in Post 1.1
60. Search Time Limitation 1.0
61. Custom Tab 1.2
62. Search Board and Topic texts 1.1
63. Users Online Today Mod 1.4.0
64. TextareaResizer 1.0


EDIT: Correction, it does work... but the resize bar graphic isn't appearing.

digger

Quote from: sremick on August 05, 2009, 12:09:43 PM
Installed without error on my SMF 1.1.10 forum, but doesn't work. Must conflict with another mod. I have a lot.

EDIT: Correction, it does work... but the resize bar graphic isn't appearing.

Are you using Default theme?

TurtleKicker


digger

Quote from: sremick on August 05, 2009, 01:55:48 PM
Quote from: digger on August 05, 2009, 01:49:13 PM
Are you using Default theme?

Yes I am.

Is there textareaResizer.gif in /Themes/default/images ?

TurtleKicker

Quote from: digger on August 05, 2009, 02:23:40 PM
Is there textareaResizer.gif in /Themes/default/images ?

Yes, and I just previewed it to make sure it's intact.

http://ninstation.com/Themes/default/images/textareaResizer.gif

Arantor

Nice mod. I should confirm that in some browsers (Safari, Opera, Chrome) this mod is actually unnecessary.

tommybishop

using 1.1.10. trying to install this mod on a theme without Post.Template.php or display.template.php..  I have read else where that the theme should revert back to the default for the files that are missing/not there.  You can see the textresizer.gif image, it just doesn't drag down.  Any help would be great.  thank you!

(if you need any further info from me let me know :))

digger

Quote from: tommybishop on October 27, 2009, 05:32:00 PM
using 1.1.10. trying to install this mod on a theme without Post.Template.php or display.template.php..  I have read else where that the theme should revert back to the default for the files that are missing/not there.  You can see the textresizer.gif image, it just doesn't drag down.  Any help would be great.  thank you!

(if you need any further info from me let me know :))

Did you try to empty browser cache?

Arantor

Also, what browser are you using?

tommybishop

@ digger - emptied cashe as you said, no effect.

@Arantor - Using Firefox and IE, that's what most of my members are using so that's what i test with.

Thank you for your help, I will be gratefully awaiting a response :D

digger

Quote from: tommybishop on October 27, 2009, 11:14:28 PM
@ digger - emptied cashe as you said, no effect.

@Arantor - Using Firefox and IE, that's what most of my members are using so that's what i test with.

Thank you for your help, I will be gratefully awaiting a response :D

Send me the link to your forum and login/pass of registered account.

tommybishop


Kamali

I uploaded this mod to packages and told it to install, but it says './Themes/default/Display.template.php  -  Test failed'.  Could anyone help me make it work, please?

Autumn13

I installed this, got it working, but then realized my smilies were no longer clickable! Any help with that?

Kamali

Quote from: Kamali on November 15, 2009, 06:52:06 AM
I uploaded this mod to packages and told it to install, but it says './Themes/default/Display.template.php  -  Test failed'.  Could anyone help me make it work, please?

Anybody?

flashsteam

I see this topic has been posted in for awhile, but giving this a shot anyway.

I really would like to use this mod, I have downloaded it and installed it that went fine, however im not using the default theme im using a custom theme, what would I have to do to get this mod to work for me.


digger

Quote from: flashsteam on November 17, 2010, 03:17:18 PM
I see this topic has been posted in for awhile, but giving this a shot anyway.

I really would like to use this mod, I have downloaded it and installed it that went fine, however im not using the default theme im using a custom theme, what would I have to do to get this mod to work for me.

See Manual Install Instructions here http://custom.simplemachines.org/mods/index.php?mod=1979 and make this changes for your theme.

Advertisement: