inherit
211778
0
Aug 3, 2016 11:36:21 GMT -8
ponzinomics
250
July 2014
ponzinomics
|
Post by ponzinomics on Oct 11, 2014 14:58:26 GMT -8
Hi, I asked this a while back in the plugin's thread, but no response so I post in the main board just in case: when i add a global message to a board, it is also shown in threads of the board. Is it possible exclude board messages when viewing threads?Thanks
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Oct 11, 2014 14:59:34 GMT -8
Hi ponzinomics, Can you be more specific? Are you referring to a header code?
|
|
inherit
211778
0
Aug 3, 2016 11:36:21 GMT -8
ponzinomics
250
July 2014
ponzinomics
|
Post by ponzinomics on Oct 11, 2014 15:01:31 GMT -8
no, i refer to global messages plugin
when you add global messages to a board, it is shown in the threads list of the board as expected
but if you open a thread, it is also shown. I would like threads not showing the global messages
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Oct 11, 2014 15:03:24 GMT -8
Go ahead and link me to a thread on your forum so I can observe the plugin in action.
|
|
inherit
211778
0
Aug 3, 2016 11:36:21 GMT -8
ponzinomics
250
July 2014
ponzinomics
|
Post by ponzinomics on Oct 11, 2014 15:05:11 GMT -8
yep, you are right: if you shown the board you will see the global messages plugin if you click in any of the threads you still will see the global messages. I wanted that threads not showing the global messages plugin
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Oct 11, 2014 15:18:34 GMT -8
Try putting this in your Global Header, ponzinomics - <script> $(document).ready(function() { if (proboards.data('route').name == "list_posts" || proboards.data('route').name == "thread") { $('.container[data-pdgmsg]').remove(); } }); </script>
|
|
inherit
211778
0
Aug 3, 2016 11:36:21 GMT -8
ponzinomics
250
July 2014
ponzinomics
|
Post by ponzinomics on Oct 11, 2014 15:58:57 GMT -8
Hi David, I did but...... same result. I pasted below the code
<div class="container" id="8" data-pdgmsg="Instructions1"> <div class="title-bar" style="text-align: left;"> <h2>My text header</h2> <img src="http://storage.proboards.com/5664962/i/KyIgZuqSB8M1fS_GTq2b.png" alt="Hide Message" title="Hide Message" style="float: right; vertical-align: middle; position: relative; top: 3px; cursor: pointer;"> </div> <div class="content" style="padding: 10px"> - text1<br> - text2 </div> </div>
are you sure the predicate '.container[data-pdgmsg]' is correct? It looks to me that container is not well referenced, but not sure....
UPDATE: ADDED TO GLOBAL FOOTER INSTEAD AND WORKED, THANK YOU VERY MUCH!!!!
|
|