Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7778801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:29:21+00:00 2026-06-01T18:29:21+00:00

I have a mini box that pops up when hovered to reveal profile information(constantly

  • 0

I have a mini box that pops up when hovered to reveal profile information(constantly being hidden). It’s working due to a template include:

{% for i in leftbar_network|slice:":12" %}
     {% include "includes/mini_profile.html" %} 
{% endfor %}

But I want to add some conditions and pull other information… for instance: check if they can be messaged. pull that specific profiles friend count.. yadda yadda. I have a url and view that should work. But it seems as though they’re being completely ignored.

template:

<div class="mini-profile">
    <div class="mini-profile-top">
        <a href="/profile/{{i.get_type|lower}}/{{ i.user.username }}/" data-title="{{ i.user.get_full_name }}" data-content="{{i.get_type}}">
            <img class="img-frame" width="90" height="90" src="{% if i.avatar %}{% thumbnail i.avatar 120x120 crop %}{% else %}{{ DEFAULT_AVATAR }}{% endif %}" alt="{{ i.user.get_full_name }}" />
        </a>
        <a href="/profile/{{i.get_type|lower}}/{{ i.user.username }}/" data-title="{{ i.user.get_full_name }}" data-content="{{i.get_type}}">{{ i.user.get_full_name }}</a>
        <div>{{ i.get_type }}</div>
    </div>
    <div class="mini-profile-bottom">
        {% if can_message %}
        <form method="GET" action="/messages/compose/{{ i.get_type|lower }}/{{ i.user.username }}/">
            <button class="btn btn-margin" type="submit">
                <i class="icon-envelope"></i> Message
            </button>
        </form>
        {% else %}
        <button class="btn btn-margin tooltip-bottom disabled" title="You need to be connected to message {{profile.user.get_full_name}}" type="submit">
            <i class="icon-envelope"></i> Message
        </button>
        {% endif %}
    </div>
</div>

Is there any way to work with the {% include %} and generate a view around that? Or have I gone about this the wrong way? If so, how should I generate a mini box with a view and url that pops up smoothly?

Example: Google chat, when hovering over a user.

Thanks for your advice in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:29:22+00:00Added an answer on June 1, 2026 at 6:29 pm

    I want to add some conditions and pull other information… for
    instance: check if they can be messaged. pull that specific profiles
    friend count

    Sounds like your are looking for a template tag, for an inclusion tag, to be more specific.

    So you can put the (python/view) logic in your tag and render the appropiate html similiar to your include.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a mini installer in NSIS that installs patches for my application.
Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
i have a mini app where users can login, view their profile, and follow
I have a mini API that is only for an app I have built.
I have an asp.net site using the Google Mini. I have a search box
I have a mini project that I'd like to start on port 2000. How
I have mini forum site im coding and when users make their profile they
I have configured mini profiler with asp.net mvc application. I also want to profile
I have built mini widgets that consist of a model, a controller a couple
I have an App (Mini file manager) on my phone that has a button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.