Changeset 24609


Ignore:
Timestamp:
09/24/13 18:40:00 (6 years ago)
Author:
mistic100
Message:

search form redirecting to photos comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/coa_comments_page.php

    r24545 r24609  
    2929//                        comments on albums page                          | 
    3030// +-----------------------------------------------------------------------+ 
    31  if ( isset($_GET['display_mode']) and $_GET['display_mode'] == 'albums' )  
     31if ( isset($_GET['display_mode']) and $_GET['display_mode'] == 'albums' )  
    3232{ 
    3333  include_once(COA_PATH.'include/functions_comment.inc.php'); // custom functions 
     
    342342   
    343343  function coa_change_comments_list($content, &$smarty) { 
    344     $search = '<a href="{$comment.U_PICTURE}">'; 
    345     $replacement = $search.'{$comment.ALT}<br/>'; 
     344    $search[0] = '<a href="{$comment.U_PICTURE}">'; 
     345    $replacement[0] = $search[0].'{$comment.ALT}<br/>'; 
     346    $search[1] = '<input type="submit"'; 
     347    $replacement[1] = '<input type=hidden name=display_mode value=albums>'.$search[1]; 
    346348    return str_replace($search, $replacement, $content); 
    347349  } 
Note: See TracChangeset for help on using the changeset viewer.