Credits [Deleted]

Status
Not open for further replies.
You should ask the author of your credits add-on.

Already did, but he hasnt answered any questions in over a month. I'm sure lots of guys are using the credits, so can anyone please help me?

The problem should be easy to solve, a sytle or a template code somewhere, but I dont know where. Anyone???
 
Is there a limit for the credits?? 2 users have been posting all day, and suddenly they didnt get credits for new posts anymore. Is there a daily post creditlimit? Nothing like that is in the options, so why didnt they get their credits?
 
Already did, but he hasnt answered any questions in over a month. I'm sure lots of guys are using the credits, so can anyone please help me?

The problem should be easy to solve, a sytle or a template code somewhere, but I dont know where. Anyone???
Well, seeing as how I don't use it either, it's rather hard to trouble shoot without a related site to see it at (hint-hint... it sometimes is beneficial either to link your site in your request for help or at least have it in your profile so that others can find it).
 
You're right, thank you. This is the site: http://www.forumpiece.com/
It has to do with the add-on. It is setting the ExtraUserInfo amount to display as the class pairsInline and it needs to be pairsJustified. You will probably need to edit the associated add-on files or look and see if there is a template for the Credits add-on you are using via the ACP -> Templates (search for credit).
Which Credits add-on are you using? I can D/L it and take a look at the code and see if it needs to be changed in there (if you haven't found the associated template).
screenshot.webp
 
Last edited:
It has to do with the add-on. It is setting the ExtraUserInfo amount to display as the class pairsInline and it needs to be pairsJustified. You will probably need to edit the associated add-on files or look and see if there is a template for the Credits add-on you are using via the ACP -> Templates (search for credit).
Which Credits add-on are you using? I can D/L it and take a look at the code and see if it needs to be changed in there (if you haven't found the associated template).
View attachment 56360

These are the templates I got. I searched them form "inline" or "user", but couldnt find anything.

There is a BRC_credits template:
Code:
<xen:title>{xen:phrase BRC_credit}</xen:title>
<xen:navigation>
    <xen:breadcrumb href="{xen:link credits}">{xen:phrase BRC_credit}</xen:breadcrumb>
</xen:navigation>
<xen:require css="BRC_credits.css" />

<div class="section">
    <div id="creditStatistic">
        <div class="statisticColumn">
            <h3 class="primaryContent">{xen:phrase BRC_top_richest}</h3>
            <div class="secondaryContent">
                <div class="blockLinksList">
                    <ul>
                        <xen:foreach loop="$richestUsers" value="$richestUser">
                            <li class="memberListItem">
                                <div class="member">
                                    <a
                                        <xen:if is="{$richestUser.user_id} != {$visitor.user_id}">
                                            href="{xen:link 'credits/transfer', '', 'receiver={$richestUser.username}'}"
                                            title="{xen:phrase BRC_transfer}"
                                            class="Tooltip OverlayTrigger"
                                            data-cacheOverlay="no"
                                        <xen:else />
                                            href="{xen:link members, $richestUser}"
                                        </xen:if>
                                    >
                                        <div class="userInfo">
                                            <span class="username">{$richestUser.username}</span>
                                        </div>
                                        <div class="user_credit">{xen:helper brc_currencyformat, {$richestUser.credits},true}</div>
                                        <div class="clear"></div>
                                    </a>
                                </div>
                            </li>
                        </xen:foreach>
                    </ul>
                </div>
            </div>
        </div>
        <div class="statisticColumn">
            <h3 class="primaryContent">{xen:phrase BRC_top_poorest}</h3>
            <div class="secondaryContent">
                <div class="blockLinksList blockRight">
                    <ul>
                        <xen:foreach loop="$poorestUsers" value="$poorestUser">
                            <li class="memberListItem">
                                <div class="member">
                                    <a
                                        <xen:if is="{$poorestUser.user_id} != {$visitor.user_id}">
                                            href="{xen:link 'credits/transfer', '', 'receiver={$poorestUser.username}'}"
                                            title="{xen:phrase BRC_transfer}"
                                            class="Tooltip OverlayTrigger"
                                            data-cacheOverlay="no"
                                        <xen:else />
                                            href="{xen:link members, $poorestUser}"
                                        </xen:if>
                                    >
                                        <div class="userInfo">
                                            <span class="username">{$poorestUser.username}</span>
                                        </div>
                                        <div class="user_credit">{xen:helper brc_currencyformat, {$poorestUser.credits},true}</div>
                                        <div class="clear"></div>
                                    </a>
                                </div>
                            </li>
                        </xen:foreach>
                    </ul>
                </div>
            </div>
        </div>
        <div class="statisticColumn">
            <h3 class="primaryContent">{xen:phrase BRC_top_earned_in_day}</h3>
            <div class="secondaryContent">
                <div class="blockLinksList">
                    <ul>
                        <xen:foreach loop="$topEarnedInDays" value="$topEarnedInDay">
                            <li class="memberListItem">
                                <div class="member">
                                    <a
                                        <xen:if is="{$topEarnedInDay.user_id} != {$visitor.user_id}">
                                            href="{xen:link 'credits/transfer', '', 'receiver={$topEarnedInDay.username}'}"
                                            title="{xen:phrase BRC_transfer}"
                                            class="Tooltip OverlayTrigger"
                                            data-cacheOverlay="no"
                                        <xen:else />
                                            href="{xen:link members, $topEarnedInDay}"
                                        </xen:if>
                                    >
                                        <div class="userInfo">
                                            <span class="username">{$topEarnedInDay.username}</span>
                                        </div>
                                        <div class="user_credit">{xen:helper brc_currencyformat, {$topEarnedInDay.credits},true}</div>
                                        <div class="clear"></div>
                                    </a>
                                </div>
                            </li>
                        </xen:foreach>
                    </ul>
                </div>
            </div>
        </div>
        <div class="statisticColumn">
            <h3 class="primaryContent">{xen:phrase BRC_top_spent_in_day}</h3>
            <div class="secondaryContent">
                <div class="blockLinksList blockRight">
                    <ul>
                        <xen:foreach loop="$topSpentInDays" value="$topSpentInDay">
                            <li class="memberListItem">
                                <div class="member">
                                    <a
                                        <xen:if is="{$topSpentInDay.user_id} != {$visitor.user_id}">
                                            href="{xen:link 'credits/transfer', '', 'receiver={$topSpentInDay.username}'}"
                                            title="{xen:phrase BRC_transfer}"
                                            class="Tooltip OverlayTrigger"
                                            data-cacheOverlay="no"
                                        <xen:else />
                                            href="{xen:link members, $topSpentInDay}"
                                        </xen:if>
                                    >
                                        <div class="userInfo">
                                            <span class="username">{$topSpentInDay.username}</span>
                                        </div>
                                        <div class="user_credit">{xen:helper brc_currencyformat, {$topSpentInDay.credits},true}</div>
                                        <div class="clear"></div>
                                    </a>
                                </div>
                            </li>
                        </xen:foreach>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="sectionFooter overlayOnly"><a class="button primary OverlayCloser">{xen:phrase close}</a></div>
</div>

and a brc_credits.css:
Code:
#creditStatistic
{
    overflow: hidden; zoom: 1;
}#creditStatistic .clear
{
    clear: both;
}
#creditStatistic .statisticColumn
{
    float: left;
    width: 48%;
}
.xenOverlay #creditStatistic .statisticColumn
{
    float: left;
    width: 325px;
}

.xenOverlay #creditStatistic .blockLinksList
{
    height: 150px;
    overflow: auto;
}

#creditStatistic .blockLinksList ul
{
    padding-top: 5px;
    margin-top: 5px;
}
#creditStatistic .blockLinksList ul li
{
    border-top: 1px solid @primaryLighterStill;
}

    #creditStatistic .blockLinksList ul:first-child
    {
        padding-top: 0;
        border-top: none;
        margin-top: 0;
    }
    #creditStatistic .blockLinksList ul li:first-child
    {
        border-top: none;
    }

.xenOverlay #creditStatistic .blockRight
{
    border-left: 1px solid @primaryLighterStill;
}

#creditStatistic .blockLinksList li
{
    vertical-align: bottom;
}


.memberListItem .member {
    width:100%;
    margin:0;
    float: left;
    margin-bottom: 0px;
}
.memberListItem .member .userInfo{
    width:60%;
    float:left;
    font-weight:bold;
}
.memberListItem .member .user_credit{
    width:40%;
    float:left;
    text-align:right;
    font-weight:bold;
}
 
brc_credit_wrapper:
Code:
<xen:require css="account.css" />
<xen:edithint template="navigation_sidebar.css" />

<div class="container">
    <div class="navigationSideBar ToggleTriggerAnchor">
        <h4 class="heading ToggleTrigger" data-target="> ul"data-toggle-if-pointer="yes">{xen:phrase BRC_your_credit} <span></span></h4>
        <ul data-toggle-class="menuVisible">
            <xen:hook name="brc_credit_wrapper_sidebar">
            <li class="section">
                <!--<h4 class="subHeading">{xen:phrase alerts}</h4>-->
                <ul>
                    <xen:hook name="brc_credit_wrapper_sidebar_your_credit">
                    <li><a
                        class="{xen:if "{$selectedKey} == 'credits/index'", 'secondaryContent', 'primaryContent'}" data-cacheOverlay="no"
                        href="{xen:link credits}">{xen:phrase statistics}</a>
                    </li>
                    <li><a
                        class="{xen:if "{$selectedKey} == 'credits/transactions'", 'secondaryContent', 'primaryContent'}"
                        href="{xen:link credits/transactions}">{xen:phrase BRC_list_transactions}</a>
                    </li>
                    <xen:if is="{$canTransfer}">
                        <li><a
                            class="{xen:if "{$selectedKey} == 'credits/transfer'", 'secondaryContent', 'primaryContent'} Tooltip" title="{xen:phrase BRC_transfer}"
                            href="{xen:link credits/transfer}">{xen:phrase BRC_transfer}</a>
                            </li>
                    </xen:if>
                    </xen:hook>
                </ul>
            </li>
            </xen:hook>
        </ul>
    </div>
   
    <div class="mainContentBlock section sectionMain insideSidebar">
        <xen:hook name="brc_credit_wrapper_content">{xen:raw $_subView}</xen:hook>
    </div>
</div>

amount.css
Code:
<xen:include template="navigation_sidebar.css" />

.mainContentBlock .xenForm
{
    margin-top: 0;
}

.xenForm.personalDetailsForm .StatusEditor
{
    resize: vertical;
}

.xenForm.personalDetailsForm .statusEditorCounter
{
    position: absolute;
    top: 0px;
    right: 0px;
}

.xenForm.personalDetailsForm .avatarEditor .avatar
{
    float: left;
    margin-right: 8px;
}

.xenForm.personalDetailsForm .avatarEditor .avatar:hover img
{
    border-color: orange;
}

.xenForm.privacyForm .ctrl > ul select
{
    margin-bottom: 8px;
}
 
navigation_sidebar.css
Code:
.container {
    display: table;
    table-layout: fixed;
    width: 100%;
    zoom: 1;
}

.navigationSideBar
{
    width: 150px;
    display: table-cell;
    vertical-align: top;
    *float: left;
}
   
    .navigationSideBar .heading
    {
        border-top-right-radius: 0;
        margin: 10px 0 0;
    }

    .navigationSideBar .section:first-child
    {
        margin-top: 0;
    }

    .navigationSideBar .section:last-child
    {
        margin-bottom: 0;
    }
   
    .navigationSideBar .primaryContent
    {
        font-size: 11px;
    }

    .navigationSideBar .secondaryContent
    {
        font-weight: bold;
    }
   
    .navigationSideBar a
    {
        display: block;
        padding: 5px 10px;
        word-wrap: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }
   
    .navigationSideBar a:hover
    {
        background: @primaryLighterStill url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
        color: @primaryLightish;
        text-decoration: none;
    }
   

.mainContentBlock
{
    display: table-cell;
    vertical-align: top;
    margin: 0;
    *margin-left: 150px;
    zoom: 1;
}

<xen:if is="@enableResponsive">
@media (max-width:@maxResponsiveNarrowWidth)
{
    .Responsive .navigationSideBar
    {
        display: block;
        position: relative;
        margin: 0 auto;
        width: 200px;
        box-sizing: border-box;
    }

    .Responsive .navigationSideBar .heading
    {
        margin: 0;
        border-top-right-radius: @heading.border-top-right-radius;
        border-bottom: 0;
        text-align: center;
        cursor: pointer;
    }
   
        .Responsive .navigationSideBar .heading span
        {
            @property "popupArrowClosed";
            background-image: url('@imagePath/xenforo/xenforo-ui-sprite.png');
            background-repeat: no-repeat;
            background-position: -32px 0;
            margin-top: -2px;
            margin-left: 2px;
            display: inline-block;
            *margin-top: 0;
            vertical-align: middle;
            width: 13px;
            height: 14px;
            @property "/popupArrowClosed";
        }

    .Responsive .navigationSideBar > ul
    {
        display: none;
        position: absolute;
        background: @contentBackground;
        border: 1px solid @primaryLighterStill;
        box-shadow: 5px 5px 25px rgba(0,0,0, 0.5);
        border-top: none;
        width: 200px;
        box-sizing: border-box;
        z-index: 51;
    }
   
    .Responsive .navigationSideBar > ul.menuVisible
    {
        display: block;
    }

    .Responsive .navigationSideBar .section:last-child li:last-child a
    {
        border-bottom: none;
    }
   
    html.Responsive:not(.hasJs) .navigationSideBar:hover > ul
    {
        display: block;
    }

    .Responsive .mainContentBlock
    {
        display: block;
    }
}
</xen:if>


I am new to html, so I still have a hard time :/ Sorry for the inconvenience!!
 
I am new to html, so I still have a hard time :/ Sorry for the inconvenience!!
Which add-on is it (******* Credits?). If it is a paid one, then I won't be able to help since I don't use it and won't purchase it just to trouble shoot it (sorry).
The associated template that it is displaying it from is message_user_info. That template has some associated code
Code:
        <div class="extraUserInfo">
            <xen:contentcheck>
            <xen:hook name="message_user_info_extra" params="{xen:array 'user={$user}', 'isQuickReply={$isQuickReply}'}">
                <xen:if is="@messageShowRegisterDate AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase joined}:</dt>
                        <dd>{xen:date $user.register_date}</dd>
                    </dl>
                </xen:if>
               
                <xen:if is="@messageShowMessageCount AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase messages}:</dt>
                        <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed">{xen:number $user.message_count}</a></dd>
                    </dl>
(see the dl class="pairsJustified").
 
If you want to start a conversation with me and provide an Administrator logon and server access (via cPanel if that is what you use) I'll be happy to take a quick look at it when I can.
 
Which add-on is it (******* Credits?). If it is a paid one, then I won't be able to help since I don't use it and won't purchase it just to trouble shoot it (sorry).
The associated template that it is displaying it from is message_user_info. That template has some associated code
(see the dl class="pairsJustified").

I took a look at that template. All extra user infos are pairsJustified, and there is no extra user info "show credits". can't we just overwrite this in the extra.css?
could you give me a code, similar to

Code:
<xen:if is="@messageShowMessageCount AND {$user.user_id}">
                    <dl class="pairsJustified">
                        <dt>{xen:phrase messages}:</dt>
                        <dd><a href="{xen:link search/member, '', 'user_id={$user.user_id}'}" class="concealed">{xen:number $user.message_count}</a></dd>
                    </dl>

just with the credits? is that possible?
 
@Gobee129, I'm pretty sure it's the code in the add-on writing it out. What add-on is it? I'm about to give myself a self-imposed ban since I violated one of the rules here on a post I did so I won't be around to post during that time period (will only be checking in for any new updates to add-ons that I use).
You won't be able to modify manually the template to include that if the add-on is injecting it. Maybe @Jeremy can give you a hint if you start a conversation with him since you apparently can't get support from the add-on author.
 
@Gobee129, I'm pretty sure it's the code in the add-on writing it out. What add-on is it? I'm about to give myself a self-imposed ban since I violated one of the rules here on a post I did so I won't be around to post during that time period (will only be checking in for any new updates to add-ons that I use).
You won't be able to modify manually the template to include that if the add-on is injecting it. Maybe @Jeremy can give you a hint if you start a conversation with him since you apparently can't get support from the add-on author.

Selfimposed ban? ^^ damn -.- well thx a lot so far!!

I am using this addon from ******* http://xenforo.com/community/threads/credits.43727/
 
Looks excellent add-on .. I have installed the add-on and I guess it is just perfect
in my forum I give real money to users against credits and I don't want my users to earn more than say 10 or 15 credits in a day


You give your users real money? Whats the url?
 
Shop for XenForo is developing

View attachment 53542

@******* This looks great.

I just read all 19 pages and setup my Credits addon, it looks good so far!

I would like to pay for some custom work for a REFERRAL feature.

I would like my users to be able to refer others with a custom referral URL, and earn credits for every user that joins using that referral url. Heres what would be needed:

1) Way for users to get their referral link for sharing online (probably in profile page, or a link here http://grab.by/qeQA)
2) Way for the xenforo system to track who referred who based on the referral URL used to register
3) Way for Credits addon to award currency when users get referrals
4) "Most Referrals" option in the Members tab http://grab.by/qeQI

I'd be willing to pay to expedite this development as I was hoping to launch my forum this week, and this would be an awesome feature to help the site grow.
 
@******* This looks great.

I just read all 19 pages and setup my Credits addon, it looks good so far!

I would like to pay for some custom work for a REFERRAL feature.

I would like my users to be able to refer others with a custom referral URL, and earn credits for every user that joins using that referral url. Heres what would be needed:

1) Way for users to get their referral link for sharing online (probably in profile page, or a link here http://grab.by/qeQA)
2) Way for the xenforo system to track who referred who based on the referral URL used to register
3) Way for Credits addon to award currency when users get referrals
4) "Most Referrals" option in the Members tab http://grab.by/qeQI

I'd be willing to pay to expedite this development as I was hoping to launch my forum this week, and this would be an awesome feature to help the site grow.
This would be GREAT. I was actually looking for this feature as well, wonder how much he would charge?
 
Status
Not open for further replies.
Top Bottom