Rooney Posted March 28, 2013 Share Posted March 28, 2013 One question, would appreciate help What I'm trying to do is to make a error message appear on a certain few pages, and only those pages, how is this possible? Like for instance, on WF the message only shows in downloads forum topics. how would i do this? Thanks for much if reply. anybody know this please? Link to comment Share on other sites More sharing options...
0 Rooney Posted March 28, 2013 Author Share Posted March 28, 2013 (edited) Depends. For i.e an application, the application key (core, forums, etc.) <if test=" $this->registry->getCurrentApplication() == 'forums' "> show message</if> In the topicViewTemplate for specific forums (ie forum 1, 2, 5 and 9 <php>$show_message = array(1,2,5,9); </php> <if test=" $this->registry->getCurrentApplication() == 'forums' && in_array($forum['id'], $show_message)"> message</if> and so on.. All roads lead to Rome Sorry for being a noob, here is the code sort of like WF that i am using. <div class="message error" style="font-weight:bold;"><img src="/public/style_images/velvet/rte_icons/exclamation.png"><hr> If You Would Like To Thank The Poster For This Movie Download, Please Press The "<b>Like This</b>" Button Instead Of Posting. Thanks!</div>Sorry for noob question and bad english. how to put that error message like WF on movie download support topics? Edited March 28, 2013 by Rooney Link to comment Share on other sites More sharing options...
0 Rooney Posted March 28, 2013 Author Share Posted March 28, 2013 Thanks sir! Link to comment Share on other sites More sharing options...
0 Rooney Posted March 28, 2013 Author Share Posted March 28, 2013 (edited) just add something like this above the reply box (whatever) in the topicViewTemplate <php>$show_message = array(1,2,5,9); </php> <if test=" $this->registry->getCurrentApplication() == 'forums' && in_array($forum['id'], $show_message)"> <div class="message error" style="font-weight:bold;"> <img src="/public/style_images/velvet/rte_icons/exclamation.png"><hr> If You Would Like To Thank The Poster For This Movie Download, Please Press The "<b>Like This</b>" Button Instead Of Posting. Thanks! </div></if> and replace 1,2,5,9 with your forum id's Now i have error "/ php not coded proper <php>$show_message = array(10,13,14,15,66,11,16,17,18,25,28,29,30,70,26,31,32,33,103,40,42,43,44,74,52,54,61,62,78,86,84); </php> <if test=" $this->registry->getCurrentApplication() == 'forums' && in_array($forum['id'], $show_message)"><div class="message error" style="font-weight:bold;"><img src="/public/style_images/velvet/rte_icons/exclamation.png"><hr> If You Would Like To Thank The Poster For This Movie Download, Please Press The "<b>Like This</b>" Button Instead Of Posting. Thanks!</div> Edited March 28, 2013 by Rooney Link to comment Share on other sites More sharing options...
Question
Rooney
One question, would appreciate help
What I'm trying to do is to make a error message appear on a certain few pages, and only those pages, how is this possible?
Like for instance, on WF the message only shows in downloads forum topics. how would i do this?
Thanks for much if reply.
anybody know this please?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts