- Posts: 49
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- What happened to option for showing attachments only to registered?
What happened to option for showing attachments only to registered?
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
14 years 11 months ago #70307
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
I just went to the link you provided, but it says this:
* Unknown post id, it may have expired or been deleted
=(
* Unknown post id, it may have expired or been deleted
=(
Please Log in or Create an account to join the conversation.
- Emily Pearce
- Offline
- Junior Member
Less
More
- Posts: 24
14 years 11 months ago #70308
by Emily Pearce
Replied by Emily Pearce on topic What happened to option for showing attachments only to registered?
I had the pastebin open for a couple of days meaning to copy the code - but like you when I went to get it the page had expired! Should have been quicker....hopefully someone will post it again for us??
Mike C said:I just went to the link you provided, but it says this:
* Unknown post id, it may have expired or been deleted
=(
Mike C said:I just went to the link you provided, but it says this:
* Unknown post id, it may have expired or been deleted
=(
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70309
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
haha, we are certainly a couple of bright lights! I didn't know that the thing would expire. Now I feel like I missed the bus I was waiting for for so long =( Any programmer gurus know what the code is to hide attachments from unregistered users?
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 9 months ago #70310
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Hello, is it possible to have this code again, but not in that pastebin because it expires.. Please, I need it, I think Emily does too.. Thanks!
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 9 months ago #70311
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Anyone know what the code is for this?
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 8 months ago #70312
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Still waiting for a reply for this; please don't use that pastebin again....
Please Log in or Create an account to join the conversation.
- Jochen Kästle
- Offline
- New Member
Less
More
- Posts: 13
14 years 8 months ago #70313
by Jochen Kästle
Replied by Jochen Kästle on topic What happened to option for showing attachments only to registered?
So I think I found a way - you have to modify your item.php (consider to do some custom templating)
So look around line 345 - there is written an endif statement. Followed by a blank line (~346).
Insert there the following code
#?php $user =& JFactory::getUser(); ?#
#php if($user->get('guest') ==0 ): ?#
Afterwards scroll down to arround line 365 and insert
#?php endif; ?#
So hope this will work!
Mike C said:Still waiting for a reply for this; please don't use that pastebin again....
So look around line 345 - there is written an endif statement. Followed by a blank line (~346).
Insert there the following code
#?php $user =& JFactory::getUser(); ?#
#php if($user->get('guest') ==0 ): ?#
Afterwards scroll down to arround line 365 and insert
#?php endif; ?#
So hope this will work!
Mike C said:Still waiting for a reply for this; please don't use that pastebin again....
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 8 months ago #70314
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Jochen, I will try this today - THANK YOU!
Please Log in or Create an account to join the conversation.
- leenie
- Offline
- New Member
Less
More
- Posts: 5
14 years 8 months ago #70315
by leenie
Replied by leenie on topic What happened to option for showing attachments only to registered?
I'm not having any luck with this code, where is the item.php located?
Jochen Kästle said:So I think I found a way - you have to modify your item.php (consider to do some custom templating) So look around line 345 - there is written an endif statement. Followed by a blank line (~346).
Insert there the following code
#?php $user =& JFactory::getUser(); ?#
#php if($user->get('guest') ==0 ): ?#
Afterwards scroll down to arround line 365 and insert
#?php endif; ?#
So hope this will work!
Jochen Kästle said:So I think I found a way - you have to modify your item.php (consider to do some custom templating) So look around line 345 - there is written an endif statement. Followed by a blank line (~346).
Insert there the following code
#?php $user =& JFactory::getUser(); ?#
#php if($user->get('guest') ==0 ): ?#
Afterwards scroll down to arround line 365 and insert
#?php endif; ?#
So hope this will work!
Please Log in or Create an account to join the conversation.
- igorfilipepereira
- Offline
- New Member
Less
More
- Posts: 1
13 years 10 months ago #70316
by igorfilipepereira
Replied by igorfilipepereira on topic What happened to option for showing attachments only to registered?
Jochen Kästle said:So I think I found a way - you have to modify your item.php (consider to do some custom templating)
So look around line 345 - there is written an endif statement. Followed by a blank line (~346).
Insert there the following code
#?php $user =& JFactory::getUser(); ?#
#php if($user->get('guest') ==0 ): ?#
Afterwards scroll down to arround line 365 and insert
#?php endif; ?#
So hope this will work!
Mike C said:Still waiting for a reply for this; please don't use that pastebin again....
Thanks for the trick ;)
So look around line 345 - there is written an endif statement. Followed by a blank line (~346).
Insert there the following code
#?php $user =& JFactory::getUser(); ?#
#php if($user->get('guest') ==0 ): ?#
Afterwards scroll down to arround line 365 and insert
#?php endif; ?#
So hope this will work!
Mike C said:Still waiting for a reply for this; please don't use that pastebin again....
Thanks for the trick ;)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- What happened to option for showing attachments only to registered?