68 Classifieds Forums

68 Classifieds Forums (http://www.68classifieds.com/forums/index.php)
-   v3.1 Questions & Support (http://www.68classifieds.com/forums/forumdisplay.php?f=19)
-   -   Slow Slow loading (http://www.68classifieds.com/forums/showthread.php?t=2503)

pvisser 02-26-2007 04:45 AM

Slow Slow loading
 
Hello i have a problem. My site ad http://www.laptopmarkt.com is loading so slow. I downt understand. I have muts categories in it. What kan i do to prefent this. How can i speed up the Site please Advice..:confused:

suzkaw 02-26-2007 07:39 AM

Hi Patrick,

Do you have the developer edition? If so you can comment out the portion where the number of listings are calculated and it will speed back up. Or if you want to submit a ticket with your ftp details we can change this for you.

pvisser 02-26-2007 09:47 AM

Re : Slow Loding
 
Oke Super suzkaw. and yes its the def. edition. Where can i Find the portion where the number of listings are calculated. Witch file i need to edit please advice me. thanks..

suzkaw 02-26-2007 03:21 PM

Patrick,

If you would open the category.php file and locate the following two lines of code:
PHP Code:

get_ids($arr_childs);
$cat[$i]['total']=get_count($arr_childs);

Then just comment them out like this:
PHP Code:

//get_ids($arr_childs);
//$cat[$i]['total']=get_count($arr_childs);

This will remove the listing count and speed the site back up. Please note those same lines will be in three or four places in the category.php file. It will also be in the index.php file.

pvisser 02-26-2007 03:57 PM

Re Slow loading.
 
Oke tanks suzkaw. thats indeed speeding up but now i see ([[totaal]]) next to my categories. Is this meen that te counting is gone then. or what did i doe wrong. Hope you advice me soon

Lhotch 02-26-2007 04:12 PM

You will want to go into the templates (ie home.tpl.php) and remove the part where the total is displayed.

For example in home.tpl.php you should have the plugin to ddisplay the query which looks like this....

HTML Code:

{html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
        [[start_link]]<img src='[[image]]' border='0' alt='[[name]]' /></a> [[start_link]]<strong>[[name]]</strong></a>
        ([[total]])
        <br />
[[subcats]]
{/html_table_adv}

simply remove the ([[total]]) so it looks like this.....


HTML Code:

{html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
        [[start_link]]<img src='[[image]]' border='0' alt='[[name]]' /></a> [[start_link]]<strong>[[name]]</strong></a>
        <br />
[[subcats]]
{/html_table_adv}


suzkaw 02-26-2007 04:53 PM

Yep Larry is right and I forgot to mention that.


All times are GMT -4. The time now is 07:21 PM.

Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.