• Page 1 of 1
  • 1
help! auto hide link to guest
12a3
Posts: 90
Reputation: 0

Message # 1 | 1:21 AM
i post thread and i want to hide "link" download software to guest,

please help me

thank you for you!


Welcome to : http://softvn.mooo.com
CodeResolution
Posts: 1570
Reputation: 58

Message # 2 | 8:12 AM
Use Conditional Operators.
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
12a3
Posts: 90
Reputation: 0

Message # 3 | 12:42 PM
Quote (CreativeCollusions)
Use Conditional Operators.

it can same ;

<!--hidelink-->

<?if($MODULE_ID$='news')?></td></tr></table><?endif?>
<?if($USER_LOGGED_IN$)?><?else?>
<script>
e=document.getElementsByTagName('A');
for(k=0; k<e.length;k++) {
if(e[k].className=="link"){
e[k].innerHTML = '[<b>Please register to see link<b>]';
e[k].href = '/index/3-0-0';
}
}
</script>
<?endif?>

<!--hidelink-->

but it don't active , i 'm tried more , it active in forum only

please help me make code, thank you

if you don't understand , i'm sorry because my english is bad


Welcome to : http://softvn.mooo.com
Natashko
Posts: 3366
Reputation: 171

Message # 4 | 1:45 PM
12a3, use this condition:
Code
<?if($USER_LOGGED_IN$)?>download link<?else?>Register to see the link<?endif?>

to insert it in CP->Design->Design management->module->Page with entry full text and its comments
12a3
Posts: 90
Reputation: 0

Message # 5 | 3:53 PM
Quote (Natashko)
to insert it in CP->Design->Design management->module->Page with entry full text and its comments

thannk you , but it don't active : http://softvn.mooo.com/news/sdfsdgfh/2011-03-21-6


Welcome to : http://softvn.mooo.com
Natashko
Posts: 3366
Reputation: 171

Message # 6 | 3:08 PM
12a3, is the problem still topical? The page here doesn't exist
12a3
Posts: 90
Reputation: 0

Message # 7 | 4:26 PM
Quote (Natashko)
12a3, is the problem still topical? The page here doesn't exist

oh! i'm test only and unfortunately i'm deleted

you can review ; http://softvn.mooo.com/news/echip_s_517_ra_ngay_15_02_2011/2011-03-22-13


Welcome to : http://softvn.mooo.com
Animorph
Posts: 2856
Reputation: 189

Message # 8 | 4:38 PM
12a3, natashko her method should work , what do you want to achieve , hide the download link ?

conditional operators should work , but if you want i can make a more detailed method with conditional operators , if you use the file catalog


To busy building a passive income online ;)
12a3
Posts: 90
Reputation: 0

Message # 9 | 5:06 PM
Quote (Animorph)
12a3, natashko her method should work , what do you want to achieve , hide the download link ?
conditional operators should work , but if you want i can make a more detailed method with conditional operators , if you use the file catalog

can you? Please

i'm thank anyone tongue


Welcome to : http://softvn.mooo.com
Animorph
Posts: 2856
Reputation: 189

Message # 10 | 5:12 PM
12a3, well if you use the File Catalog you must hide the download link for guests ¨with conditional operators

go to CP ---> Design ---> Design management (templates) ---> File Catalog ---> Page with entry full text and its comments

Find:

Code
[ <?if($FILE_URL$)?><a href="$FILE_URL$"><!--<s5223>-->Download from this server<!--</s>--></a> ($FILE_SIZE$)<?endif?>
<?if($RFILE_URL$)?> · <a href="$RFILE_URL$" target="_blank"><!--<s5224>-->Download from mirror<!--</s>--></a> ($RFILE_SIZE$)<?endif?>

and then just use conditional operators that natashko provided you abvove

Like this:

Code
<?if($USER_LOGGED_IN$)?>[ <?if($FILE_URL$)?><a href="$FILE_URL$"><!--<s5223>-->Download from this server<!--</s>--></a> ($FILE_SIZE$)<?endif?>
<?if($RFILE_URL$)?> · <a href="$RFILE_URL$" target="_blank"><!--<s5224>-->Download from mirror<!--</s>--></a> ($RFILE_SIZE$)<?endif?><?else?><a href="$REGISTER_LINK$" target="_blank">Register</a> to see the download link<?endif?>

To busy building a passive income online ;)
12a3
Posts: 90
Reputation: 0

Message # 11 | 6:51 PM
Quote (Animorph)
12a3, well if you use the File Catalog you must hide the download link for guests ¨with conditional operators
go to CP ---> Design ---> Design management (templates) ---> File Catalog ---> Page with entry full text and its comments

thanks you,I will try


Welcome to : http://softvn.mooo.com
  • Page 1 of 1
  • 1
Search: