The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    How to get forum description image

    avatar
    Guest
    Guest


    Solved How to get forum description image

    Post by Guest November 10th 2022, 10:50 am

    Version: AwesomeBB
    When I create some forum in category, I add an image as part of description. That's fine, I can see it displayed, but, is there a way to get access only to the image, seperatly from description text?

    How  to get forum description image Screen30

    I am trying to move that image all the way left, because I removed forum icons for new, old etc. Inside template I have only this:
    Code:
    {catrow.forumrow.FORUM_DESC}
    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1581
    Reputation : 268
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: How to get forum description image

    Post by Razor12345 November 10th 2022, 12:17 pm

    Good afternoon!

    In the template index_box find:

    Code:
    {catrow.forumrow.FORUM_DESC}

    Replace by this:

    Code:
    <div class='forum_img'>{catrow.forumrow.FORUM_DESC}</div>

    Save. Publish.

    In CSS:

    Code:
    .forum_img {
      margin-left: -50px;
    }

    Save.

    -50px - find the right value for you



    How  to get forum description image Screen51

    TonnyKamper likes this post

    avatar
    Guest
    Guest


    Solved Re: How to get forum description image

    Post by Guest November 10th 2022, 12:31 pm

    This code works, that's good. However, I can not separate text from image. They are sticked. What if i want to move text to some other part of forum look? Which is what i want. Image would follow, at the moment. Your code do this:

    How  to get forum description image Screen31
    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1581
    Reputation : 268
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: How to get forum description image

    Post by Razor12345 November 10th 2022, 12:36 pm

    In description of forum:

    Code:
    <div class="forum_text">
       Text of description
    </div>

    Save.

    In CSS:

    Code:
    .forum_text {
        margin-left: 150px;
    }

    150px - find the right value for you



    How  to get forum description image Screen51

    TonnyKamper likes this post

    avatar
    Guest
    Guest


    Solved Re: How to get forum description image

    Post by Guest November 10th 2022, 12:44 pm

    Razor12345 wrote:In description of forum:

    Code:
    <div class="forum_text">
       Text of description
    </div>

    Save.

    In CSS:

    Code:
    .forum_text {
        margin-left: 150px;
    }

    150px - find the right value for you

    Ah yes, I see now how this works. It's functional but to make it perfect I need to make description maybe absolute and put it somewhere, not sure. Because I was hoping to move let's say here:

    How  to get forum description image Screen32

    It's just an example. I can't move it like other span tags.
    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1581
    Reputation : 268
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: How to get forum description image

    Post by Razor12345 November 10th 2022, 1:50 pm

    This we use:

    In the template index_box find:

    Code:
    {catrow.forumrow.FORUM_DESC}

    Replace by this:

    Code:
    <div class='forum_img'>{catrow.forumrow.FORUM_DESC}</div>

    And this we use:

    In description of forum:

    Code:
    <div class="forum_text">
      Text of description
    </div>

    CSS code we delete. And put this code in CSS:

    Code:
    .forum_img {
    position: relative;
    margin-left: -80px; /* press the image to border */
    }

    .forum_text {
      position: absolute;
      left: 139%;  /* changing the position of the comment block */
      bottom: -220%;  /* changing the position of the comment block */
      width: 200px;    /* width of comment block */
      text-align: justify;  /* align text in comment block */
    }

    Result:

    How  to get forum description image Ouo53

    TonnyKamper likes this post

    avatar
    Guest
    Guest


    Solved Re: How to get forum description image

    Post by Guest November 10th 2022, 2:32 pm

    Yes, I get it now. All I need to do is position it by my standards. Okay, thanks my man. Solved.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: How to get forum description image

    Post by skouliki November 10th 2022, 6:09 pm

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules


      Current date/time is November 11th 2024, 8:19 pm