Active
Project:
Affiliates
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2010 at 15:00 UTC
Updated:
6 Dec 2010 at 15:00 UTC
The Textarea could be improved with an autoselect on click a nowarp and an readonly attributes.
I also added wrapping comment marks.
This is my modified code in affiliates.module starting in line 1060:
...
$output .= "<textarea rows=\"3\" cols=\"50\" onclick=\"this.select()\" wrap=\"off\" readonly=\"readonly\" style=\"font-size:10px;\";>";
$output .= "<!-- START BANNER " . strtoupper($row->label) . " -->\n";
...
$output .= "</a>";
$output .= "\n<!-- END BANNER " . strtoupper($row->label) . " -->";
$output .= "</textarea><br/>\n";
...
The rendered textarea would look like this:
<!-- START BANNER LABEL -->
<a href=".......
<!-- END BANNER LABEL -->
3 lines with an horizontal scrollbar, not editable and auto selecting the whole text when clicking into the textarea box wrapped with START/END comments