[SOLVED] Change size of 'xthread' checkbox ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #5
RE: [Update] Change size of 'xthread' checkbox ?
(03-02-2012 09:20 AM)leefish Wrote:  This thread may help :
http://mybbhacks.zingaburga.com/showthread.php?tid=940

Thanks much for the link !

Tried adding...
.checkbox{
display: inline;
padding:0;
height: 30px;
width: 30px;}
at...
/cache/themes/theme1/global.css

And adding... class=''checkbox" at...
/inc/xthreads/xt_updatehooks.php:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
if($tf['editable'] != XTHREADS_EDITABLE_REQ) {
$tfinput[$k] .= ' <label id="xtarmlabel_'.$tf['field'].'">
<input type="checkbox" class="checkbox" id="xtarm_'.$tf['field'].'" name="xtarm_'.$tf['field'].'" value="1"'.$rmcheck.' />'.$lang->xthreads_rmattach.'</label>';} 
else {
// javascript checkbox
$tfinput[$k] .= ' <label id="xtarmlabel_'.$tf['field'].'" style="display: none;">
<input type="checkbox" class="checkbox" id="xtarm_'.$tf['field'].'" name="xtarm_'.$tf['field'].'" value="1"'.$rmcheck.' />'.$lang->xthreads_replaceattach.'</label>';}
$tfinput[$k] .= '</div>';
$jsext .= '($("xtarm_'.$tf['field'].'").onclick = function() {var c=$("xtarm_'.$tf['field'].'").checked;
$("xtarow_'.$tf['field'].'").style.display = (c?"":"none");
$("xtaname_'.$tf['field'].'").style.textDecoration = (c?"line-through":"");
})();


But not change in textbox display... just not sure where (or maybe how? ) to edit code ?

Comments ?

Ps:  Also, cant remember (or seem to figure it out) if it is possible to add stylesheets at ACP or not ?


Thanks again for your help !
03-02-2012 11:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: [Update] Change size of 'xthread' checkbox ? - akm - 03-02-2012 11:01 AM

 Standard Tools
Forum Jump: