Results 1 to 2 of 2

Thread: Description Text lost on Preview

  1. #1

    Default Description Text lost on Preview

    When previewing a link that has errors, the changes are lost.

    Steps to reproduce
    1. http://www.vbadvanced.com/links/addlink.php?c=0
    2. Enter some URL, select a category, click Continue
    3. In the following From, clear the input field 'Web Site Name' (or leave empty required custom fields, etc.)
    4. Enter some lengthy description text
    5. Click 'Preview'


    => The description text is lost, you are back at step 2)

    This should not happen.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Thank you for pointing this out. I've just applied the fix to the links/addlink.php file in the download package here, so if you will download the files again and update that file on your server, that should take care of the issue.
    Or if you would rather apply the fix manually, look in the file for this code:
    PHP Code:
        // ##### Errors from initial submit link page
        
    if (!empty($errors) AND $_POST['do'] == 'addlink' AND !$haderrors)
        {
            
    $_REQUEST['do'] = 'newlink';

            require_once(
    DIR '/includes/functions_newpost.php');
            
    $linkerrors construct_errors($errors);
        } 
    And repalce with this:
    PHP Code:
        // ##### Errors from initial submit link page
        
    if (!empty($errors) AND $_POST['do'] == 'addlink' AND !$haderrors)
        {
            if (!
    $vbulletin->GPC['preview'])
            {
                
    $_REQUEST['do'] = 'newlink';
            }

            require_once(
    DIR '/includes/functions_newpost.php');
            
    $linkerrors construct_errors($errors);
        } 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. preview on CMPS
    By Amir M in forum Troubleshooting & Problems
    Replies: 7
    Last Post: 06-18-2008, 06:22 PM
  2. Strip images/bbocde from preview text
    By Webnower in forum "How Do I..." Questions
    Replies: 1
    Last Post: 04-02-2008, 03:02 PM
  3. What's New and Preview
    By Lionel in forum Troubleshooting & Problems
    Replies: 4
    Last Post: 08-10-2007, 06:33 PM
  4. Recent threads text preview
    By momlwt in forum "How Do I..." Questions
    Replies: 1
    Last Post: 02-21-2006, 10:36 PM
  5. Replies: 0
    Last Post: 11-18-2004, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •