• Resolved N3k0

    (@n3k0)


    Hi Axew, i love this plugin, but i do not use the embed function because of the restriction of the names.

    Its a way to change this? because my primary language is spanish, and using forum o board its out of mind ??

    I want to use “Foro” (forum/board), “Foros” (forums/boards) or “Comunidad” (community).

    Cheers!

    • This topic was modified 6 years, 7 months ago by N3k0.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author axew3

    (@axewww)

    Hi! Yes!
    ok we’ll go to remove on next this limit.
    In the while if you want change this, open with text editor the file:
    /wp-content/plugins/wp-w3all-phpbb-integration/views/config.php
    near to the top there are these two lines:

    // if you want auto name your embedded board page with something different like 'myniceforum' add it here
    $w3all_pages = array('board' => 'board', 'boards' => 'boards', 'community' => 'community', 'forums' => 'forums', 'forum' => 'forum');

    change the line

    $w3all_pages = array('board' => 'board', 'boards' => 'boards', 'community' => 'community', 'forums' => 'forums', 'forum' => 'forum');

    adding your value, like:

    $w3all_pages = array('board' => 'board', 'boards' => 'boards', 'community' => 'community', 'forums' => 'forums', 'forum' => 'forum', 'foro' => 'foro');
    that is.
    If still in trouble just post ??

    Thread Starter N3k0

    (@n3k0)

    Thanks ??

    I make all the steps, but I only see the header of the board ??

    https://www.degeneracionx.com/foro/ <– Embed

    https://www.degeneracionx.com/foros <– originals

    Cheers!

    Thread Starter N3k0

    (@n3k0)

    And another question. In embed mode, theres a way to see the title from the page you are navigating in the forums?

    Ex. If i seeing a profile in the forums, the title is
    “Degeneraciox – Viendo Perfil – N3k0”
    https://www.degeneracionx.com/foros/memberlist.php?mode=viewprofile&u=48

    But in embed mode says only “Foros de Discusión | Degeneraciónx.com” (The WP Title)
    https://www.degeneracionx.com/index.php/foro/?mode=viewprofile&u=48

    I hope I can explain ??

    Cheers!

    • This reply was modified 6 years, 7 months ago by N3k0.
    Plugin Author axew3

    (@axewww)

    about the first and not resizing, on your phpBB theme, somewhere (should be overall_footer.html) there is:

    <script>
    		(function($) {
    			'use strict';
    
    			$(window).on('load', function() {
    				$.get ..... etc etc ......
    			});
    		})(jQuery);
    	</script>

    but the console say that jquery isn’t found, in fact it is added just after, while it need to be added before this function that use jquery and before, also, the code of resizer you have add into overall_footer.html.

    May this interfere and lead to the problem that the iframe not resize, and the above. I see there are two different points where jquery libraries are added into your overall_footer.html: move the inclusion of jquery libraries before any call to jquery into your phpBB theme.

    And another question. In embed mode, theres a way to see the title from the page you are navigating in the forums?

    in fact unfortunately, this question i have not understand!

    • This reply was modified 6 years, 7 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    p.s OR more easy, and maybe will work, just move all the code you have add about resizer, just before the closing </body> tab of your overall_footer.html.
    This will not resolve the problem of the function of your theme i mentioned before, but the resizer should work. Let know

    Thread Starter N3k0

    (@n3k0)

    Nope… same problem. I check the iframeResizer.contentWindow.min.js file and I see the code its write in a single line like this:

    !function(a){"use strict";function b(a,b,c){"addEventListener"in window?a.addEventListener(b,c,!1):"attachEvent"(...etc etc)

    Instead of

    !function(a) { 
    "use strict";
    function b(a,b,c) { 
    "addEventListener" in window?a.addEventListener(b,c,!1): "attachEvent" (...etc etc)

    I some cases this mess up the file.

    ——

    About the other… i have to make screens, but its no important right now ??

    Cheers!

    • This reply was modified 6 years, 7 months ago by N3k0.
    Thread Starter N3k0

    (@n3k0)

    *Resolved?

    This means is resolved about the “board/foro” names.

    About the embed thing, want a new topic to me to open?

    Cheers!

    Plugin Author axew3

    (@axewww)

    yes because the problem is on your phpBB theme, that not include the jquery libraries before that are used/called.
    You should move up the code that include/call of jquery into your phpBB theme.
    You need help on something that isn’t related the plugin code…

    by the way, ok …
    add before the code you’ve add on overall_footer.html, this code:
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    but this is an hint to check and make it work, while you should load the internal phpBB libraries, that on default phpBB theme are called in this way into overall_footer.html

    <script type="text/javascript" src="{T_JQUERY_LINK}"></script>
    <script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>

    in the first case you’ll load jquery from google, an external resource.
    Should work, but by the way as said, you should adjust your theme to make all work fine and in proper way.

    Thread Starter N3k0

    (@n3k0)

    thx for you time… Im going to check this ??

    Cheers!

    Plugin Author axew3

    (@axewww)

    hey! if still in trouble and u really can’t get it out, send or post the overall_footer.html file … i will take a fast look.

    Thread Starter N3k0

    (@n3k0)

    Hey, thanks a lot. This is my overall_footer clean:

    					<!-- IF STYLE_SETTINGS_CONFIG_SIDEBARS -->
                                		</div>
                                    </div>
                                </div>
    
    							<!-- IF STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Left Only' || STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Both' -->                            
                                <div id="leftcolumn">
                                	<div class="innertube"><!-- INCLUDE sidebar_left.html --></div>
                                </div>
                                <!-- ENDIF -->
                                
                                <!-- IF STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Right Only' || STYLE_SETTINGS_CONFIG_SIDEBAR_PLACEMENT == 'Both' -->
                                <div id="rightcolumn">
                                    <div class="innertube"><!-- INCLUDE sidebar_right.html --></div>
                                </div>
                                <!-- ENDIF -->
    						</div><!-- /#maincontainer -->                                                 
                        <!-- ENDIF -->
    
                        <!-- EVENT overall_footer_content_after -->
                    </div>
                
                <!-- EVENT overall_footer_page_body_after -->
                
                	</div><!-- /#inner-wrap -->
                
                    <!-- IF STYLE_SETTINGS_HTML_3 and not STYLE_SETTINGS_CONFIG_HIDE_SOCIAL_BAR -->
                    	<div class="social_links_footer">{STYLE_SETTINGS_HTML_3}</div>
                    <!-- ENDIF -->             
              
                
                <div id="page-footer" class="page-footer" role="contentinfo">
                    <!-- INCLUDE navbar_footer.html -->
    
                    <div id="darkenwrapper" class="darkenwrapper" data-ajax-error-title="{L_AJAX_ERROR_TITLE}" data-ajax-error-text="{L_AJAX_ERROR_TEXT}" data-ajax-error-text-abort="{L_AJAX_ERROR_TEXT_ABORT}" data-ajax-error-text-timeout="{L_AJAX_ERROR_TEXT_TIMEOUT}" data-ajax-error-text-parsererror="{L_AJAX_ERROR_TEXT_PARSERERROR}">
                        <div id="darken" class="darken">&nbsp;</div>
                    </div>
                
                    <div id="phpbb_alert" class="phpbb_alert" data-l-err="{L_ERROR}" data-l-timeout-processing-req="{L_TIMEOUT_PROCESSING_REQ}">
                        <a href="#" class="alert_close">
                            <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
                        </a>
                        <h3 class="alert_title">&nbsp;</h3><p class="alert_text"></p>
                    </div>
                    <div id="phpbb_confirm" class="phpbb_alert">
                        <a href="#" class="alert_close">
                            <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i>
                        </a>
                        <div class="alert_text"></div>
                    </div>
                </div>
                
                
                
                <div class="copyright_bar">                
                    Powered by <a href="https://www.phpBB.com/">phpBB</a>&trade; <span class="planetstyles_credit<!-- IF STYLE_SETTINGS_CONFIG_CREDIT_LINE --> planetstyles_credit_hidden<!-- ENDIF -->">&bull; Design by <a href="https://www.planetstyles.net">PlanetStyles</a></span>
                    <!-- EVENT overall_footer_copyright_prepend -->
                    <!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
                    <!-- EVENT overall_footer_copyright_append -->
                    <!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF --> 
                    <!-- EVENT overall_footer_after -->                  
                </div> 
                                            
                </div> <!-- /#wrap -->
                
                <div style="display: none;">
                    <a id="bottom" class="anchor" accesskey="z"></a>
                    <!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
                </div>
                
                <script type="text/javascript" src="{T_JQUERY_LINK}"></script>
                
                <!-- IF S_ALLOW_CDN -->
                    <script type="text/javascript">window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script>
                <!-- ENDIF -->
                
                <script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
                
                
    
    			<!-- IF STYLE_SETTINGS_CONFIG_PARALLAX_HEADER -->
                	<!-- INCLUDEJS parallax.js -->
                <!-- ENDIF -->
                <!-- INCLUDEJS tooltipster.bundle.min.js -->
                <!-- IF STYLE_SETTINGS_CONFIG_COLLAPSIBLE_PANELS -->
                    <!-- INCLUDEJS jquery.collapse.js -->
                    <!-- INCLUDEJS jquery.collapse_storage.js -->               
                <!-- ENDIF -->
                <!-- INCLUDEJS forum_fn.js -->
                <!-- INCLUDEJS ajax.js -->
                
                <!-- IF S_ALLOW_CDN -->
                    <script type="text/javascript">
                        (function($){
                            var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(),
                                $span = $('<span class="fa" style="display:none"></span>').appendTo('body');
                            if ($span.css('fontFamily') !== 'FontAwesome' ) {
                                $fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">');
                                $fa_cdn.remove();
                            }
                            $span.remove();
                        })(jQuery);
                    </script>
                <!-- ENDIF -->         
                
                <!-- IF S_COOKIE_NOTICE -->
                    <script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
                    <script>
                        window.addEventListener("load", function(){
                            window.cookieconsent.initialise({
                                "palette": {
                                    "popup": {
                                        "background": "#0F538A"
                                    },
                                    "button": {
                                        "background": "#E5E5E5"
                                    }
                                },
                                "theme": "classic",
                                "content": {
                                    "message": "{LA_COOKIE_CONSENT_MSG}",
                                    "dismiss": "{LA_COOKIE_CONSENT_OK}",
                                    "link": "{LA_COOKIE_CONSENT_INFO}",
    								"href": "{LA_COOKIE_CONSENT_HREF}"
                                }
                            })});
                    </script>
                <!-- ENDIF -->           
                           
                <!-- IF S_PLUPLOAD --><!-- INCLUDE plupload.html --><!-- ENDIF -->
                {$SCRIPTS}
                
                <!-- IF STYLE_SETTINGS_CONFIG_HEADER_PARTICLES -->
                    <script type="text/javascript">
    					/* Identify the height of headerbar */
    					var headerbar_height = $('.headerbar').height();
    					/* Match particle container height to headerbar. Creates window for canvas */
    					$('.particles_container').css({'height': headerbar_height});
    					
    					/* Dynamically apply width to site desc container, maximising clickable area behind it. We only need this to happen when particles are enabled. */
    					var logo_width = $('.site-description').width();
    					var logo_width_fix = (logo_width+2); /* Caters for retina devices where the width is defined as a decimal. Obvs we can't set a decimal pixel width */
    					$('.site-description').css({'width': logo_width_fix});
    				</script>            
    				<script src="{T_TEMPLATE_PATH}/particles.js"></script>
                    <script src="{T_TEMPLATE_PATH}/particles.app.js"></script>
                    
                    <script type="text/javascript">
    					/* Reposition the canvas so it aligns with headerbar */
    					$('canvas.particles-js-canvas-el').css({'margin-top': -headerbar_height});
    				</script>                        
                <!-- ENDIF -->
                
    			<script type="text/javascript">
                $(function($) {
                    var num_cols = 3,
                    container = $('.sub-forumlist'),
                    listItem = 'li',
                    listClass = 'sub-list';
                    container.each(function() {
                        var items_per_col = new Array(),
                        items = $(this).find(listItem),
                        min_items_per_col = Math.floor(items.length / num_cols),
                        difference = items.length - (min_items_per_col * num_cols);
                        for (var i = 0; i < num_cols; i++) {
                            if (i < difference) {
                                items_per_col[i] = min_items_per_col + 1;
                            } else {
                                items_per_col[i] = min_items_per_col;
                            }
                        }
                        for (var i = 0; i < num_cols; i++) {
                            $(this).append($('<ul ></ul>').addClass(listClass));
                            for (var j = 0; j < items_per_col[i]; j++) {
                                var pointer = 0;
                                for (var k = 0; k < i; k++) {
                                    pointer += items_per_col[k];
                                }
                                $(this).find('.' + listClass).last().append(items[j + pointer]);
                            }
                        }
                    });
                });
                </script>
                
    			<!-- EVENT overall_footer_after -->            
                
              <!-- EVENT overall_footer_body_after -->
                
    			<!-- IF STYLE_SETTINGS_CONFIG_SCROLL_TO_TOP --><a href="#" class="scrollToTop"><span class="fa fa-arrow-up"></span></a><!-- ENDIF -->            
    
    </body>
    </html>

    Cheers!

    • This reply was modified 6 years, 7 months ago by N3k0.
    Plugin Author axew3

    (@axewww)

    try to add the resizer code before this line:
    <!-- IF STYLE_SETTINGS_CONFIG_PARALLAX_HEADER -->

    i “guess” that the reason is the error of the js function on your theme, that may lead the after enqueued scripts to not work. Let see/know!

    • This reply was modified 6 years, 7 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    the above has been edited, check it before to apply

    Thread Starter N3k0

    (@n3k0)

    Thx for all the help, but still the page is not resized. Well, its a feature i wont use them ??

    Keep the awesom work ??

    Cheers!

    Plugin Author axew3

    (@axewww)

    When ever you want, send me your crazy phpBB theme, zipped, via pm at axew3.com, or post it here (the link to the zip).
    I will adjust in 5 min when i will have it “under my hand”!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Name of board for another language in the embed section’ is closed to new replies.