Jump to content

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


Recommended Posts

Posted

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.

numberoftopicsstarted.png

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.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

  • 11 months later...

  • 2 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • 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.