Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 25

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 'How Do I' Questions

 
 
LinkBack Thread Tools Display Modes
Old 10.05.2004, 19:09   #1 (permalink)
Baby Mamber
 
afru's Avatar
 
Join Date: Apr 2004
Posts: 24
afru is on a distinguished road
World Speed up Mambo Site - Extremely useful Tip

Hi all,

I have found this somewhere and thought it will be useful to all mambers.
Open up index.php file in your template directory and change the following lines as explained.

<?php

include ("editor/editor.php");

initEditor();

?>

Change the above to look like:

<?php

if ($my->id) {

include ("editor/editor.php");

initEditor();

}

?>

Whats happening : Each and every time an user visits your mambo site, your template is loaded and with that, the default editor is also loaded even if the user is not logged in. We are just changing it to load the editor only when the user is logged in.

And for your reference, htmlarea2 javascript file itself is more than 45kb. ie, we are reducing our sites page size by more than 45kb and hence reducing the downloading speed of the page.

Hope this will help out lots of mambers around....

Yours Afru
afru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 10.05.2004, 19:24   #2 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

A further refinement of this idea is to only load the editor if the logged in user goes to edit or submit a news news item, as posted by scatcat_sw here:

http://forum.mamboserver.com/viewtopic.php?p=73480#73480
__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10.05.2004, 19:41   #3 (permalink)
Baby Mamber
 
afru's Avatar
 
Join Date: Apr 2004
Posts: 24
afru is on a distinguished road
Exclamation Re: Speed up Mambo Site - Extremely useful Tip

Hello stingrey,

Great to hear the refinement. But the link you have provided is not working, If you know the code can you pls post it so that we all mambers can make use of it...

Thanking you,
Afru.
afru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10.05.2004, 19:46   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 16
njcallen is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

This is the code Stingrey was referring to....

PHP Code:
<?php 
if($my->id){  
    if(
$_REQUEST["task"] == "edit" || $_REQUEST["task"] == "new") { 
        include (
"editor/editor.php"); 
        
initEditor(); 
    } 

?>
Cheers,

Nathan
njcallen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 10.05.2004, 20:07   #5 (permalink)
Mamber
 
Heart's Avatar
 
Join Date: Apr 2004
Location: near Munich, Germany
Posts: 119
Heart is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

Thanks for that....!!!
Heart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11.05.2004, 17:25   #6 (permalink)
Mamber
 
er16004's Avatar
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 56
er16004 is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

Is there a place to get more tips specifically just like this for editing templates? I know some tips get sprinkled throughout this and other forums, but has a category been started just for this topic?

Thanks,

Eric
er16004 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 20.11.2005, 02:33   #7 (permalink)
Mamber
 
KriKit's Avatar
 
Join Date: Jan 2005
Posts: 83
KriKit is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

For the record this is not nessecary to do with Joomla, which hides the editor until it is needed.
__________________
www.primakoala.com
KriKit is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 07.12.2005, 00:57   #8 (permalink)
Baby Mamber
 
Join Date: Dec 2005
Posts: 6
ramulis is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

I wanted to change it, but it was already changed in my template
ramulis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12.01.2006, 11:11   #9 (permalink)
Mamber
 
chamax's Avatar
 
Join Date: Jan 2006
Posts: 60
chamax is on a distinguished road
Default Re: Speed up Mambo Site - Extremely useful Tip

its really use full...... and its help me............ thax
chamax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo Open Source 5.0 Book Series mmx Community Announcements 13 19.09.2005 09:35
Better Site messenger for Mambo like that Lala Mambo 5.0 Wishlist 6 01.06.2004 11:56


All times are GMT +2. The time now is 05:54.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.