Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Make attachment for registered only (1 viewing) (1) Guest
TOPIC: Make attachment for registered only
#59961
Make attachment for registered only 3 Months ago  
Hello
Anyone can help me how to make the attachment for registered users download only?

And I have one more matter, when I use the hide function, I want to show some text to indicate the hide content but it shows nothing.

thanks
haynhat (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62131
Re:Make attachment for registered only 1 Month, 2 Weeks ago  
i am also need this facility

regards

skkuumar
skkuumar (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62317
Re:Make attachment for registered only 1 Month, 1 Week ago  
Please give ur suggestion on this query

regards

skkuumar
skkuumar (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62320
Re:Make attachment for registered only 1 Month, 1 Week ago  
Attachments are really bbcode tags img and file, so you cannot make difference between local files and remote files.

If you want to block for example file attachments from anonymous users, just change if statement for case 'file' in components/com_fireboard/sources/interpreter.fireboard.inc.php line 345:

Code:

case 'file':
if ($my_id != 0 && $between)



Same works for images, too.

If you want only block local files, you need to compare $between with your local url. Something like this should work: if (!preg_match("|mysite.com/images/fbfiles|i", $between)) { tag } else { ask user to log in }. I've not tested this, but..
mahagr (User)
Junior Boarder
Posts: 94
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/11/27 20:21 By mahagr.
 
 
Go to top