MyBB Community Forums

Full Version: How can I enable a script in the threads of the forum?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I enable a script in the threads of the forum. I am interested in being able to insert graphs of this page, in the threads of the forum and that only I as an administrator can do it for security: https://es.tradingview.com/widget/advanced-chart/

Thank you
if it is a static code (which does not change) then
you can add the code into showthread template of active theme(s)

if you want to add separate codes into required threads then
you can use HTML in Posts plugin. (allow only trusted group &
trusted individual users to use html posting)
(2019-03-11, 02:11 PM).m. Wrote: [ -> ]if it is a static code (which does not change) then
you can add the code into showthread template of active theme(s)

if you want to add separate codes into required threads then
you can use HTML in Posts plugin. (allow only trusted group &
trusted individual users to use html posting)

.m., I am curious about this...

What about if it was an Excel spreadsheet that gets updated on a weekly basis? The source of the Excel file is static, but not the data inside the spreadsheet.

That means that the old Excel spreadsheet would get overwritten by the new weekly Excel spreadsheet.

Is this possible to do this in the above-mentioned threads?
How would I have to insert the code in the post to be displayed?

This is the code:

<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
  <div id="tradingview_348bf"></div>
  <div class="tradingview-widget-copyright"><a href="https://es.tradingview.com/symbols/NASDAQ-AAPL/" rel="noopener" target="_blank"><span class="blue-text">AAPL gráfico</span></a> por TradingView</div>
  <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
  <script type="text/javascript">
  new TradingView.widget(
  {
  "width": 980,
  "height": 610,
  "symbol": "NASDAQ:AAPL",
  "interval": "D",
  "timezone": "Etc/UTC",
  "theme": "Light",
  "style": "1",
  "locale": "es",
  "toolbar_bg": "#f1f3f6",
  "enable_publishing": false,
  "allow_symbol_change": true,
  "container_id": "tradingview_348bf"
}
  );
  </script>
</div>
<!-- TradingView Widget END -->
I want the graph to be displayed within a particular thread. I have activated the html, but I can not get it to work.
^ above given code should be working with the suggested plugin.
if it doesn't then you may PM me temporary access to your forum admin panel to check

@Serpius , we can embed spreadsheet by using MyCode (from Google Docs or such host)