Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: digger on July 28, 2009, 10:27:11 PM

Title: TextareaResizer
Post by: digger on July 28, 2009, 10:27:11 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1979)

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
Title: Re: TextareaResizer
Post by: gbsothere on July 28, 2009, 10:36:45 PM
Sweet!   :D
Title: Re: TextareaResizer
Post by: forumuser on August 04, 2009, 09:43:19 PM
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
Title: Re: TextareaResizer
Post by: TurtleKicker 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.

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.
Title: Re: TextareaResizer
Post by: digger on August 05, 2009, 01:49:13 PM
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?
Title: Re: TextareaResizer
Post by: TurtleKicker 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.
Title: Re: TextareaResizer
Post by: digger on August 05, 2009, 02:23:40 PM
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 ?
Title: Re: TextareaResizer
Post by: TurtleKicker on August 05, 2009, 02:29:16 PM
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
Title: Re: TextareaResizer
Post by: Arantor on August 05, 2009, 09:37:23 PM
Nice mod. I should confirm that in some browsers (Safari, Opera, Chrome) this mod is actually unnecessary.
Title: Re: TextareaResizer
Post by: 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 :))
Title: Re: TextareaResizer
Post by: digger on October 27, 2009, 06:07:00 PM
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?
Title: Re: TextareaResizer
Post by: Arantor on October 27, 2009, 07:19:11 PM
Also, what browser are you using?
Title: Re: TextareaResizer
Post by: 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
Title: Re: TextareaResizer
Post by: digger on October 27, 2009, 11:26:35 PM
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.
Title: Re: TextareaResizer
Post by: tommybishop on October 27, 2009, 11:59:01 PM
Info sent
Title: Re: TextareaResizer
Post by: 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?
Title: Re: TextareaResizer
Post by: Autumn13 on November 27, 2009, 08:57:01 PM
I installed this, got it working, but then realized my smilies were no longer clickable! Any help with that?
Title: Re: TextareaResizer
Post by: Kamali on November 30, 2009, 08:37:16 AM
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?
Title: Re: TextareaResizer
Post by: 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.

Title: Re: TextareaResizer
Post by: digger on November 17, 2010, 03:29:00 PM
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.
Title: Re: TextareaResizer
Post by: flashsteam on November 17, 2010, 03:56:45 PM
Thanks Digger,

So on that page where is says-
./Themes/default/index.template.php

I should be at-
./Themes/custom theme/index.template.php

and make the changes that way, working on this now




Title: Re: TextareaResizer
Post by: flashsteam on November 17, 2010, 04:31:18 PM
When I look at my custom theme file, Im not seeing all the files that are in the default theme file. Im having a hard time with this. I thought if I made my custom theme "the default" then the files in the default theme would have been mofified when I installed the mod.

Im kinda scared to mess around with these files. the parse instructions, im not finding the php entrys in the actual files in the default theme folder, im uncertian if im doing the right thing. I have made changes to the script before (simple things) but this may be beyond me. I need more guidence.

Title: Re: TextareaResizer
Post by: flashsteam on November 17, 2010, 04:53:09 PM
Ok, I took a deep breath.

Upon closer examination the default theme file has the files in the parse instructions. Its weird since most mods will go right in without problems.

My custom theme file only has "./Themes/default/index.template.php"

but does not have any of the other files in the parse instructions such as

"./Themes/default/Post.template.php"
"./Themes/default/Display.template.php"
"./Themes/default/style.css"

It appears the default theme has all the code in the parse instructions...

Should I remove and re-install the mod? to see if that works. Most all the mods I have installed work fine with my custom theme, this is leaving me scratching my head.



Title: Re: TextareaResizer
Post by: flashsteam on November 24, 2010, 11:03:12 AM
I got some help with this from a friend.

QuotePlease check if the problem with the textarearesizer is still present :). I
think you modified only the default theme, not flashsteam theme too.
FYI every time you have to change a file from the default theme, you must
change the same file in the desired theme folder. The file from the default
theme is always overwrite if the file exists in the current theme (in our
case in flashsteam folder).

I figured this would help others who are new to SMF like I am.
Title: Re: TextareaResizer
Post by: Maxtor on February 18, 2011, 03:37:07 PM
does it work with custom themes??
Title: Re: TextareaResizer
Post by: digger on February 18, 2011, 05:45:00 PM
Quote from: maxtor on February 18, 2011, 03:37:07 PM
does it work with custom themes??
http://www.simplemachines.org/community/index.php?topic=327363.msg2853732#msg2853732