test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • josehenriquesnet Friend
    #150010

    Hi !
    Can’t i make the positions (user1 to user5) have a variable size, so it will adjust automatically with anything i put on them without leaving a big space between the users and the content-top box ?
    Help on how to make this (if possible) with file locations and possible code correction would be most appreciated.

    Saguaros Moderator
    #338743

    Dear josehenriquesnet!

    Please open the file templatesja_selenilayoutsblockstopsl.php and find codes:
    [PHP]
    $spotlight = array (‘user1′,’user2′,’user3′,’user4′,’user5’);
    $botsl = $this->calSpotlight ($spotlight,100);
    [/PHP]

    if you adjust the size of user 1:

    [PHP]
    [PHP]
    $spotlight = array (‘user1′,’user2′,’user3′,’user4′,’user5′);
    //function calSpotlight ($spotlight, $totalwidth=100, $specialwidth=0, $special=’first’)
    $botsl = $this->calSpotlight ($spotlight,100, 30, ‘user1’);
    [/PHP]

    Good luck

    josehenriquesnet Friend
    #338776

    Unfortunately, and after trying your suggestion, I did not solve my problem as the space between my users and content-top box did not shorten.
    The website is http://www.atletas.net and as you can see on home page it as alot of spacing between the pub banner and the news as well as a line that i can’t seem to be able to erase :((
    Can you please help me arrange this ?

    Saguaros Moderator
    #338875

    Dear josehenriquesnet!

    The previous anwser is using for adjust to widht of user1,2,3,4. not use to redure the space.
    Pls add the following style into the template.css

    #ja-topsl p {
    margin:0px;
    }

    Good luck

    reweb Friend
    #340382

    Hi,

    I’m trying to set user1 and user 4 to take:
    user1 with 680px (width) and user4 about 280px (width) but can’t getting.

    Can you help me ?

    Can I set fix height for this modules too?

    Thanks

    Saguaros Moderator
    #340436

    Dear reweb!

    Can you pls give me the link to your site, if the width is not change, please add the “!important” after each property;

    for example:
    not change:

    .user1{
    width:400px;
    }

    change:

    .user1{
    width:400px !important;
    }

    reweb Friend
    #340532

    Sorry, but i inserted this code : .user1{ width:400px !important; } at template.css and not changed. continues automatically distributing 50% / 50% of size (as see at picture below)

    I need to do other change like: $spotlight = array (‘user1′,’user2′,’user3′,’user4′,’user5′);
    //function calSpotlight ($spotlight, $totalwidth=100, $specialwidth=0, $special=’first’)
    $botsl = $this->calSpotlight ($spotlight,100, 30, ‘user1’);
    ?

    Thanks

    Saguaros Moderator
    #340567

    Ok you change php codes as following
    [PHP]
    $spotlight = array (‘user1′,’user2′,’user3′,’user4′,’user5’);
    $botsl = $this->calSpotlight ($spotlight,100, 50, ‘user1’);
    [/PHP]

    and if possbile give me the link to your site

    Thanks

    reweb Friend
    #340711

    I founded by myself ( using developer tool of crhome). I changed the lines at topsl.php to:

    [PHP]<div class=”ja-box column ja-box<?php echo $botsl[‘user1’][‘class’]; ?>” style=”width:”680px;height:300px”> [/PHP] and [PHP]<div class=”ja-box column ja-box<?php echo $botsl[‘user4’][‘class’]; ?>” style=”width:280px; height:300px”>
    [/PHP] It works!

    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 3 voices, and was last updated by  reweb 14 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum