Force text after reaching max length.

Hello

I use PHP MySQL

I have my allows you to fill out a section to their subject in their environments.  Now this offer works fine, but when the text is displayed on their profile page, I met an annoying problem. If a user arrived at maturity they use words and everything is fine, but some users are typing something like this "ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg".

now, I thought it would not be a problem but when it is posted on their page it looks like the included photo.

So, is their anyway to force the characters without end to break when they reach a certain number of characters or pixels?

Thank you

Use the PHP wordwrap() with the fourth argument is set to true.

Tags: Dreamweaver

Similar Questions

  • Max length for custom metadata.

    Hi all

    I have a custom metadata field select multi, I kept type Long text
    now, I'm not sure it will work for all cases, because each option's drop-down is more tank then 20 and there are many.

    Please let me where I can find the max length for the custom metadata to type text, long text, notes?

    Thank you
    -Yves

    Hi Yves,

    In the content of Webcenter 11 g:

    Text: varchar (30)
    Long text: Varchar (200)
    Memo: varchar (2000)

    Roman.

  • links don't open email or text after upgrade to 9.3, on the iPhone 6

    links don't open email or text after upgrade to 9.3, on the iPhone 6

    I must add, I have reset all settings and peripheral pedaled power

  • Error compiling FPGA-61332: the length of a line to < "file.vhdl" > is too long for xilinx 10.1. Length: < length > Max Length: 4150

    Hello

    When compiling a fairly basic FPGA VI, I get the following error:

    61332 error occurred in niFpgaCompileWorker_ProcessStatusPipe.vi:1<><>

    Possible reasons:

    LabVIEW FPGA: An unexpected error occurred with the build tools. You try to compile the FPGA VI again could solve the problem.

    The length of a line in "NiFpgaAG_0000002e_WhileLoop.vhd" is too long for xilinx 10.1. Length: 32845 Max length: 4150

    Departure time: 17:22:06
    End time: 17:22:12
    Total time: 00:00:06

    Apparently, the vhdl code generator OR forgot to add some CR + LF in the intermediate files. How to work around this bug?

    Kind regards

    Lukas

    Hi Lukas.

    When LabVIEW compiles a VI, the VI is converted into virtual hard disk to be compiled into a file bit by Xilinx.  As you have already understood, this error indicates that a line of code vhd had a length of 32 845 characters, which exceeds the maximum length of 4150 characters for the Xilinx 10.1.

    Although 32 845 characters is very long, it is possible that this is due to the codification of LabVIEW rather than a bug. Some common causes of this problem include large enums, a matrix, or clusters in the code.  Please check in your code.  If you have no luck, please attach a screenshot of the code.  I hope this helps!

    Kind regards

    Dayna P.

    Technical sales engineer

    National Instruments

  • analyzes XML leaving text after &amp;

    Hi all

    I am pasring an XML file using dom.

    Here is my code snippet

    DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
    DocumentBuilder builder = factory.newDocumentBuilder ();
    factory.setIgnoringComments (true);
    factory.setIgnoringElementContentWhitespace (true);
    factory.setExpandEntityReferences (false);
    factory.setCoalescing (true);
    factory.setValidating (false);
    Document document = builder.parse (in-Stream);
    vecData = new Vector (1, 1);
    Element rootElement = document.getDocumentElement ();
    rootElement.normalize ();

    I used getNodeValue() to retrieve the value of the node.

    The text I'm without the text after &...

    as if I have the value of the node as

    http://imypage.ashx?ImageUrl=http%3A%2f%2fecx.images-123%2fimages%2fI%2f51atrAxEVlL._SL480_.jpg&Widt...

    Can someone help me with this.

    Thank you best regards &,.

    Sachin

    I am getting the http://imypage.ashx?imageurl=http%3a%2f%2fecx.images-123%2fimages%2fI%2f51atrAxEVlL._SL480_.jpg value

    Hi all

    That was the problem with the dom parser...

    I used SAXParser and abel to read all the characters in the string...

  • Laptop battery does not load after reaching a certain point

    Original title: battery

    Load wonn t the battery of MY laptop after reaching a certain point (sometimes after reaching 96% or 98%). It's a few weeks I bought this laptop. What is wrong with him?

    Load wonn t the battery of MY laptop after reaching a certain point (sometimes after reaching 96% or 98%). It's a few weeks I bought this laptop. What is wrong with him?

    Remove and reinstall the battery and check...

    If the problem persists

    CHCK the battery capacity... May be a problem with the battery
    http://www.NirSoft.NET/utils/battery_information_view.html

    If there is a problem with the battery, you can contact the manufacture for help/assistance/guarantee

    Tips to save battery
    http://Windows.Microsoft.com/en-us/Windows-8/tips-save-battery-power

  • During the typing of text after paragraph 4, the text jumps the same block of text there. Not sure if it's because of a page break. Help, please

    During the typing of text after paragraph 4, the text jumps the same block of text there. Not sure if it's because of a page break. Help, please

    And make sure that you do not use the Enter key on the numeric keypad.

  • InDesign, deleting text after removing hyphenation

    Hi all! I encounter a weird problem where the text disappears in my document after I uncheck the "gap". I read on some other discussion here to look for a ' ^' character in the story editor, without success. I looked at also 'withdrawal and separation' and 'keep' Control Panel Options as well, everything is fine. Where should I look?

    Look at the history in story editor and examine the righ text after the indicator of excess. Either you have a string of words separated by nonbreaking spaces or a very long word that does not fit within the column width.

  • CC app manager update failed with error 50 code after reaching approximately 35%

    Try to update the app CC Manager. The update is still very slow (I have ATT DSL, lowest level) and I usually stop after an hour or two. Today I let it run and it failed with the error code 50 after reaching approximately 35%. Any ideas?

    Update my original post. I read through some of the suggestions I found in other threads to solve this problem, and it seems that this is a recurring problem. Many corrections have been suggested, some very convoluted, difficult and involved, including those who came to the customer support people.  I passed on those who, like this must be something simple. How Adobe managed to leave their own tour of software update in a persistent problem is beyond me and kind of defeats the object of the subscription. I then noticed that a simple fix has been proposed several times, so I tried.

    The user suggested fix that worked for me was:

    (1) restarted the computer (machine of i3 Asus Windows 7 for me) in Mode safe mode with networking. Connected to my separate Admin account just in case.

    2) started the creative cloud desktop application.

    (3) the app said it had to be updated. I hit the update button.

    (4) update started and proceeded slowly as he was in a lot of previous unsuccessful attempts (I have ATT DSL to the slower level, but it is not switched). In 30 minutes, the update succeeded.

    (5) restarted the computer in normal mode.

    (6) the creative cloud desktop application now has not said he should be updated, and I can update my other apps normally. Have not updated LR or PS again, but intend to try. If this fails, I can try to do in Mode safe mode with networking.

    So, it's been relatively painless and much much simpler than most of the other suggestions I've seen. Don't know if this will work for everyone, but I wanted to post the solution that worked for me. Thank you very much for users of 2 or 3 which had proposed this hotfix earlier (sorry, I did not write down your login, but threads can be found in search for creative cloud desktop update fails error code 50). Hope this saves some people a lot of time.

  • How to see what was the text after I changed it to outlines?

    How to see what was the text after I changed it to outlines?

    Hamish,

    You should always keep (a copy of) the work, you are about to destroy it. You can duplicate the layer with the direct Type and do what you have to do (after hiding the original).

    And you need to keep previous versions as backup.

    With only the type indicated, he is lost.

  • Can you display text after that you checked a box or not?

    Can you display text after that you checked a box or not?

    Ex:

    • Yes (please contact Bob x 3-1234) only want it to appear when you check the box)
    • NO.

    Sure. If you use a field (text field, button) to display the text, the script of the mouse to the top of the Yes box could be:

    getField("button1").display = event.target.value = "Yes"? Display.visible: display.hidden;

    Change "button1" to the actual name of the field and 'Yes' is the value of exports of the Yes box. You can use what you want, and you'll probably want to make the button read only as well.

  • Returns the Nested table Max length

    Hello

    I want to create a function that accepts a nested table / array as I / p and return the maximum length of the elements in the array.

    As if I was passing the table as arr('India','Mumbai','Kolkata','Pune'), this function should return the length max 7 (Kolkata).

    Can apply us the aggregation on the nested table function or is there an alternative?

    Kind regards
    Rakesh

    Hello

    Here's a possible solution:

    
    create or replace type tCharArray is table of varchar2(1000);
    
    create or replace function get_max_size(p_array tCharArray) return number
    is
      l_result number;
    begin
      select max(length(column_value))
      into l_result
      from table(p_array);
      return l_result;
    end;;  
    
    select get_max_size(tCharArray('abc', 'aaaaa')) from dual;
    

    Best regards
    Nikolai

  • Select max (length) - how to display the length of a group MAX

    Hello

    I have a table with the name of DVD and names of files on the DVD.
    I would like to know how to change this query to get another column, MAX_LENGHT, the MAXIMUM length of the name of FILE to a DVD of return
    This doesn't work request
    select DVD, FILENAME, (SELECT max(length(FILENAME)) / 2 + 4 FROM TABLE) AS MAX_LENGHT from TABLE
    DESIRED RESULT
    DVD    FILENAME     MAX LENGHT
    DVD1     Alina     8
    DVD1     Aidan     8
    DVD1     Aiden     8
    DVD1     Akira     8
    DVD1     Alex     8
    DVD1     Alyssa     8
    DVD1     Arianna     8
    DVD1     Ashley     8
    DVD1     Ava     8
    DVD1     Benjamin8
    DVD1     Bianca     8
    DVD1     Blake     8
    DVD1     Brandon     8
    DVD1     Brayden     8
    DVD1     Brayden     8
    DVD1     Brianna     8
    DVD1     Brielle     8
    DVD1     Brooklyn8
    DVD2     Dakota     11
    DVD2     Dalia     11
    DVD2     Daniel     11
    DVD2     Dante     11
    DVD2     David     11
    DVD2     Diego     11
    DVD2     Dingbang11
    DVD2     Dominic     11
    DVD2     Dylan     11
    DVD2     Chase     11
    DVD2     Chloe     11
    DVD2     Christopher     11
    DVD2     Claire     11
    DVD2     Cole     11
    DVD2     Connor     11
    Thank you

    Roseline

    You can use the analytic version of the function max:

    SELECT  DVD
    ,       FILENAME
    ,       MAX(LENGTH(FILENAME)) OVER (PARTITION BY DVD) AS MAX_LENGTH
    FROM    TABLE
    
  • Limit the length of the text to a fixed length

    I need to limit the length of a text fiield at some length to prevent packing. I can substr to a certain number of characters, but I use a proportional font (Arial), and the length of the string varies depending on the characters in the string.

    The field is the invoice number on a doc to check to RTF. If the field Bill encapsulates, it moves other objects on the control document and verify the cause of big problems printing.

    Is there a way to limit the length of a text field to an actual length printed on the document? Or prevent the area of packaging? IE just trunc it to a fixed length?

    Put the domain into a single table cell, select the table, right-click on it, choose Properties from the table in the menu, select the cell, click on the Options button, text Wrap option unceck.

  • Insert text after each table

    Hello

    I want to add 3 line breaks after every table in my document. So I want to convert tables in text (sorry, but it makes sense for reasons of export ;-)).

    Step 2 I had with: ' app.activeDocument.stories.everyItem (). tables.everyItem () .convertToText ("\t", "\r");

    But I can't find out how to place an insert-text with '\r\r\r' after each table (step 2).

    Thanks a lot for your help

    Hello

    One approach is to loop through the insertion points using the property storyOffset of the tables:

    // Get the array of tables' insertionPoints
    // ---
    var ips = app.activeDocument.stories.everyItem().tables.everyItem().storyOffset,
        i = ips.length;
    
    while( i-- )
        with( ips[i].insertionPoints.nextItem(ips[i]) )
            isValid && contents = '\r\r\r';
    

    @+

    Marc

