Keyword

What happened to option for showing attachments only to registered?

  • Mike C
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 11 months ago #70307 by Mike C
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.

More
14 years 11 months ago #70308 by Emily Pearce
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

=(

Please Log in or Create an account to join the conversation.

  • Mike C
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 11 months ago #70309 by Mike C
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
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 9 months ago #70310 by Mike C
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
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 9 months ago #70311 by Mike C
Anyone know what the code is for this?

Please Log in or Create an account to join the conversation.

  • Mike C
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 8 months ago #70312 by Mike C
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.

More
14 years 8 months ago #70313 by Jochen Kästle
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....

Please Log in or Create an account to join the conversation.

  • Mike C
  • Mike C's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 8 months ago #70314 by Mike C
Jochen, I will try this today - THANK YOU!

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #70315 by leenie
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!

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #70316 by igorfilipepereira
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 ;)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum