Jump to content

Ipb: Culori Alternative La Categorii, Posturi, Etc.


Courage

Recommended Posts

  • Moderators

Am găsit pe un forum o chestie interesantă: culoare alternativă la categorii, mesaje şi listă de subiecte, adică:

 

98441.png

 

 

 

Am întrebat un administrator de p'acolo cum se face şi mi-a zis:

 

 

 

 

In template-ul "Board Index -> boardIndexTemplate" este urmatoarea bucla
 

<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">

In interiorul eu folosesti un iterator:

<php> bla bla cod php </php>

 

In CSS definesti o clasa noua pentru culoarea alternativa si cand iteratorul are valori impare aplici acea clasa pe elementele <TR> corespunzatoare

 

<tr class='redirect_forum AICI_CLASA_NOUA' id='f_{$forum_data['id']}'>

<tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread</if> AICI_CLASA_NOUA'>

 

 

Dar credeţi-mă că nu am înţeles nimic...

 

Deci, ce trebuie să fac şi unde?

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.