*

Recent

Author Topic: Homepage problem  (Read 8551 times)

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Homepage problem
« on: January 10, 2010, 05:25:40 AM »
Hello,

I'm not an expert in HTML or CSS, so sorry if this question sounds a bit stupid, but I've been trying with this script and for some reason on my homepage the table with the games becomes too wide and messes up the sidebars. Everything is still ok on the Most Played and Newest pages.

Can someone please help me?

My site is www.jogosmelhores.com.

Thanks!

Robbie

  • Sr. Member
  • ****
  • Posts: 343
  • Force: +16/-0
Re: Homepage problem
« Reply #1 on: January 10, 2010, 05:28:10 AM »
Hi, looks ok to me in internet explorer ?, what browser are you using? kind regards

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #2 on: January 10, 2010, 05:31:56 AM »
I'm using Firefox, but I have the same problem in IE.

If you look carefully at the edges of the sidebars, you will notice that they are not complete and are different from the way it appears on Most Played and Newest.

Cheers.

Robbie

  • Sr. Member
  • ****
  • Posts: 343
  • Force: +16/-0
Re: Homepage problem
« Reply #3 on: January 10, 2010, 05:34:37 AM »
Oh i do see ,the rounded edges you mean?
« Last Edit: January 10, 2010, 07:18:11 AM by Willy Wonka »

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #4 on: January 10, 2010, 10:28:09 AM »
Yes, the games table becomes extended for some reason, overlapping with the sidebars.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Homepage problem
« Reply #5 on: January 10, 2010, 01:23:37 PM »
It's looking the same to me in both FF and IE. Did you fix it? If so, what was the problem?

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #6 on: January 10, 2010, 01:55:22 PM »
No, unfortunately I don't know where the problem lies. Try to compare the homepage with the "Mais jogados" page and you will see the difference.

Thanks!

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Homepage problem
« Reply #7 on: January 10, 2010, 02:13:20 PM »
Weird, I looked at both earlier and they both looked the same, now they are not.

The only thing I see right off the bat is the table tags are not equal in the pages. In base_home.php the overall table is set to 99% and the table containing the categories is set to 97%, where as in mostplayed.php the overall they are set to 100% on both. This affects the width displayed  in the center td tag in the overall tamplate file. Try adjusting them to match and tell me what happens.

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #8 on: January 10, 2010, 02:37:22 PM »
Those values are set there by default, they came like that when I downloaded the script. I tried changing them, but nothing happens.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Homepage problem
« Reply #9 on: January 10, 2010, 03:03:53 PM »
Yea, I know. This is a template somebody did up for us. Looks nicer than the old one, but can still have a few issues it would seem.

What I'm seeing is that the pages have different widths for the middle column. I'm going over it and trying to figure out why, but it's not jumping right out at me. Been feeling a bit under the weather lately so I'm thinking a bit slow today. Sorry bout that.

The problem is that the pages do not have the same structure. The main page has category tables wrapped in the center column table, the most played only has the center column table, no tables in side of it.

Them not having exactly the same structure is the only thing I can see that could cause a problem. Try setting both to have the main table's width as 97%, or the absolute width of 550 pixels on both, and see how that works. MIght want to set the category wrappers as being smaller as well in base_home.php.

We do have the plan of taking it all to CSS in the future, but there were some other higher priority changes that needed to be done first. Hopefully this kind of thing will disappear when it does happen.

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #10 on: January 10, 2010, 03:11:21 PM »
I'll give it a shot, but I've already tried most things.

I should've tested this template before I translated it to Portuguese.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Homepage problem
« Reply #11 on: January 10, 2010, 03:43:52 PM »
I got it to work on the development install by editing the file template.php

The 2 side columns are set to 170 pixels wide, but the tables under them are set to 100% width. I changed them from 100% to 170 pixels absolute, and now they look closer to the same. Still need to play with the widths of some of the tags I think to make them exact, but it's a lot closer now.

Give it a try and let me know how it works.

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #12 on: January 10, 2010, 04:15:57 PM »
I tried what you wrote, but all that does is expand the page so the banner becomes too small. It makes the page wider on the homepage than on the other pages.

I really don't know where the crux of the problem is. I also don't understand why the Top Users and categories don't appear on the homepage.

montezuma

  • Newbie
  • *
  • Posts: 12
  • Force: +0/-0
Re: Homepage problem
« Reply #13 on: January 10, 2010, 04:35:54 PM »
I finally decided to do it by expanding the page and then fixing the sidebar widths.

Still don't know what's wrong with tops users and categories.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Homepage problem
« Reply #14 on: January 10, 2010, 04:37:50 PM »
Weird, it's working on the development install by doing that. It might take it having all of the above done to it, tweaking the center column table width and the side column table widths on both files base_home.php and template.php But that is the core of it, the center column is shifting width. And I think it has to do with the widths need to be more absolutely defined on the pages. Try setting the various table widths to being absolute rather than percentages, and tweaking the absolute widths as needed. The side ones should be set to 170, and I was working with widths of 550 for the overall center table, and 270 for the category wrapper tables. It was working on our server, this is a bit strange.

The side menu is meant to change with what the visitor is viewing at the time. If you are in the arcade section of the site, they see arcade related items in that menu. If they are in the blog section, they see blog related items, etc. This was done because we are also working on some other features: forum, video, jokes, funny pics, shop, etc. When the visitor is in the forum they will want forum items, etc.  The menu is controled by what is loaded for a menu when the page is accessed, through the file /index.php. You can change it to whatever you wish by editing the case switch. It was left blank for the main page for a reason, but I can't go into detail without giving away some things currently being thought out and worked on for the future.
« Last Edit: January 10, 2010, 04:39:41 PM by Prankster »