Jump to content

Afisare Numar De Topicuri In Ipb Topicview (Number Of Topics Started)


Recommended Posts

Pentru afisarea numarului de topicuri create de utilizatorii forumului dvs. (platforma IPB) in topic view (pagina ce contine posturile unui topic), ca in imaginea de mai jos, exista doua posiblitati.


Prima, mai usoara si pe care as recomanda-o, ar fi instalarea hook-ului: Number of Topics Started 1.1.0 , compatibil cu IP.Board 3.1, 3.2 si 3.3.

(Shows the count of the number of topics that member has started in the User Info Pane area to the left of their posts in each topic.)

A doua metoda, ar fi, adaugarea unui cod in fisierele temei folosite, manual:

Navigati catre: ACP -> Look / Feel -> Skin Manager -> (alegi skin-ul folosit) -> Manage Templates / CSS -> Global Templates -> UserInfoPane

Cautati liniile:

<if test="postCount:|:$author['member_id']"> 
<li class='post_count desc lighter'>
{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}
</li>[/code] sub ele, adaugati:
[code]<center><php>$topics=ipsRegistry::DB()->buildAndFetch(array('select'=>'count(*) as topics','from'=>'topics','where'=>"starter_id=".$author['member_id']));</php>Topics {$topics['topics']}</center>

Savati modificarile, si inchideti fisierul UserInfoPane.

Numai bine :pct2: !

  • Upvote 4

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

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.

Link to comment
Share on other sites

  • 11 months later...

  • 2 months later...

Join the conversation

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

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.