Maybe you are looking for

  • DVD not working not not on Equium A300D - 13 X

    Hello I was hoping somone could give me some advice on my DVD driveon my laptop. When I press eject light flashes on the drive several times and still not eject. When I got the drive opened with a paper clip and put in a disk, nothing seems to happen

  • Portege 3490, to install new HDD with windows xp ready?

    My hard drive failed recently on my portege 3490. I bought a 20 GB seagate replacement hard drive. I installed Windows XP pro by connecting the drive (via adapter) to my office and ran the installation cd. I thought that I could then just mount the d

  • I need to change to El Capitan in Yosemite ASAP...

    Hi, I need to return to Yosemite after installation of El Capitan. Need to do this right now to make my camera works again in Lightroom. Thanks for any help that could solve my problem as soon as possible. /JQ

  • Particular suffix

    All of a sudden all of my icons are a .lnk suffix and when I click on one of them, appears a microsoft works logo and then a blank document of microsoft.  I can only access Internet Explorer by going to "Control Panel" and then to Navigator.  Any ide

  • Need help with the driver 64 bit, Win 7 for Photosmart C8180

    Hello. I downloaded the 64-bit driver for Windows 7, the Photosmart C8180 All-in-one. It shows the download link, the download for 64-bit file is the same file as the 32-bit file. However, I downloaded one that says that it is for the 64-bit Windows