TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 03:23:03 PM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 32
  • Total: 32

[hack] TP Downloads - Guests View Only Mod

Started by akulion, December 27, 2006, 03:54:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

oohh that reminds me making the popup window the same color as the window!

ill get to it today hopefully (gota write it down) or else i lose sight of things lol


funxlab

Aku,
Is it the correct way to make this Mod work as I did?

After applying this Mod Download categories weren't still visible as guests so in TP Download Manager I set "Allowed membergroups" to guests also. Now these categories are visible to guest also but they can't download.

Regards,
Jim

akulion

u can make everything visible to everyone with this mod

but it wont let the guests download and members can :D

funxlab

ok. And the procedure I did was the correct way of doing that ..right?
:)

akulion

yes its correct

just test it as well - log out and then go and try to download something - if u fail then it means its working :up:

gravy

This hack was a God sent for me. My website depends on TP and its download section and I always wanted the guests to see what they could download, but be able to unless they were a member. So you made just what I was looking for, and I thank you so much for it. :laugh:

hoopty

I like this mod alot, but it was bothering me that the download button showed up in the category view.  Instead of downloading (or asking you to register), it takes you to the actual download page...  where you get another download button which actually will start the download (or ask you to register).  In the unmodded dlmanager, the button doesn't show up in the cat view.

Here's how I fixed it:

I changed the last bit of codeelse{
echo '
<a href="'.$dlitem['href'].'"><img src="' . $settings['images_url']. '/TPdownloadfile.gif" border="0" align="right" alt="" /></a>
<b><a href="'.$dlitem['href'].'">'. $dlitem['name'] .'</a></b> ' , ($context['TPortal']['dlaction']!='item' && isset($dlitem['filesize'])) ? '<br />'.$dlitem['filesize'] : '' ,  '<div class="smalltext">
'.$dlitem['description'];}

to:else{
if ($context['TPortal']['dlaction']=='item')
echo '
<a href="'.$dlitem['href'].'"><img src="' . $settings['images_url']. '/TPdownloadfile.gif" border="0" align="right" alt="" /></a>';
echo '
<b><a href="'.$dlitem['href'].'">'. $dlitem['name'] .'</a></b> ' , ($context['TPortal']['dlaction']!='item' && isset($dlitem['filesize'])) ? '<br />'.$dlitem['filesize'] : '' ,  '<div class="smalltext">
'.$dlitem['description'];}
and it now behaves just like it did before it was modded except guests get the popup.

Hope this helps someone out...

~hoopty

SRaven

#18
This is great! I was wondering how to be able to let guests see that there ARE things available to download without actually letting them download anything, thankyou for this Aku!

And Hoopty, your modification to it worked like a charm, thanks!

EDIT: HAHAHA I just noticed this....
This works great with the Snap preview I have on my forum...it only works because for some reason the DL link is using my server IP instead of the actual domain name.(I have the preview set to only show previews for external links)
here's a screenshot of what it looks like when you mouseover the DL button:


Michelle_Reed

I would really love this to work with v0.9.8, are you planning to re-release this?