Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Attachment countdown timer (like yousendit) Details »
Attachment countdown timer (like yousendit)
Mod Version: 2.0, by ericgtr (Coder/Designer) ericgtr is offline
Developer Last Online: Jun 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (4 votes - 5.00 average) Installs: 35
Released: 19 Sep 2006 Last Update: 27 Sep 2006 Downloads: 198
Not Supported Template Edits Additional Files Is in Beta Stage  

Show your attachments for guests (or any usergroup you like) in a javascript window with a niftly little progress bar, sort of like yousendit or rapidshare. You can also place ads in this window, it's perfect if you have a board with many attachments.

Preview it here as guests see them http://www.guitarblast.com/showthread.php?t=805 (registered users see attachments normally)

This is currently in beta until I can resolve the following issue
It will not show more than one attachment per thread, I am currently working on this and will update when I get it resolved.


NOTE: THIS WILL ONLY WORK WITH 3.6.0 FINAL AND WILL FAIL IN ALL EARLIER VERSIONS, BOTH RC'S AND BETAS!
^ Don't mean to yell but this is very important


Update: (Version 2.0) Due to reported bugs this needed a complete rewrite. To upgrade, re-import the product-attachment_window.xml and select overwrite. Then replace the postbit_attachment template.

vBseo fix, thanks hornstar1337 and the vbseo team for helping out with this.

Modified the display in the thread to appear just as it does for registered users, also applied this to the popup window.

To upgrade to this version, run the installer again and select overwrite. Then replace the postbit_attachment template.

vBseo Fix. The problem was with the google analytics code. There was 2 ways to fix this, either disable the google analytics code, or replace this code from within postbit_attachment

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and to ensure the vbseo config file is set to 1 (allow) for rel novbseo

Install time: 2 minutes

Product installer
4 New files
5 New templates (added by plugin)
1 Template edit

Upload showfile.php and showfile_redirect to your /forumroot and upload class_showfile.php and class_showfile_redirect.php to forumroot/includes/

Import product-attachment_window.xml by going to Plugins & Products > Manage Products [Add/Import Product]

Template edit

In postbit_attachment

replace all with this: (note that you can add any additional groups to the "$bbuserinfo['usergroupid'], array" that you want this to show up for)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In template SHOWTHREAD_FILE and showfile_redirect find this and change it to your site, or remove if you don't want to suggest that they register

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Tweak to your setup:

In template SHOWTHREAD_FILE and showfile_redirect find this and place your ads there (there are two instances)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To change the size of the popup window, in template postbit_attachment find this and change to your liking:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To change the countdown time, look in the showfile_redirect template for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

As always, enjoy and please click the install button if you use it

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	window.gif
Views:	1797
Size:	13.5 KB
ID:	53933  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 19 Sep 2006, 20:08
nix's Avatar
nix nix is offline
 
Join Date: Mar 2005
very nice. Thanks!
Reply With Quote
  #3  
Old 19 Sep 2006, 20:22
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Yes it's cool, thanks for the contribution.
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #4  
Old 19 Sep 2006, 22:44
soletrader soletrader is offline
 
Join Date: Jul 2006
I run 3.6.0 but can not get the attachment popop window to show up. Any suggestions? Thank you
Reply With Quote
  #5  
Old 19 Sep 2006, 22:46
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
It looks like your URL's are rewritten, you have an SEO mod installed?

Wait, I just tested and it does work with vrewrite at least. Are you sure you've uploaded all the files and ran the product install?

Last edited by ericgtr; 19 Sep 2006 at 22:49.
Reply With Quote
  #6  
Old 19 Sep 2006, 22:48
soletrader soletrader is offline
 
Join Date: Jul 2006
yea i run vbseo. Anyway to get this fixed? I think this hack is great.
Reply With Quote
  #7  
Old 19 Sep 2006, 22:52
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
I looked at your site and the attachment won't launch the window. Double check that you've completely overwritten the contents of the postbit_attachment template as per the instructions.
Reply With Quote
  #8  
Old 19 Sep 2006, 23:59
soletrader soletrader is offline
 
Join Date: Jul 2006
I disabled it at the moment. I did completly overwrite the postbit_attachment template but could not get it to work. Perhaps it has something to do with the fact I am running vbseo?
Reply With Quote
  #9  
Old 20 Sep 2006, 01:51
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
I could be, I don't have that mod but if they have a section where you can exclude files from being rewritten you can add showfile.php and upload class_showfile.php and see if that works.
Reply With Quote
  #10  
Old 20 Sep 2006, 02:50
VietPirates VietPirates is offline
 
Join Date: Aug 2006
Nice hack, ericgtr!

Suggestion: registered users see attachments with ads
Reply With Quote
  #11  
Old 20 Sep 2006, 03:23
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by VietPirates
Nice hack, ericgtr!

Suggestion: registered users see attachments with ads
Thanks!

It's easy to add registered users (or any other group you like) just add the usergroup to this array in the postbit_attachment. So it would look like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I'll update the instructions with this
Reply With Quote
  #12  
Old 20 Sep 2006, 03:39
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
This is really good, ill make it so this will happen to registered members, so it creates another incentive for premium members on my site.

however im hopping that something like this can be included in DownloadsII maybe if you get time you could take a look and work something out for us over there.

Thanks for this great release.

edit:

Request
Just wondering if you could do this but without the popup? Because im thinking pop up blockers are becomming more and more common and this may make it hard for some members to understand why they cant download it, then they will spam and say why they cant download it. But if that request cant work, then maybe some instructions next to the link like, a popup will open with the download link, iono, just a thought i just had now.

Thanks again.

Last edited by Hornstar; 20 Sep 2006 at 03:44.
Reply With Quote
  #13  
Old 20 Sep 2006, 03:45
VietPirates VietPirates is offline
 
Join Date: Aug 2006
Originally Posted by ericgtr
Thanks!

It's easy to add registered users (or any other group you like) just add the usergroup to this array in the postbit_attachment.
I meant registered users see attachments with ads, but no countdown timer :knockedout:

Thx, ericgtr!
Reply With Quote
  #14  
Old 20 Sep 2006, 03:59
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by hornstar1337
This is really good, ill make it so this will happen to registered members, so it creates another incentive for premium members on my site.

however im hopping that something like this can be included in DownloadsII maybe if you get time you could take a look and work something out for us over there.

Thanks for this great release.

edit:

Request
Just wondering if you could do this but without the popup? Because im thinking pop up blockers are becomming more and more common and this may make it hard for some members to understand why they cant download it, then they will spam and say why they cant download it. But if that request cant work, then maybe some instructions next to the link like, a popup will open with the download link, iono, just a thought i just had now.

Thanks again.
Well, what you can do is find this in postbit_attachment:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with this: (you can see where the wording is if you want to change it)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #15  
Old 20 Sep 2006, 05:55
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Okay thanks, that should help for now, ill see how it goes on the site over the next week, but what do you think is the chance of having the timer standard for certain usergroups? without a popup?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:07.

Layout Options | Width: Wide Color: