G-Book pageweight

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
jbun
Posts: 2
Joined: Mon May 07, 2012 2:59 am

G-Book pageweight

Post by jbun »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I am trying to reduce my site's pageweight as it is loading slowly. I am thinking of eliminating the language files such as dutch.inc, italian.inc, german.inc, and language inc. Is it safe to remove them? Also are there any other files I can remove that are optional ?

thank you
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: G-Book pageweight

Post by Henrie »

Only the languague you use is being loaded. So deleting the other language.inc files is of no consequence to your site's loading speed.
That being said, you can safely remove the language.inc files you are not using. You can see in the settings.php file at the setting $settings['language']='language.inc.php'; which language file you are using.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
jbun
Posts: 2
Joined: Mon May 07, 2012 2:59 am

Re: G-Book pageweight

Post by jbun »

Thanks for the quick response Henrie. I will remove the language files I am not using. Also I was wondering about the emoticons. I do not want smileys to appear or be used, here is what I did:

in settings.php:
/* Allow smileys? 1 = YES, 0 = NO */
$settings['smileys']=0;

/* Maximum number of smileys per post. Set to 0 for unlimited. */
$settings['max_smileys']=1;

in sign_form.php:
I removed lines 61-73. ( to remove smileys as I read somewhere in the forum)

As of now I don't have emoticons appear anywhere in G-Book, However It seems that when users visit my site 135k of emoticons are downloaded to them, thus increasing my page-weight.

I have considered a few options:
Remove the emoticons from the templates/default/images/emoticons folder. (Not sure if that will cause any problems.) or remove the code on the templates/default/emoticons.php between lines 9 and 77, or both

I really would like to solve this so my site visitors don't have to download all those emoticon files that are not being used. This will help me speed up my page.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: G-Book pageweight

Post by Henrie »

The settings for disabling emoticons are right.
Also removing the lines 61-73 in sign_form.php is good.
This way no new emoticons can be placed.

If there are still emoticons loaded after you made the previous modifications, they must have been placed in the guestbook already. If you do not want any emoticons to be loaded, just remove the files from your server so the browser can not display them. Most browsers will display the alternative text or a image not found text instead of the image.

If this does not help, please post a link to your guestbook, so we can take a closer look.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: G-Book pageweight

Post by Klemen »

Reading through this - what kind of problems exactly are you having?

Is your *website* slow or is it just the *guestbook*?

Things like small static images (smileys) give minimum possible load on the server - they receive no server-side processing and are smaller than most HTML pages. Static images are not your real problem.

Like Henrie said language includes aren't even used except for the default one, removing them will have absolutely no effect.

If you are having slow loading problems then the problem is almost certainly somewhere else, a simple script like GBook can't bog down a server under normal circumstances. You should look at server load values, top processes, network usage, memory usage etc. to find your bottlenecks.

If you are on shared hosting it's likely other websites on the server are slowing it down. Many hosts oversell their services and put too much on one server, especially low-priced ones. Have you considered moving to another host?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply