Jump to content

Probleme Ipb 3 - Custom Profile Fields


Stix

Recommended Posts

Mai am o problema legata de IPB si doresc a avea suport din partea voastra sa ma ajutati si pe mine.

Totul este legat de profilul utilizator-ului si legenda forum-ului.

1. Doresc a adauga la profilul utilizatorului urmatoarele optiuni ce sunt cu rosu scrise si in imaginea de mai jos , adica:



  • Descrierea gen: GamerJr o vreau dedesubptu avatar-ului nu deasupra avatar-ului , dupa rank as dorii sa fie acele 2 optiuni : Adauga Prieten / Trimite un mesaj privat.
  • Post ( postari ) , Gender ( genul masculin / feminin ) , Jucator SA:MP ( Da / Nu ) , Jucator CS ( Da / Nu ) , Jucator WOW ( Da / Nu ) , Jucator Mu ( Da / Nu ) si nu in ultimul caz GFX SKILL : No info .

Imagine demonstrativa

epnmnq.png

2. Doresc a ingrosa legenda

Imagine demonstrativa neingrosata :

29zodxu.png

Imagine demonstrativa ingrosata :

11w7gjn.png

V-am cerut ajutorul pentru ca ma chinui de ceva timp sa fac aceste optiuni si pana astazi nu am reusit , v-as fii foarte recunoscator daca m-ati ajuta si de data asta , multumesc foarte mult astept sa-mi raspundeti.

Link to comment
Share on other sites

Nu am prea mult timp acum, insa pentru:

• Post ( postari ) , Gender ( genul masculin / feminin ) , Jucator SA:MP ( Da / Nu ) , Jucator CS ( Da / Nu ) , Jucator WOW ( Da / Nu ) , Jucator Mu ( Da / Nu ) si nu in ultimul caz GFX SKILL : No info.

trebuie sa te joci putin cu: Custom Profile Fields; ACP -> Members -> Custom Profile Fields -> Add Field

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Asta stiam gaby , dar as dorii sa fie asa Jucator SA:MP: Da , si sa fie ordonate.

Adica Jucator SA:MP - sa fie ingrosat daca ma intelegi.

Astept cand ai mai mult timp sa ma ajuti si pe mine in problemele mentionate mai sus , multumesc mult.

Link to comment
Share on other sites

Pai, de ordonat le ordonezi tu, din ACP -> Members -> Custom Profile Fields

Pentru a le ingrosa, in dreptul campului Topic View Format, incearca ceva de genul:

<strong><span class='row_title'>{title}:</span><span class='row_data'>{content}</span></strong>
topicviewformat.png Pentru celelalte probleme, va trebui sa faci ceva modificari in ACP -> Look / Feel -> Skin Manager -> (alegi skin-ul tau) > Manage Templates / CSS > Global Templates > UserInfoPane Vezi liniile:
<ul class='user_details'> 
<if test="avatar:|:$author['member_id'] AND $author['avatar']">
<li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}">{$author['avatar']}</a></li>
<else />
<li class='avatar'>{$author['avatar']}</li>
</if>
<if test="membertitle:|:$author['title']">
<li class='title'>{$author['title']}</li>
</if>
<if test="rankimage:|:$author['member_rank_img']">
<li class='group_icon'>
<if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
<img src='{$author['member_rank_img']}' alt='{$this->lang->words['icon']}' />
<else />
{$author['member_rank_img']}
</if>
</li>
</if>
</ul>
<div style='margin: 0 auto;'>
<ul class='user_controls clear'>
<if test="friendop:|:$this->memberData['member_id'] AND $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends'] && $author['member_id']">
<if test="isfriend:|:IPSMember::checkFriendStatus( $author['member_id'] )">
<li class='mini_friend_toggle is_friend' id='friend_{$contentid}_{$author['member_id']}'><a href='{parse url="app=members&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$author['member_id']}&amp;secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}'>{parse replacement="remove_friend"}</a></li>
<else />
<li class='mini_friend_toggle is_not_friend' id='friend_{$contentid}_{$author['member_id']}'><a href='{parse url="app=members&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$author['member_id']}&amp;secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}'>{parse replacement="add_friend"}</a></li>
</if>
</if>
<if test="sendpm:|:$this->memberData['g_use_pm'] AND $this->memberData['member_id'] != $author['member_id'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' ) && $author['member_id']">
<li class='pm_button' id='pm_{$contentid}_{$author['member_id']}'><a href='{parse url="app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$author['member_id']}" base="public"}' title='{$this->lang->words['pm_member']}'>{parse replacement="send_msg"}</a></li>
</if>
<if test="hasblog:|:$author['has_blog'] AND IPSLib::appIsInstalled( 'blog' )">
<li><a href='{parse url="app=blog&amp;module=display&amp;section=blog&amp;mid={$author['member_id']}" base="public"}' title='{$this->lang->words['view_blog']}'>{parse replacement="blog_link"}</a></li>
</if>
<if test="hasgallery:|:$author['has_gallery'] AND IPSLib::appIsInstalled( 'gallery' )">
<li><a href='{parse url="app=gallery&amp;module=user&amp;section=user&amp;user={$author['member_id']}" base="public"}' title='{$this->lang->words['view_gallery']}'>{parse replacement="gallery_link"}</a></li>
</if>
</ul>
</div>
<ul class='user_fields'>
<li>
<span class='ft'>{$this->lang->words['m_group']}</span>
<span class='fc'>{$author['_group_formatted']}</span>
</li>
<if test="ismember:|:$author['member_id']">
<li>
<span class='ft'>{$this->lang->words['m_posts']}</span>
<span class='fc'>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span>
</li>
<li>
<span class='ft'>{$this->lang->words['m_joined']}</span>
<span class='fc'>{parse date="$author['joined']" format="joined"}</span>
</li>
</if>
<if test="authorcfields:|:$author['custom_fields'] != """>
<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
<if test="$field != ''">
<li>
{$field}
</li>
</if>
</foreach>
</foreach>
</if>
</ul>
<if test="authorwarn:|:$author['warn_percent'] !== NULL">
<br class='clear' />
<div class='warn_panel clear rounded'>
<if test="$this->settings['warn_show_rating']">
<strong><a href='{parse url="app=members&amp;module=warn&amp;section=warn&amp;do=view&amp;mid={$author['member_id']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>
<p class='rating_mode user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>
<if test="changewarn:|:$author['can_edit_warn']">
<a href='{parse url="app=members&amp;module=warn&amp;section=warn&amp;type=minus&amp;mid={$author['member_id']}&amp;t=0&amp;st=0" base="public"}' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down' /></a>
</if>
&lt;&nbsp;{$this->settings['warn_min']} ( {$author['warn_level']} ) {$this->settings['warn_max']}&nbsp;&gt;
<if test="changewarn:|:$author['can_edit_warn']">
<a href='{parse url="app=members&amp;module=warn&amp;section=warn&amp;type=add&amp;mid={$author['member_id']}&amp;t={$this->request['t']}&amp;st={$this->request['st']}" base="public"}' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a>
</if>
</p>
<else />
<if test="changewarn:|:$author['can_edit_warn']">
<a href='{parse url="app=members&amp;module=warn&amp;section=warn&amp;type=add&amp;mid={$author['member_id']}&amp;t={$this->request['t']}&amp;st={$this->request['st']}" base="public"}' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a><a href='{parse url="app=members&amp;module=warn&amp;section=warn&amp;type=minus&amp;mid={$author['member_id']}&amp;t=0&amp;st=0" base="public"}' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down' /></a>
</if>
<strong><a href='{parse url="app=members&amp;module=warn&amp;section=warn&amp;do=view&amp;mid={$author['member_id']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>
<if test="highwarn:|:$author['warn_percent'] >= 80">
<p class='progress_bar user_warn limit' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>
<else />
<p class='progress_bar user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>
</if>
<span style='width: {$author['warn_percent']}%'><span>{$this->lang->words['warn_level']} {$author['warn_percent']}%</span></span>
</p>
</if>
</div>
</if>
[/code]

[i]Documentatie ajutatoare:[/i] [color="#0000FF"]IPB 3: Where to edit user fields in the postbit?[/color]

  • Like 1

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.