51
alandail
Re: How do I optimize my site?
  • 2006/5/4 20:19

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


the main issue I have seems to be the time it's taking to run all of the php scripts to generate the html. It's taking at least 5 seconds to generate. What is the best way to optimize that?

I'm running the site on a mac mini and I thus far I rarely have more than 10 or so users online. I really would like to figure out a way to make the html generate faster.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



52
alandail
How do I optimize my site?
  • 2006/5/4 18:20

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


Would turning on caches help? I have all of the caches in the administrator page set to No cache - what does that control and what are reasonable values for the various modules? Are there any it would make sense to never cache? And where is the cache and what does it do? Is it caching build blocks, or is it caching on user systems?

I'm getting quite a bit of traffic (but no users are registering). Even on a machine on my local network things take time to load.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



53
alandail
Re: multiple sites on one machine?
  • 2006/5/3 16:43

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


ok - I figured this one out

I edited mainfile.php to do the following

$requestedURL = strtolower($_SERVER['HTTP_HOST']);
if (substr_count($requestedURL,'cavsworld') == 0)
define('XOOPS_URL', 'http://www.ohiosportsworld.com');
else
define('XOOPS_URL', 'http://www.cavsworld.com');

nowhttp://www.cavsworld.com (or anything similar) takes you to a site where all links are relative tohttp://www.cavsworld.com

whilehttp://www.ohiosportsworld.com or anything similar takes you to a site were all links are relative tohttp://www.ohiosportsworld.com

I suspect it would be possible to have each URL point to it's own XOOPs database if I wanted them to behave differently as I originally planned, but instead all I want to do right now is transition from the old site name to the new site name without breaking people's links.

The multiple database ides is something I'll keep in mind for the future - it's clearly possible to host multiple domains on one machine, one copy of XOOPs (for easy maintenance), and a single IP address and have each domain appear to be totally independent to the outside world.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



54
alandail
Re: multiple sites on one machine?
  • 2006/5/3 0:47

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


I still have a question about this, though.

I currently have two domain names pointing to my site

http://www.cavsworld.com
http://www.ohiosportsworld.com

The way XOOPS works is if someone accesses my site through the second name, all of the links point to the first name. Is there a way to make this dynamic? I want to gradually transition people (and search engines) to the new name.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



55
alandail
Re: multiple sites on one machine?
  • 2006/5/2 21:32

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


well, I ended up using a different approach - I wrote an areas module for my site (that's currently incomplete and hard coded to my setup that lets the multiple areas be on the same site - so only one registration needed.

I expanded my CavsWorld.com to include the Cavaliers, Browns and Indians, with each area showing the relevant information to the specific teams.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



56
alandail
What determines minimum widths and how do I change it?
  • 2006/4/30 13:42

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


I've noticed that my web site is too wide on smaller screens while the XOOPS web site does a better job of shrinking the center section when the window it's smaller. Where is this controlled and how do I change my site? I would like to both allow the center section to get smaller and shrink the left and right sides a little to help make my site work better on smaller monitors.

I notice that on the XOOPS site, the left and right sides even can shrink while mine never do.

edit - I found part of my problem - my banner add was constraining the minimum width. Now what I want to change is this. When the window grows, my left and right sections get wider. I would like them to simply stay a fixed width and have my center section get all of the extra width. Where is that controlled and how do I change it.

thanks
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



57
alandail
Re: multiple sites on one machine?
  • 2006/4/29 20:05

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


I should have clarified, I'm running my site off of a Mac Mini in my house over my dsl line. One IP address comes in - I want to add a second site that's independent of the one I'm using, all over the same IP address - is that possible?
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



58
alandail
multiple sites on one machine?
  • 2006/4/29 18:31

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


How do I host multiple sites on one machine? I assume if I just put them each in their own folder, they can each have their own theme and own copy of xoops.

However how do I give them each their own domain name? What I would like would be to put my current site into a folder called "cavsworld", but instead of the URL to the home page beinghttp://www.cavsworld.com/cavsworld, I want it to be simplyhttp://www.cavsworld.com/ and then have another folder for another site with it's own domain name. That way they can all run off of one machine for now, and can be split off into their own machines as needed.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



59
alandail
Re: my new site
  • 2006/4/28 21:48

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


My wife designed a new logo for me that I think came out great. I needed to make the text larger so it would scale well if I used it for other purposes. Also, I changed my slogan slightly - from the unofficial web site to "the unofficial home of.."

I've also made many improvements since I started this thread, including tweaking a few modules, and have 3 primary changes left to make to get the site where i want it.

- fix the polls module so it shows results for people who already voted instead of the voting block.

- fix a problem I'm having where windows users start to get things centered for some mysterious reason.

- design a new theme around my new logo. Actually, with the tweaks I've done, my current theme is adequate on a mac, but looks awful on windows. Is there a faq or manual online for how to design a theme?

Check out my evolving site and let me know what you think.

Also, any ideas on how to improve things to encourage people to sign up, post, and click on my advertising links? According to my logs, I've had nearly 2000 unique visitors from all over the world, but under 20 people register.
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com



60
alandail
fixing polls
  • 2006/4/27 3:08

  • alandail

  • Just popping in

  • Posts: 94

  • Since: 2006/4/18


how do I fix polls so that the block I'm using on my main page will show the poll results for users who have already voted?
visit my sites
http://www.cavsworld.com
http://www.cafeshopper.com
http://celebrity.cafeshopper.com
http://www.1sies.com




TopTop
« 1 ... 3 4 5 (6) 7 8 9 10 »



Login

Who's Online

151 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits