[MOD] Ascundere link sau text pentru vizitator

Locked
User avatar
GoKuSaN
Membru
Membru
Posts: 137
Joined: 6 years ago
Has thanked: 0
Been thanked: 0
Status: Offline

6 years ago

Cu ajutorul acestui mod, se poate ascunde un link sau un text pe care le pot vedea doar utilizatorii inregistrati.Este util pentru ca ascundem doar ce vrem noi, nu toate linkurile.

Download: [downlink][Please login or register to view this link][/downlink]

Fisere de modificat:
styles/prosilver/subsilver2/template/overall_header.html

Fisiere de uploadat:
root/styles/prosilver/subsilver2/theme/phpBBHideBlockStyle.css

Instalare:
ProSilver * Deschideti styles/prosilver/template/overall_header.html:

Cautati:

?
1
</head>
Adaugati înainte:

?
1
2
3
4
5
6
7
8
<style type="text/css">
@import url('{T_THEME_PATH}/phpBBHideBlockStyle.css');
<!-- IF not S_USER_LOGGED_IN -->
div.phpBBHideBlockA {display: none;}
<!-- ELSE -->
div.phpBBHideBlockB {display: none;}
<!-- ENDIF -->
</style>
SubSilver2 Deschideti styles/subsilver2/template/overall_header.html:
Cautati:

?
1
</head>
Adaugati înainte:

?
1
2
3
4
5
6
7
8
<style type="text/css">
@import url('{T_THEME_PATH}/phpBBHideBlockStyle.css');
<!-- IF not S_USER_LOGGED_IN -->
div.phpBBHideBlockA {display:none;}
<!-- ELSE -->
div.phpBBHideBlockB {display:none;}
<!-- ENDIF -->
</style>
Apoi adaugati ( in ACP – Scriere – CoduriBB – Adauga un cod BB nou ) urmatorul bbpre :
BB pre usage:

?
1
<hide>{TEXT}</hide>
HTML replacement:

?
1
<div class="phpBBHideBlockB"><strong>Hidden text</strong>: ON<hr class="phpBBHideBlockLine" />Available only to registered users.</div><div class="phpBBHideBlockA"><strong>Hidden text</strong>: OFF<hr class="phpBBHideBlockLine" />{TEXT}</div>
Help line:

?
1
<hide>text</hide>
Bifati “Display on posting page” ca sa apara butonul “hide” la postarea mesajelor in forum dupa care stergeti cache !
User avatar
Royale_Gamer
Membru
Membru
Posts: 206
Joined: 6 years ago
Location: Iasi
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 19
Status: Offline

5 years ago

:tc:
Locked

Return to “Arhiva”