Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    2
    Member #
    32685
    I am new to Applying Typographic and Page Layout Elements to Dynamic Data.

    I have used this code - <p><?php echo preg_replace('/[\r\n]+/', '</p><p>', $row_rs_AZ_Products_Detail_pg['ItemLongDesc']); ?></p>

    to insert the paragraphs generated below from my database. The paragraphs are separated perfectly but I need to create a list formate of the INFORMATION NEEDED bullet or numbered in the middle of the paragraphs. I was instructed to place this code - p {
    margin: 0 0 0.25em 0;
    }
    into the page but I am not sure how to do this. Can anyone help me with this or suggest something better? Your assistance would be greatly appreciated.
    Data output:
    Make someone special feel special with a Customized and Personalized full color Autograph Photo Football Sports Ball. Before clicking the Add to Cart button to place your order, please cut and past the INFORMATION NEEDED below into your email and email to:

    INFORMATION NEEDED:
    TEXT ABOVE PHOTO - 1 Line Recommended [Type your text here]
    CENTER PHOTO OR LOGO - (attach jpeg format image)
    TEXT BELOW PHOTO - 1 Line Recommended [Type your text here]
    TEAM COLORS - [Type your colors here]
    YOUR CONTACT PHONE - [Type your text here]
    YOUR EMAIL ADDRESS - [ [Type your text here]
    (Optional) MASCOT NAME - [Type your text here]
    And/or MASCOT LOGO (attach jpeg format image)
    YOUR IN HAND DATE? - [Type your date here]

    IMPORTANT - Your final layout proof will be approved by YOU before imprinting and shipment. *All personal information will remain confidential and will not be sold.

    QUESTIONS? Email

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Are you generating a list, or a bunch of paragraphs? There's a big difference.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Aug 2012
    Posts
    2
    Member #
    32685
    Hi Ronald,

    I have a bunch of paragraphs with a list INFORMATION NEEDED: smack in the middle of the paragraphs.

    See above.

    Thanks,
    Tony Di

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    Is it possible to show us the whole script that is dynamically displaying the paragraphs?

    When you post it, but it between the [ php ] and [ /php ] brackets (without those spaces).


  6. #5
    Senior Member Ganners's Avatar
    Join Date
    Feb 2011
    Location
    United Kingdom
    Posts
    415
    Member #
    27007
    Liked
    92 times
    You'll want to say if there are two \r\n, so match /[[:alnum:]\-\_\s\!\?\.][\r\n]{2}/ then that will wrap in P tags. If you match /[a-zA-Z0-9\-\_\s\!\?\.]+[\r\n]/ then wrap in <li>. If you match /[\r\n\]{2}<li>[a-zA-Z0-9<>\/\-\_\s\!\?\.\r\n]<\/li>[\r\n]{2}/ then wrap it in <ul></ul> I guess. Seperate them all out into different statements
    Mark Gannaway Software Developer

    Recent Experiments
    - Backpropogation Neural Network language solving (http://ann.ganners.co.uk/)
    - Animated image to ASCII (http://google.ganners.co.uk/)
    - 3D Paper Characters (http://cybergame.ganners.co.uk/)
    - Anagram solving (http://roflol.co.uk/)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:32 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com