File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed
Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1- ## Advanced-Sidebox 3.1.2
1+ ## Advanced-Sidebox 3.1.3
22
33<p align =" center " >
44 <img title =" Advanced Sidebox Logo " alt =" Advanced Sidebox Logo " src =" http://i.imgur.com/4QWLq5V.png " />
Original file line number Diff line number Diff line change 1515// for modules
1616define ('IN_ASB ' , true );
1717define ('ASB_MODULES_DIR ' , MYBB_ROOT . 'inc/plugins/asb/modules ' );
18- define ('ASB_VERSION ' , '3.1.2 ' );
18+ define ('ASB_VERSION ' , '3.1.3 ' );
1919
2020// some basic functions used everywhere
2121require_once MYBB_ROOT . 'inc/plugins/asb/functions.php ' ;
Original file line number Diff line number Diff line change 2020 */
2121function asb_info ()
2222{
23- global $ mybb , $ lang , $ cp_style ;
23+ global $ mybb , $ lang , $ cp_style, $ cache ;
2424
2525 if (!$ lang ->asb ) {
2626 $ lang ->load ('asb ' );
@@ -39,18 +39,29 @@ function asb_info()
3939EOF ;
4040 }
4141
42+ // only show Manage Sideboxes link if active
43+ $ plugin_list = $ cache ->read ('plugins ' );
44+ $ manage_link = '' ;
45+ if (!empty ($ plugin_list ['active ' ]) &&
46+ is_array ($ plugin_list ['active ' ]) &&
47+ in_array ('asb ' , $ plugin_list ['active ' ])) {
48+ $ url = ASB_URL ;
49+ $ manage_link = <<<EOF
50+ <li style="list-style-image: url(styles/ {$ cp_style }/images/asb/manage.png)">
51+ <a href=" {$ url }" title=" {$ lang ->asb_manage_sideboxes }"> {$ lang ->asb_manage_sideboxes }</a>
52+ </li>
53+ EOF ;
54+ }
55+
4256 $ settings_link = <<<EOF
4357 <li style="list-style-image: url(styles/ {$ cp_style }/images/asb/settings.png)">
4458 {$ settings_link }
4559 </li>
4660EOF ;
47- $ url = ASB_URL ;
4861 $ extra_links = <<<EOF
4962<ul>
5063 {$ settings_link }
51- <li style="list-style-image: url(styles/ {$ cp_style }/images/asb/manage.png)">
52- <a href=" {$ url }" title=" {$ lang ->asb_manage_sideboxes }"> {$ lang ->asb_manage_sideboxes }</a>
53- </li> {$ remove_link }
64+ {$ manage_link }{$ remove_link }
5465 <li style="list-style-image: url(styles/ {$ cp_style }/images/asb/help.png)">
5566 <a href="https://github.com/WildcardSearch/Advanced-Sidebox/wiki/Help-Installation" title=" {$ lang ->asb_help }"> {$ lang ->asb_help }</a>
5667 </li>
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ function recent_posts_get_postlist($settings)
286286 }
287287
288288 $ post ['subject ' ] = htmlspecialchars_uni ($ parser ->parse_badwords ($ post ['subject ' ]));
289- $ post ['link ' ] = get_thread_link ($ post ['tid ' ]) . " &pid= { $ post ['pid ' ]} #pid {$ post ['pid ' ]}" ;
289+ $ post ['link ' ] = get_post_link ($ post ['pid ' ], $ post ['tid ' ]) . " #pid {$ post ['pid ' ]}" ;
290290
291291 // we just need the text and smilies (we'll parse them after we check length)
292292 $ pattern = "|[[\/\!]*?[^\[\]]*?]|si " ;
You can’t perform that action at this time.
0 commit comments