Zero108 Posted June 12, 2018 Share Posted June 12, 2018 (edited) Есть кусок кода, который отображает кнопку на страницах форумов (подфорумов) и на страницах тем отдельного подфорума. Как его скрыть через условие в коде с определенных страниц? {{if ( settings.bim_tthumb_forum == '0' OR in_array( $forum->id, explode( ",", settings.bim_tthumb_forum ) ) ) OR ( settings.bim_tthumb_gallerymode == '0' || in_array( $forum->id, explode( ",", settings.bim_tthumb_gallerymode ) ) )}} <li> <a href="{url="app=core&module=system&controller=plugins&do=toggleThumb"}" class="ipsButton ipsButton_medium ipsButton_fullWidth ipsButton_link" id="toggleThumb"> {{if member.tthumb_off==1}}{lang="bim_tthumb_showon"}{{else}}{lang="bim_tthumb_showoff"}{{endif}} </a> </li> {{endif}} Сейчас отображается на страницах вида:/forums/forum/1-vaishnava-forum-russian/ - нужно кнопку скрыть/forums/forum/27-vaishnava-forum-english/ - нужно кнопку скрыть/forums/forum/24-articles/ Edited June 12, 2018 by Zero108 Link to comment Share on other sites More sharing options...
newbie Posted June 13, 2018 Share Posted June 13, 2018 Судя по коду, в настройках можно выбрать, в каких форумах показывать кнопку. Link to comment Share on other sites More sharing options...
Zero108 Posted June 13, 2018 Author Share Posted June 13, 2018 (edited) Разобрался. Edited June 13, 2018 by Zero108 Link to comment Share on other sites More sharing options...
newbie Posted June 13, 2018 Share Posted June 13, 2018 Замените первую строку на {{if !in_array($forum->id, array(1,27))}} чтобы скрыть кнопку в форумах с ID 1 и 27 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now