Changeset 11505 for extensions
- Timestamp:
- Jun 24, 2011, 10:14:33 PM (13 years ago)
- Location:
- extensions/Copyrights
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Copyrights/TODO
r11423 r11505 11 11 - If you create a new copyright with a name that's already used 12 12 - Description doesnt show with the copyright info (on the admin page) 13 - The warning triangle saying our plugin does not seem compatible - no clue 13 - The warning triangle saying our plugin does not seem compatible 14 - Cannot create a new copyright??? -
extensions/Copyrights/batch_single.php
r11488 r11505 2 2 3 3 // Add a prefilter 4 add_event_handler('loc_ begin_element_set_unit', 'set_prefilter_batch_single', 55 );4 add_event_handler('loc_end_element_set_unit', 'set_prefilter_batch_single', 55 ); 5 5 6 6 // Change the variables used by the function that changes the template … … 15 15 function copyrights_batch_single($content, &$smarty) 16 16 { 17 $search = '#<tr id="datecreate">#';17 $search = "#<td><strong>{'Creation date'#"; // Not ideal, but ok for now :) 18 18 19 $replacement = ' 20 <tr id="Copyrights_name"> 21 <tr id="datecreate">'; 19 // We use the <tr> from the Creation date, and give them a new <tr> 20 $replacement = '<td><strong>DWO TESTJE</strong></td> 21 <td> 22 DWO TESTJE 23 </td> 24 </tr> 25 26 <tr> 27 <td><strong>{\'Creation date\''; 22 28 23 29 return preg_replace($search, $replacement, $content); 30 31 // Dit is een interresant testje - deze functie word dus een aantal keren (3) aangeroepen, 32 // en pas de laatste keer is bevat $content meer dan een aantal enters... 33 //return $content.'<div id="dwo_test" style="display: none;">'.$content.'</div>'; 24 34 } 25 35 -
extensions/Copyrights/image.php
r11439 r11505 18 18 // Change the variables used by the function that changes the template 19 19 add_event_handler('loc_begin_picture', 'copyrights_add_vars_to_template'); 20 21 // The big question is - WHY THIS WAY!!!22 20 23 21 function copyrights_set_prefilter_add_to_pic_info() … … 67 65 ;'; 68 66 $result = pwg_query($query); 69 $row = mysql_fetch_array($result); 70 //if(count($row) > 0) 71 //{ 72 $name = $row['name']; 73 $url = $row['url']; 74 //} 67 $row = pwg_db_fetch_row($result); 68 if(count($row) > 0) { 69 $name = $row[0]; 70 $url = $row[1]; 71 } 72 else { 73 $name = ''; 74 $url = ''; 75 } 75 76 76 77 // Sending data to the template
Note: See TracChangeset
for help on using the changeset viewer.