vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How can I move the reputation icon? (with example) (https://vborg.vbsupport.ru/showthread.php?t=254635)

sadiq6210 12-03-2010 08:15 PM

How can I move the reputation icon? (with example)
 
1 Attachment(s)
Hi,

In vb4, I just want to move the reputation icon as shown:
https://vborg.vbsupport.ru/attachmen...1&d=1291414516

I tried to edit the postbit_leg. template and move the code up but there is always a problem in place!

sadiq6210 12-04-2010 03:49 PM

up =)

Lynne 12-04-2010 05:00 PM

You need to move the code, but also add in some css (additional.css template) - modify as needed:
HTML Code:

/* Move reputation to top bar */
.postbitlegacy .posthead .nodecontrols a.reputation, .postbit .posthead .nodecontrols a.reputation {
    background: url({vb:stylevar imgdir_button}/reputation-40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
    padding: {vb:stylevar postbit_control_padding};
    padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
    border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .posthead .nodecontrols a.reputation:hover, .postbit .posthead .nodecontrols a.reputation:hover  {
    background: url({vb:stylevar imgdir_button}/reputation-40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
    padding: {vb:stylevar postbit_control_padding};
    padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
    border: {vb:stylevar postbit_control_hover_border};
}


sadiq6210 12-22-2010 02:04 PM

1 Attachment(s)
Thanks Lynne (f)

It is moved correctly but I have a problem in reputation popupmenu

see the screenshot (RTL language)

It comes like that:
https://vborg.vbsupport.ru/attachmen...1&d=1293033786


It should be like this:
https://vborg.vbsupport.ru/attachmen...1&d=1293033786

Any idea to solve this ?

Lynne 12-22-2010 02:47 PM

All I can say is that it's a CSS issue and you will have to modify the positioning of the box. I don't know what code that is since I don't have this problem on my test site.

sadiq6210 12-23-2010 03:51 AM

1 Attachment(s)
Lynne,
I tried to use the default style with NO changes in any template + english language (LTR)

but same issue

https://vborg.vbsupport.ru/attachmen...1&d=1293083248


____

What I changed in default style?

1- Add this code to template (Additional.css)

Code:

/* Move reputation to top bar */
.postbitlegacy .posthead .nodecontrols a.reputation, .postbit .posthead .nodecontrols a.reputation {
    background: url({vb:stylevar imgdir_button}/reputation-40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
    padding: {vb:stylevar postbit_control_padding};
    padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
    border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .posthead .nodecontrols a.reputation:hover, .postbit .posthead .nodecontrols a.reputation:hover  {
    background: url({vb:stylevar imgdir_button}/reputation-40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};
    padding: {vb:stylevar postbit_control_padding};
    padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
    border: {vb:stylevar postbit_control_hover_border};
}

2- In template (postbit_legacy), I cut this code

Code:

<vb:if condition="$show['reputationlink']">
                                                <span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /> -->&nbsp;</a></span>
                                        </vb:if>


and move it up, (paste it after this code)

Code:

        <span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">&nbsp;<span class="time">{vb:raw post.posttime}</span></vb:if></span>
                                </vb:if>
                        </span>
                        <span class="nodecontrols">

Anything wrong?

Lynne 12-23-2010 03:16 PM

Then just write some CSS to change it. Something like:
HTML Code:

.nodecontrols .popupbody li > label {color: pink;}
.formcontrols .blockrow label.full {color: pink;}


sadiq6210 12-23-2010 07:15 PM

Thanks Lynne

Now It is perfect =) Appreciated
I will paste the change here if someone need it in future

Code:

.blockhead {
        text-align: right;
        font-weight:bold;
}
.formcontrols > *:first-child,
.formcontrols .blocksubhead + .blockrow,
.formcontrols .section .blockrow:first-child {
        border-top:none;
        color: red;
        text-align: right;
}
.formcontrols .blockrow label {
        color: black;
        text-align: right;
}
.formcontrols .blockrow label.full {
        color: black;
        text-align: right;
}

For LTR language, Just change (right) >> (left)


All times are GMT. The time now is 09:33 PM.

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.00977 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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