Welcome to WebDesignForums.net!
You're currently viewing WDF as a guest. By registering for a free account, you'll be able to participate with other members in our friendly community. Being a member allows you to ask questions and get answers for those troublesome web development tasks!

In addition, as a member you'll be able to post your websites up for review. Using our unique website review system you can gain some amazing feedback from some of the best web developers around. This is a completely free service to all registered members.

Ready to register yet? Registration is 100% free. Click Here To Join Now!

Another slider-ish thing that isn't working

Discussion in 'General Web Design Discussion' started by shovenose, Jul 19, 2012.

  1. Offline

    shovenose Account Closed

    Message Count:
    2,036
    Likes Received:
    129
    Trophy Points:
    63
    Gender:
    Male
    Location:
    Fairfax, CA


  2. Offline

    shovenose Account Closed

    Message Count:
    2,036
    Likes Received:
    129
    Trophy Points:
    63
    Gender:
    Male
    Location:
    Fairfax, CA
    Also, one more thing: for some reason the rounded corners in the widgets don't work in Firefox :(
    thanks


  3. Offline

    smoseley Administrator

    Message Count:
    9,727
    Likes Received:
    192
    Trophy Points:
    63
    Location:
    Boston, MA
    Slide-down thing works for me (I'm in Chrome)! And you have -moz-border-radius on your widgets... the corners should look fine in firefox?


  4. Offline

    shovenose Account Closed

    Message Count:
    2,036
    Likes Received:
    129
    Trophy Points:
    63
    Gender:
    Male
    Location:
    Fairfax, CA
    Well I fixed the slider thign a few hours ago. But the widgets still aren't rounded...
    Thanks!
    BTW, do you have any bright ideas as to how I could save settings such as widget position to the database? Thanks!


  5. Offline

    smoseley Administrator

    Message Count:
    9,727
    Likes Received:
    192
    Trophy Points:
    63
    Location:
    Boston, MA
    Try something like this... to pull them:

    select * from user_widgets
    where user_id = 123
    order by column, weight;

    Code:
    CREATE TABLE user_widgets (
        `user_id` int unsgined not null references users(id),
        `widget_id` int unsigned not null references widgets(id),
        `column` enum('left','right','center') not null default 'left',
        `weight` smallint not null default 0,
        primary key (widget_id, user_id),
        index (column, weight)
    ) engine=innodb;
    


  6. Offline

    shovenose Account Closed

    Message Count:
    2,036
    Likes Received:
    129
    Trophy Points:
    63
    Gender:
    Male
    Location:
    Fairfax, CA
    Great! I'll definitely try that.
    So, I should assign each widget a number, then for location 1 it pulls widget 8, then for location 2, it pulls widget 4, etc.?
    Thank you very much


  7. Online

    Ronald Roe Well-Known Member

    Message Count:
    1,121
    Likes Received:
    281
    Trophy Points:
    83
    Gender:
    Male
    Location:
    Oklahoma City/Norman/Midwest City
    Pretty sure FF doesn't use the vendor prefix for that any more. Doesn't use, as in won't.


  8. Offline

    smoseley Administrator

    Message Count:
    9,727
    Likes Received:
    192
    Trophy Points:
    63
    Location:
    Boston, MA
    shove, widgets should have their own table (CREATE TABLE widgets) with additional information.

    ron, good to know... so then just straight border-radius for FF now?


  9. Online

    Ronald Roe Well-Known Member

    Message Count:
    1,121
    Likes Received:
    281
    Trophy Points:
    83
    Gender:
    Male
    Location:
    Oklahoma City/Norman/Midwest City
    Yeah. Skips right over it. Don't forget to add the background-clip for FF, though or your background images may leak out of the corner.


  10. Offline

    shovenose Account Closed

    Message Count:
    2,036
    Likes Received:
    129
    Trophy Points:
    63
    Gender:
    Male
    Location:
    Fairfax, CA
    I've never heard of the backgorund clip so I'll look it up. Thanks for letting me know!


Share This Page