vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to create a fiel for rep power in postbit? (https://vborg.vbsupport.ru/showthread.php?t=265813)

Sworm 06-26-2011 08:18 AM

How to create a fiel for rep power in postbit?
 
Hi all, i have a custom skin for my vb 4.1.4. The first fields of my postbit are inside a div, but not the rep power and blog post:
http://img13.imageshack.us/img13/5918/catturasl.jpg

Here my postbit:
Code:

<dl class="userinfo_extra">
                    <vb:if condition="$post['joindate']"><div class="post_field"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if>
                    <vb:if condition="$post['field2']"><div class="post_field"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if>
                    <vb:if condition="$post['age']"><div class="post_field"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>
                    <div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div>
                    {vb:raw template_hook.postbit_userinfo_right_after_posts}
                </dl>
                <vb:if condition="$show['infraction'] OR $show['reppower']">
                <dl class="user_rep">
                    <vb:if condition="$show['infraction']">
                    <dt>{vb:rawphrase infractions}</dt>
                    <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                    </vb:if>
                    <vb:if condition="$show['reputation']">
                        <vb:if condition="$show['reppower']">
                    <dt>{vb:rawphrase reppower}</dt>
                    <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                        </vb:if>
                    </vb:if>
                </dl>
                </vb:if>
                {vb:raw template_hook.postbit_userinfo_right}
                <div class="imlinks">
                    {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                </div>
            </vb:if>
        </div>
        <div class="postbody">
            <div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
                {vb:raw template_hook.postbit_messagearea_start}
                <vb:if condition="$post['title'] OR $show['messageicon']">
                <h2 class="title icon">
                    <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
                </h2>
                </vb:if>

Not there's a way to include this 2 fields in that rectangle?

Thanks in advance

Lynne 06-26-2011 02:53 PM

Move it up into the "<dl class="userinfo_extra">" area.

Sworm 06-26-2011 03:16 PM

Quote:

Originally Posted by Lynne (Post 2213029)
Move it up into the "<dl class="userinfo_extra">" area.


And removing from the <dl class="user_rep"> ? I'm talking abount reppower....

In this mode the gap will end too i think....

Lynne 06-26-2011 03:25 PM

Yes, just move it from one area to the other and see if it now looks like what you want it to look like.

Sworm 06-26-2011 03:31 PM

Yess work.... :) and the gap was removed :) thanks lynne ....

Now The empty
Code:

                <vb:if condition="$show['infraction'] OR $show['reppower']">
                <dl class="user_rep">

                </dl>
                </vb:if>

Must be removed or can be leaved like it is now?

Lynne 06-26-2011 03:33 PM

If it's empty, you might as well just remove it.

Sworm 06-26-2011 03:37 PM

You think should be a good idea to add inside that the vbseo "liked" ? vbseo is another third part product so should be proof to separate from the other fields.....

But i'm a bit confused because that cond and the dl are for rep and i don't know what can cause if i add inside them the 2 vbseo liked:
Code:

                <vb:if condition="$show['infraction'] OR $show['reppower']">
                <dl class="user_rep">
                    <div class="post_field"><dt>Mi Piace Ricevuti</dt> <dd>{vb:raw post.vbseo_likes_in}</dd></div>
                    <div class="post_field"><dt>Mi Piace Inviati</dt> <dd>{vb:raw post.vbseo_likes_out}</dd></div>
                </dl>
                </vb:if>

Not there's much sense in this code.... so maybe better to remove the empty tags.

Lynne 06-26-2011 03:43 PM

I don't know what that code is from and can't recommend doing anything to it. If it's from a mod, then you should ask the mod developer what to do with it.

Sworm 06-26-2011 03:47 PM

Understood, thanks lynne.


All times are GMT. The time now is 09:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01021 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete