Former Member
inherit
guest@proboards.com
253222
0
Mar 28, 2024 16:51:54 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 26, 2019 12:07:23 GMT -8
What I want to do is have the home page's statistics appear at the bottom of the threads list.
So in Boards I have this:
<script> window.onload = function() { var ifrm = document.getElementById('ifrm'); ifrm.style.display = 'none'; // set display ifrm.src = 'http://legomessage.boards.net/'; // set src to new url // using reference to iframe (ifrm) obtained above ifrm.onload = function(){ var win = ifrm.contentWindow; // reference to iframe's window // reference to document in iframe var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document; // reference to form named 'mlb_stats_wrapper' in iframe var form = doc.getElementByClassName('mlb_stats_wrapper'); document.getElementById('inserted_stats')[0].innerHTML = form; } } </script>
In that same template I have <iframe id="ifrm"></iframe> and <div id="inserted_stats"></div>
The problem is is that the statistics/info isn't appearing at all, so what exactly am I doing wrong?
|
|
inherit
Official Code Helper
65613
0
1
Sept 28, 2022 13:12:14 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,835
December 2005
horace
|
Post by Chris on May 26, 2019 12:23:23 GMT -8
What I want to do is have the home page's statistics appear at the bottom of the threads list. So in Boards I have this: <script> window.onload = function() { var ifrm = document.getElementById('ifrm'); ifrm.style.display = 'none'; // set display ifrm.src = 'http://legomessage.boards.net/'; // set src to new url // using reference to iframe (ifrm) obtained above ifrm.onload = function(){ var win = ifrm.contentWindow; // reference to iframe's window // reference to document in iframe var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document; // reference to form named 'mlb_stats_wrapper' in iframe var form = doc.getElementByClassName('mlb_stats_wrapper'); document.getElementById('inserted_stats')[0].innerHTML = form; } } </script>
In that same template I have <iframe id="ifrm"></iframe> and <div id="inserted_stats"></div> The problem is is that the statistics/info isn't appearing at all, so what exactly am I doing wrong? @smithj using iframes to access proboards servers (i.e. doubling the load on the server using one, tripling load using two, etc.) is prohibited. These guidelines outline rules for ProBoards Developers.The following types of codes are prohibited: - Codes that make requests to ProBoards' servers except through methods explicitly allowed for by ProBoards (such as plugin set() functions). Examples of prohibited codes include using <iframe> tags to access forum content, or making AJAX requests to ProBoards forums.
- Codes that affect the placement of advertisements on any ProBoards forum, except those specifically authorized by ProBoards.
- Codes which cause automatic redirects on page load to a new URL.
- Codes which rely on external code to work properly. Note that using external data is acceptable, so long as that data is loaded asynchronously.
- Codes which use plugin keys to store unrelated data, e.g., sharing a single plugin key between multiple unrelated plugins.
|
|
Former Member
inherit
guest@proboards.com
253222
0
Mar 28, 2024 16:51:54 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 26, 2019 12:56:46 GMT -8
What I want to do is have the home page's statistics appear at the bottom of the threads list. So in Boards I have this: <script> window.onload = function() { var ifrm = document.getElementById('ifrm'); ifrm.style.display = 'none'; // set display ifrm.src = 'http://legomessage.boards.net/'; // set src to new url // using reference to iframe (ifrm) obtained above ifrm.onload = function(){ var win = ifrm.contentWindow; // reference to iframe's window // reference to document in iframe var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document; // reference to form named 'mlb_stats_wrapper' in iframe var form = doc.getElementByClassName('mlb_stats_wrapper'); document.getElementById('inserted_stats')[0].innerHTML = form; } } </script>
In that same template I have <iframe id="ifrm"></iframe> and <div id="inserted_stats"></div> The problem is is that the statistics/info isn't appearing at all, so what exactly am I doing wrong? @smithj using iframes to access proboards servers (i.e. doubling the load on the server using one, tripling load using two, etc.) is prohibited.
These guidelines outline rules for ProBoards Developers.The following types of codes are prohibited: - Codes that make requests to ProBoards' servers except through methods explicitly allowed for by ProBoards (such as plugin set() functions). Examples of prohibited codes include using <iframe> tags to access forum content, or making AJAX requests to ProBoards forums.
- Codes that affect the placement of advertisements on any ProBoards forum, except those specifically authorized by ProBoards.
- Codes which cause automatic redirects on page load to a new URL.
- Codes which rely on external code to work properly. Note that using external data is acceptable, so long as that data is loaded asynchronously.
- Codes which use plugin keys to store unrelated data, e.g., sharing a single plugin key between multiple unrelated plugins.
Just to clarify, this rule applies to both distributed and non-distributed plugins/templates, right?
|
|
inherit
Official Code Helper
65613
0
1
Sept 28, 2022 13:12:14 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,835
December 2005
horace
|
Post by Chris on May 26, 2019 13:35:02 GMT -8
Just to clarify, this rule applies to both distributed and non-distributed plugins/templates, right? It is meant to prevent abusive usage of Proboards servers (only one request to the server per page load) so applies to any client side coding whether it be distributed or not. Proboard still uses sameorigin in its x-frame-options header since there are exceptions such as the theme preview in the admin panel and others but generally you and I as consumers of the service are not allowed to make multiple requests unless specifically allowed (such as plugin key updates). I am however not a Proboards employee so this interpretation is my own as I've understood it over the years and I have no special insight on any possible pending changes that might be in the queue for the release of V6. The webpage quoted above was last updated sometime in August of 2013 so if you desire a more definitive answer we may try tagging employees such Matej or Brian
|
|
Former Member
inherit
guest@proboards.com
253222
0
Mar 28, 2024 16:51:54 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 18, 2019 16:24:27 GMT -8
Just to clarify, this rule applies to both distributed and non-distributed plugins/templates, right? It is meant to prevent abusive usage of Proboards servers (only one request to the server per page load) so applies to any client side coding whether it be distributed or not. Proboard still uses sameorigin in its x-frame-options header since there are exceptions such as the theme preview in the admin panel and others but generally you and I as consumers of the service are not allowed to make multiple requests unless specifically allowed (such as plugin key updates). I am however not a Proboards employee so this interpretation is my own as I've understood it over the years and I have no special insight on any possible pending changes that might be in the queue for the release of V6. The webpage quoted above was last updated sometime in August of 2013 so if you desire a more definitive answer we may try tagging employees such Matej or Brian Matej Brian
|
|
#e61919
Product Manager
12218
0
1
Mar 11, 2017 17:47:30 GMT -8
Matej
This is my status!
17,630
August 2003
wooper
|
Post by Matej on Jun 18, 2019 16:44:23 GMT -8
Chris is correct. We do not allow usage of iframes to load forum content, regardless of how you distribute the plugin/theme/templates.
I can't provide any further info about the v6 improvements in this area, but I can confirm that we are aware of these situations and will provide a solution in the future.
|
|