Changeset 263

Show
Ignore:
Timestamp:
03/08/08 21:30:04 (9 months ago)
Author:
beni
Message:

bookmark description field changed to textarea
bug in bookmarklet removed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bookmarks/trunk/lib/bookmarks_posts_edit.php

    r249 r263  
    4242$title = (empty($post->title)) ? $post_b->title : $post->title; 
    4343$url_input_field = "<input type=\"text\" name=\"edit_bookmark_post\" value=\"".htmlspecialchars($post_b->url, ENT_COMPAT, 'utf-8')."\" style=\"width: 95%\" id=\"edit_bookmark_post\" readonly />"; 
    44 $description_input_field = "<input type=\"text\" name=\"edit_bookmark_desc\" value=\"".htmlspecialchars($post->description, ENT_COMPAT, 'utf-8')."\" style=\"width: 95%\" id=\"edit_bookmark_desc\" maxlength=\"80\" />"; 
     44$description_input_field = "<textarea name=\"edit_bookmark_desc\" style=\"width: 95%; height: 100px\" />".htmlspecialchars($post->description, ENT_COMPAT, 'utf-8')."</textarea>"; 
    4545 
    4646        $postTitle = "<a href=\"javascript:changeVisibility('1', '$url_img', '')\" ><img id=\"img1\" src=\"".$url_img."minus.gif\" border=\"0\" name=\"close\"> $postTitle</a>"; 
     
    6262$title = html_entity_decode($title, ENT_COMPAT, 'utf-8'); 
    6363 
    64 $body = <<< END 
     64$body = <<<END 
    6565 
    6666<form method="post" name="elggform" action="{$CFG->wwwroot}{$username}/bookmarks/{$post->ident}.html" onsubmit="return keywordsAreSet('edit_bookmark_keywords');"> 
     
    6969END; 
    7070 
    71 $body .= <<< END 
     71$body .= <<<END 
    7272    <script language="JavaScript" type="text/javascript"> 
    7373    <!-- 
     
    127127     
    128128    $js_keyword_message = __gettext("You must set at least one key word for your bookmark."); 
    129     $body .= <<< END 
     129    $body .= <<<END 
    130130    <p> 
    131131        <input type="hidden" name="action" value="bookmarks:post:edit" /> 
  • bookmarks/trunk/lib/bookmarks_subscriptions.php

    r249 r263  
    4949    $keywordDesc = __gettext("Keywords commonly referred to as 'Tags' are words that represent the bookmark you are going to save. This will make it easier for others to search and find your posting."); // gettext variable 
    5050    $accessRes = __gettext("Access restrictions:"); // gettext variable 
    51         $description_input_field = "<input type=\"text\" name=\"new_bookmark_desc\" value=\"".htmlspecialchars(stripslashes($desc), ENT_COMPAT, 'utf-8')."\" style=\"width: 95%\" id=\"new_bookmark_desc\" maxlength=\"80\" />"; 
     51        $description_input_field = "<textarea name=\"new_bookmark_desc\" style=\"width: 95%; height: 100px\" />".htmlspecialchars(stripslashes($desc), ENT_COMPAT, 'utf-8')."</textarea>"; 
    5252         
    5353        $redirect = url . user_info('username', $page_owner) . "/bookmarks/"; 
     
    200200        $acc_input = str_replace("id=\"img26\"", "id=\"img14\"", $acc_input); 
    201201        $acc_input = str_replace("id=\"element26\"", "id=\"element14\"", $acc_input); 
     202 
    202203 
    203204 
  • bookmarks/trunk/remotepost.php

    r260 r263  
    4646 $uri = optional_param("url", ""); 
    4747 $doc_title = optional_param("title", ""); 
     48 $doc_title = urlencode($doc_title); 
    4849 $uri_encode = urlencode($uri); 
    4950 global $CFG; 
  • bookmarks/trunk/remotepost2.php

    r260 r263  
    9393 $view = array(); 
    9494  
    95   
    9695 // Ajax call 
    9796 $logMeOut = optional_param("logout", 0, PARAM_INT); 
     
    154153END; 
    155154 
     155 
    156156 // ajax tagsuggest plugin 
    157157 if(plugin_is_loaded('tagsuggest')) 
     
    181181                    $keywordDesc = __gettext("Keywords commonly referred to as 'Tags' are words that represent the bookmark you are going to save. This will make it easier for others to search and find your posting."); // gettext variable 
    182182                    $accessRes = __gettext("Access restrictions:"); // gettext variable 
    183                         $description_input_field = "<input type=\"text\" name=\"new_bookmark_desc\" value=\"\" style=\"width: 95%\" id=\"new_bookmark_desc\" maxlength=\"80\" />"; 
     183                        $description_input_field = "<textarea name=\"new_bookmark_desc\" style=\"width: 95%; height: 100px\" /></textarea>"; 
    184184         
    185185                    $body1 = "<form action=\"\" method=\"post\" onsubmit=\"return keywordsAreSet('new_bookmark_keywords');\">";