• Page 1 of 1
  • 1
file attachment
Nikodz
Posts: 4
Reputation: 0

Message # 1 | 12:13 PM
I need to hide file attachment if file type is '.sma' so i thought that I can do this:
Main » Customize design » Appearance of entries
Code
<?if($ATTACHMENT$)?> <div align="left" class="eAttach">Attachments: $ATTACHMENT$</div><?endif?>

---»
Code
<?if($ATTACHMENT$)?> <div align="left" class="eAttach"><?if(substr($ATTACHMENT$,-4,4)='.sma')?>Attachments: $ATTACHMENT$</div><?endif?><?endif?>

but this disappear all attached files. Then I noticed:
Code
Attachments: filename.sma(1Kb)
and i did: <?if(substr($ATTACHMENT$,-9,4)='.sma')?>
but it didn't work again sad can someone help me to do it?
thanks and sorry for my English.
Dartz
Posts: 1931

Message # 2 | 0:30 AM
This isn't related to uCoz, this is related to coding knowledge. We do not
need to teach or explain obvious things. And why are you trying to hide
a specific extension? Trying to trick users? They have rights to see what
they are downloading or viewing.

[... With uCoz since December 2 2007 ...]
Nikodz
Posts: 4
Reputation: 0

Message # 3 | 9:56 AM
I have forum for AMXX (cs 1.6 plugins. .sma is code which will be compiled to .amxx) and some people don't want to let people to read code, so we read it, compile and upload like .amxx (compiled). If there is some mistakes we will tell author what can be changed. smile thanks anyway smile
Dartz
Posts: 1931

Message # 4 | 10:12 AM
What's the point of attaching file if you don't want users to read it? Tell them to PM.
[... With uCoz since December 2 2007 ...]
Nikodz
Posts: 4
Reputation: 0

Message # 5 | 10:19 AM
no no. some owner don't want people to see code which he/she upload and we are checking to not be some trick.

P.S. If it is punishable i will remove it...

Post edited by Nikodz - Sunday, 2010-04-11, 10:23 AM
Dartz
Posts: 1931

Message # 6 | 10:27 AM
I still believe it can be arranged via PMs, also specific board with
password would do just fine. Give access to person who's willing
to show the code and password to people who may see the code.

[... With uCoz since December 2 2007 ...]
Nikodz
Posts: 4
Reputation: 0

Message # 7 | 10:43 AM
ok
Dartz
Posts: 1931

Message # 8 | 11:06 AM
I'll lock the thread because we discussed conditional operators via PM.
[... With uCoz since December 2 2007 ...]
  • Page 1 of 1
  • 1
Search: