![]() |
As AndrewD said, the code I wrote ignores the permissions deliberately. It is a teaser so that unregistered users, or users without permission do not see an Empty Box in your portal, but see the links. If they decide to try and download, they get told they do not have permission, and if unregistered they are prompted to register.
This seemd to me to be the cleanest way to do it - I can test the altered get_hotlinks.php code and get back to you on how it looks, but my guess is that it will not be as clean on your portal page. Quote:
|
i installed this links database yesterday and then installed your addon Natch and it worked first time.It shows me the top 5 downloads.
Well done to both of u for a good hack :) |
Quote:
It does work by reducing the links that the Guest / limited access usr can see in the CustomBox, but what happens if the number of returned links is zero (0) ? |
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
I'll make a minor change to the basic hack to add a new set of permissions via the admin page (e.g. can_see_links). Usergroups with this setting will be able to *see* (but not necessarily access) links via the portals. I'll update get_hotlinks.php to use this setting and the forums permission checking. We'll roll the two hacks together, with you flagged for support. I'll also contact the vbadvanced thread to see if we can get the same approach taken on board there. This may take me a few days, as I'm away on two business trips from tomorrow for a week. |
Quote:
|
Quote:
Thanks man - your work is excellent :) |
does this also support attachments in filesystem rather than database? an also is there a way of importing old attachments into this links area
thanks |
All times are GMT. The time now is 09:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|