';
+ $secedit .= html_topbtn();
$secedit .= html_btn('secedit',$ID,'',
array('do' => 'edit',
'lines' => "$section",
@@ -115,12 +116,17 @@
$text = preg_replace_callback('##',
'html_secedit_button', $text);
}else{
- $text = preg_replace('##','',$text);
+ $text = preg_replace_callback('##','html_topbtn_div',$text);
}
return $text;
}
+function html_topbtn_div ()
+{
+ return '
'.html_topbtn().'
';
+}
+
/**
* Just the back to top button (in its own form)
*
Somewhere else i also rewrite:
$lang['btn_top'] = '['.$lang['btn_top'].']';
I use this with the monobook template, looks nice.
//6.7.2008 Peter//
>>Would be good to know what path you refer here. I did not find the right file or section or the file changed heavily in the meantime.
>>
>>//2011-02-18 Taggic//
====== Superseded ======
:?: Isn't this essentially superseded by the [[plugin:uparrow|Up Arrow plugin]]? --- //[[luis.machuca@gulix.cl|Luis Machuca Bezzaza]] 2009/09/21 19:37//
No, adding this code **automatically** generates a back_to_top link before headers
, , etc. All except for . \\
John 2009/11/4