Jump to content

Bun venit pe UxG ~ Ultra X Gaming
Înregistrați-vă acum pentru a avea acces la toate funcțiile noastre. După ce v-ați înregistrat și v-ați conectat, veți putea să creați subiecte, să răspundeți cu postări la subiectele existente, să oferiți reputație colegilor, să obțineți propriul mesager privat, să vă actualizați statusul, să vă gestionați profilul și multe altele. Dacă aveți deja un cont, Loghează-te aici - in caz contrar Crează un cont gratuit astăzi!
Photo

[3.2.5]Butoane topic nou,raspunde,blocat sistem nou

phpbb 3.2.5

  • Please log in to reply
3 replies to this topic

#1
mr.franta

mr.franta

    Membru UxG

  • Moderator
  • 36 posts
Cred ca multi dintre voi va doriti un nou aspect la butoanele de topic care sa iasa in evidenta.
Pentru a obtine acest rezultat trebuie sa modificam doua template-uri: viewforum_body si viewtopic_body
Autor: mr.franta
Versiune phpbb: 3.2.5
Data: 3 februarie 2019
Rezultat final:
 
Bun,haideti sa incepem.
 
In template-ul viewforum_body cautati si indentificati urmatorul cod:
<!-- IF S_DISPLAY_POST_INFO or .pagination or TOTAL_POSTS or TOTAL_TOPICS -->
<div class="action-bar bar-top">
 
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
<!-- EVENT viewforum_buttons_top_before -->
 
