XOOPS

How to have sizeable text areas in Xoops 2.0 and Xoops 2.2

hervet  21-Nov-2005 18:50 7359 Reads   3 Comment(s) 
Tests
I have successfully tested this modification with the News module (1.4x) and with all the text
areas avaiblable in Xoops like for example the main preferences or the comments.
I have also successfully used the following browsers with the hack :
Mozilla 1.7.12, Internet Explorer 6, Opera 8.5, Firefox 1.0.7, Netscape 8.0.3.3, Konqueror

There are two versions of this hack, one for the Xoops 2.0 series and one for the Xoops 2.2 series.
You will find the links to download the hacks at the end of this article.
The hacks were made with Xoops 2.0.13.2 and Xoops 2.2.3

All you have to do is to download the files and to send them to your website.


If you have problems with this hack
It's possible that this hack does not runs with your website (because of the theme and the style sheet).
Quickly (for experts), in all the cases (Xoops 2.0 or 2.2), find the style sheets files used by Xoops
and modify the textarea's style by replacing width with min-width

In details :
For Xoops 2.0.x and for the admin's part of your website, edit the file called
/xoops/modules/system/style.css and find a line wich begins (or contains) textarea
then, in this line, search for width: and replace it with min-width
Here is an example.
Before :
Quote:

textarea { border: #000000 1px solid; width: 430px; font: 11px verdana, arial, helvetica, sans-serif;}

after :
Quote:

textarea { border: #000000 1px solid; min-width: 430px; font: 11px verdana, arial, helvetica, sans-serif;}


For Xoops 2.0.x and for the user side of your website, in your theme's directory edit all
the css files and use the same process as above (find texarea and width and replace
it with min-width).


For Xoops 2.2.3 and for the admin's part and for the user part of your website, edit the file called
/xoops/themes/mytheme/css/style.css (replace mytheme with your theme) and find a line wich begins (or contains)
textarea then, in this line, search for width: and replace it with min-width
Here is an example.
Before :
Quote:

textarea { border: #000000 1px solid; width: 430px; font: 11px verdana, arial, helvetica, sans-serif;}

after :
Quote:

textarea { border: #000000 1px solid; min-width: 430px; font: 11px verdana, arial, helvetica, sans-serif;}



Discuss of this hack
You can discuss of this hack in this forum.
Use it to report problems or suggestions.


Download it
Link to the complete hack for Xoops 2.0.13.2
Link to the complete hack for Xoops 2.2.3

Bye,
Hervé
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

292 user(s) are online (3 user(s) are browsing Publisher)


Members: 0


Guests: 292


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories