Pagina 4 din 4

Re: background in viewtopic

Scris: 03-Mai-2016, 11:47:31
de SSebastian
Salut,
Cu plăcere.
Am pus

Cod: Selectaţi tot

   <!-- IF postrow.RANK_TITLE eq 'Site Administrator' -->
   <div id="p{postrow.POST_ID}" class="post has-profile bgadmin">
   <!-- ELSE -->
   <div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF -->">
   <!-- ENDIF -->
În loc de

Cod: Selectaţi tot

<div id="p{postrow.POST_ID}" class="post has-profile <!-- IF postrow.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_POST_REPORTED --> reported<!-- ENDIF --><!-- IF postrow.S_POST_DELETED --> deleted<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_POST_HIDDEN --> online<!-- ENDIF --><!-- IF postrow.POSTER_WARNINGS --> warned<!-- ENDIF --><!-- IF postrow.RANK_TITLE eq 'Site Administrator' --> bgadmin<!-- ENDIF -->">

Re: background in viewtopic

Scris: 03-Mai-2016, 13:09:08
de microk2
Salut !
Am revenit cu o intrebare. Exista cumva vreun cod care sa modifice dimensiunea imaginii de background in functie de dimensiunea post-ului ? (adica cat de mult se scrie in acel mesaj)

Re: background in viewtopic

Scris: 03-Mai-2016, 13:09:53
de SSebastian
Salut,
Cum adică să se MODifice dimensiunea? Să se facă mai mică, sau... ?

Re: background in viewtopic

Scris: 03-Mai-2016, 13:11:28
de microk2
Da-i scroll de la al 3-lea post in jos : http://gamesclub.16mb.com/viewtopic.php ... 2&p=50#p50
Backgroundul respecta dimensiunile imaginii , eu vreau daca se poate ca imaginea sa respecte dimensiunea backgroundului

Re: background in viewtopic

Scris: 03-Mai-2016, 13:17:11
de SSebastian
Cred că singura soluție este să adaugi background-repeat. Problema este că imaginea are un nr. de pixeli (în cazul tău 2284x1428). Dacă zona cu text este mai mare, imaginea nu acoperă toată zona.

Re: background in viewtopic

Scris: 03-Mai-2016, 13:19:17
de microk2
Mersi oricum , o sa schimb dimensiunea la imagine si gata.

Re: background in viewtopic

Scris: 03-Mai-2016, 16:18:43
de microk2
Ca sa adaug si alt rang in afara de 'Site Administrator ' ( ex 'Global Moderator' ) ce ar trebui sa fac ?

Re: background in viewtopic

Scris: 03-Mai-2016, 17:31:28
de Anișor
Ai grijă la dublu-post.
Trebuie să faci un IF separat dacă vrei de exemplu altă culoare sau poți face un singur IF pentru mai multe ranguri dacă vrei același background.

Animo (Anișor),
Liderul Echipei de Colaboratori