<a href="{U_POST_NEW_TOPIC}" class="button" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
<!-- IF S_IS_LOCKED -->
<span>{L_BUTTON_FORUM_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
<!-- ELSE -->
<span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
<!-- ENDIF -->
</a>
<!-- EVENT viewforum_buttons_top_after -->
<!-- ENDIF -->
 
Dupa ce l-ati indentificat il stergeti si il inlocuiti cu acesta:
 
<!-- IF S_DISPLAY_POST_INFO or .pagination or TOTAL_POSTS or TOTAL_TOPICS -->
<div class="action-bar bar-top">
 
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
<!-- EVENT viewforum_buttons_top_before -->
 
<!-- IF S_IS_LOCKED -->
<a href="{U_POST_NEW_TOPIC}" class="button" id="lock">
<span>{L_BUTTON_FORUM_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
</a>
 
<!-- ELSE -->
<a href="{U_POST_NEW_TOPIC}" class="button" id="new">
<span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
 
</a>
<!-- ENDIF -->
 
Tot in template-ul viewforum_body cautati:
<div class="action-bar bar-bottom">
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
<!-- EVENT viewforum_buttons_bottom_before -->
 
<a href="{U_POST_NEW_TOPIC}" class="button" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
<!-- IF S_IS_LOCKED -->
<span>{L_BUTTON_FORUM_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
<!-- ELSE -->
<span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
<!-- ENDIF -->
</a>
 
<!-- EVENT viewforum_buttons_bottom_after -->
<!-- ENDIF -->
 
Acelasi lucru: il stergeti si il inlocuiti cu acesta:
 
<div class="action-bar bar-bottom">
<!-- IF not S_IS_BOT and S_DISPLAY_POST_INFO -->
<!-- EVENT viewforum_buttons_bottom_before -->
 
<!-- IF S_IS_LOCKED -->
<a href="{U_POST_NEW_TOPIC}" class="button" id="lock">
<span>{L_BUTTON_FORUM_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
</a>
<!-- ELSE -->
<a href="{U_POST_NEW_TOPIC}" class="button" id="new">
<span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
 
</a>
<!-- ENDIF -->
 
 
Mergem mai departe in template-ul viewtopic_body si cautam:
<div class="action-bar bar-top">
<!-- EVENT viewtopic_buttons_top_before -->
 
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
<a href="{U_POST_REPLY_TOPIC}" class="button" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
<!-- IF S_IS_LOCKED -->
<span>{L_BUTTON_TOPIC_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
<!-- ELSE -->
<span>{L_BUTTON_POST_REPLY}</span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i>
<!-- ENDIF -->
</a>
<!-- ENDIF -->
 
Il stergem si il inlocuim cu acesta:
 
<div class="action-bar bar-top">
<!-- EVENT viewtopic_buttons_top_before -->
 
<!-- IF S_IS_LOCKED -->
<a href="{U_POST_REPLY_TOPIC}" class="button" id="lock">
 
<span>{L_BUTTON_TOPIC_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
 
 
</a>
<!-- ELSE -->
 
 
<a href="{U_POST_REPLY_TOPIC}" class="button" id="reply">
<span>{L_BUTTON_POST_REPLY}</span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i>
</a>
<!-- ENDIF -->
 
<a href="{U_POST_NEW_TOPIC}" class="button" id="new">
<span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
 
</a>
 
Tot in template-ul viewtopic_body cautam:
 
<div class="action-bar bar-bottom">
<!-- EVENT viewtopic_buttons_bottom_before -->
 
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
<a href="{U_POST_REPLY_TOPIC}" class="button" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
<!-- IF S_IS_LOCKED -->
<span>{L_BUTTON_TOPIC_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
<!-- ELSE -->
<span>{L_BUTTON_POST_REPLY}</span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i>
<!-- ENDIF -->
</a>
<!-- ENDIF -->
 
 
 
 
Il stergem si il inlocuim cu acesta:
 
<div class="action-bar bar-bottom">
<!-- EVENT viewtopic_buttons_bottom_before -->
 
<!-- IF S_IS_LOCKED -->
<a href="{U_POST_REPLY_TOPIC}" class="button" id="lock">
 
<span>{L_BUTTON_TOPIC_LOCKED}</span> <i class="icon fa-lock fa-fw" aria-hidden="true"></i>
 
 
</a>
<!-- ELSE -->
 
 
<a href="{U_POST_REPLY_TOPIC}" class="button" id="reply">
<span>{L_BUTTON_POST_REPLY}</span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i>
</a>
<!-- ENDIF -->
 
<a href="{U_POST_NEW_TOPIC}" class="button" id="new">
<span>{L_BUTTON_NEW_TOPIC}</span> <i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
 
</a>
 
Acum aveti nevoie de codul css:
 
#new, #lock, #reply{
 
    color: #fff;
font-size: 12px!important;
font-family: tahoma;
font-weight: 500;
padding: 6px 12px;
min-width: 100px;
}
 
#new{
background: #5aa527;
    border: 1px solid #3f7a17;
    box-shadow: 0px 1px 0px #9bef62 inset;
}
 
#new:hover{
text-decoration: none!important;
text-shadow: none!important;
background: #64c124;
    box-shadow: 0px 1px 0px #a5ff68 inset;
}
 
#new i, #new i:hover{
color: #fff!important;
}
 
#reply{
    background: #057eaf;
    border: 1px solid #01668e;
    box-shadow: 0px 1px 0px #2bb8f2 inset;
}
 
#reply:hover{
    background: #058fc6;
text-decoration: none!important;
text-shadow: none!important;
}
 
#reply i, #reply i:hover{
color: #fff!important;
}
 
#lock{
    background: #cc0e0e;
    border: 1px solid #930101;
    box-shadow: 0px 1px 0px #ed3636 inset;
}
 
#lock:hover{
    background: #e50d0d;
text-decoration: none!important;
text-shadow: none!important;
}
 
#lock i, #lock i:hover{
color: #fff!important;
}
 
 

  • XqZ^_ and CLaTiTa like this

#2
XqZ^_

XqZ^_

    Fondator UXG

  • Fondator UXG
  • 179 posts
  • LocationRomania

Pune o poz ceva :P 


  • CLaTiTa likes this

#3
mr.franta

mr.franta

    Membru UxG

  • Moderator
  • 36 posts

Trebuie sa dai click pe link sa vezi poza.


  • CLaTiTa likes this

#4
CLaTiTa

CLaTiTa

    Administrator UXG

  • Fondator UXG
  • 309 posts
  • LocationWhite Julia

Ghio ...daca taceai ,filozof ramaneai !


mt6u0x.jpg



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users