[MOD] Ascundere link sau text pentru vizitator

Locked
User avatar
Rusu Radu
Moderator
Moderator
Posts: 2017
Joined: 8 years ago
Location: Dozer
Has thanked: 21 times
Been thanked: 7 times
Zodiac:
Age: 24
Contact:
Status: Offline
Jamaica

5 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.

[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:

Code: Select all

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 !
Viaţa însăşi este magie, iar dacă nu crezi asta, măcar încearcă să o trăieşti ca pe ceva magic.


©Rusu Radu

2024 CSGAMERS IS HERE
Locked

Return to “Mod-uri”