• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

XF Optimise

Status
Not open for further replies.
  1. Ensure the directories /js and /js-old are writeable by PHP (chmod or otherwise).
should we delete or change the permission after we done compression for /js-old
 
Ideally, this tool would have some method of collecting it's own statistics.
It could maybe collect "pre-installation" data for a week.
Then install it.
Then collect post-installation data for a week.
and then show "objectively" what has improved.
If it could be proven what is optimized and by how much, it would essentially sell itself.
 
You can add server-side features like guest caching? (Like VBOptimize i intend).

Xenforo is very light, differently for vbulletin. IMHO a true optimization should be server-side (support of memcache, cdn etc.)
 
Thanks Darki, installed on http://www.smsmasters.co.uk

Insanely fast!

However, it broke the twitter module on xenporta

http://www.smsmasters.co.uk/forum/portal/ :( See bottom

This is code for the twitter module
HTML:
<div class="section">
    <div class="secondaryContent" id="twitter" style="padding-bottom: 10px;">
        <h3>Twitter Feed</h3>
        <script src="http://widgets.twimg.com/j/2/widget.js"></script>
        <script>
        new TWTR.Widget({
            version: 2,
            type: 'search',
            search: '{$option.twitter_search}',
            interval: 6000,
            width: 'auto',
            height: {$option.twitter_height},
            theme: {
                shell: {
                    background: '@pageBackground',
                    color: '@pageBackground'
                },
                tweets: {
                    background: '@contentBackground',
                    color: '@mutedTextColor',
                    links: '@primaryMedium'
                }
            },
            features: {
                scrollbar: {$option.twitter_scroll},
                hashtags: {$option.twitter_hashtags},
                timestamp: {$option.twitter_timestamps},
                avatars: {$option.twitter_avatars},
                toptweets: {$option.twitter_toptweets},
                live: true,
                loop: false,
                behavior: 'all'
            }
        }).render().start();
        </script>
        <div>
            <span style="float: right;">
                <a href="http://twitter.com/#search?q={$option.twitter_search}" target="_blank">Join the conversation</a>
            </span>
            <a href="http://twitter.com" target="_blank"><img src="http://widgets.twimg.com/i/widget-logo.png" alt="" /></a>
        </div>
    </div>
</div>
 
The twitter module is not supposed to appear at the footer, it is supposed to appear in the sidebar.

I tried in firefox 4 and chrome 10 and cleared cache. :(
 

Attachments

  • Capture2.webp
    Capture2.webp
    42.2 KB · Views: 62
The twitter module is not supposed to appear at the footer, it is supposed to appear in the sidebar.

I tried in firefox 4 and chrome 10 and cleared cache. :(
Oh lololol thought you meant the tweet button :D

*needs to read the whole post*
 
Darki, any ideas on how to fix this please? It only occurs when I enable "Defer Javascript loading".

Thanks!

capture2-jpg.13321

Thanks Darki, installed on http://www.smsmasters.co.uk

Insanely fast!

However, it broke the twitter module on xenporta

http://www.smsmasters.co.uk/forum/portal/ :( See bottom

This is code for the twitter module
HTML:
<div class="section">
    <div class="secondaryContent" id="twitter" style="padding-bottom: 10px;">
        <h3>Twitter Feed</h3>
        <script src="http://widgets.twimg.com/j/2/widget.js"></script>
        <script>
        new TWTR.Widget({
            version: 2,
            type: 'search',
            search: '{$option.twitter_search}',
            interval: 6000,
            width: 'auto',
            height: {$option.twitter_height},
            theme: {
                shell: {
                    background: '@pageBackground',
                    color: '@pageBackground'
                },
                tweets: {
                    background: '@contentBackground',
                    color: '@mutedTextColor',
                    links: '@primaryMedium'
                }
            },
            features: {
                scrollbar: {$option.twitter_scroll},
                hashtags: {$option.twitter_hashtags},
                timestamp: {$option.twitter_timestamps},
                avatars: {$option.twitter_avatars},
                toptweets: {$option.twitter_toptweets},
                live: true,
                loop: false,
                behavior: 'all'
            }
        }).render().start();
        </script>
        <div>
            <span style="float: right;">
                <a href="http://twitter.com/#search?q={$option.twitter_search}" target="_blank">Join the conversation</a>
            </span>
            <a href="http://twitter.com" target="_blank"><img src="http://widgets.twimg.com/i/widget-logo.png" alt="" /></a>
        </div>
    </div>
</div>
 
I'm getting the following when attempting to run the compressor.

Fatal error: Call to undefined function mb_check_encoding() in /home/xx/public_html/forum/library/Dark/XFOptimise/ControllerAdmin/Kondou.php on line 41


 
I'm getting the following when attempting to run the compressor.

Fatal error: Call to undefined function mb_check_encoding() in/home/xx/public_html/forum/library/Dark/XFOptimise/ControllerAdmin/Kondou.phpon line41

Enable the PHP mbstring extension
 
Hey dark! Got it working just fine after that on a friends site running on XF1.0.0. I tried running it on XFProud and it finishes but all javascript is broken. When I view /xenforo/xenforo.js and js/jquery/jquery.xenforo.rollup.js they display white pages.

I've uninstalled and restored the old-js and attempted to redo it. I got the same results. Everything else the addon offers works fine. I'm running XenForo 1.0.1.
 
I've just migrated my server so the uglifyjs script is probably broken - will check it later.
 
Done this today on 1.0.1 and now none of my popup overlays work. Is there any fix?
 
I'm trying to add adbrite to my website and it's forcing the adds to the bottom with the javascript mover enabled :P Any chance I can stop this?
 
Status
Not open for further replies.
Back
Top Bottom