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:	1796
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.
  #16  
Old 20 Sep 2006, 05:33
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
edit: installed it, I also have vbseo installed, so I disabled attachment re writing, dont know how to stop rewriting of those 2 other files tho, but ive put in a thread over at vbseo for that part, if it is.

When i click on an attachment it reloads the page instead of popping up the attachment.

do you think that is a problem with vbseo or a something else?
Reply With Quote
  #17  
Old 20 Sep 2006, 11:11
bang bang is offline
 
Join Date: Sep 2005
what is the point of this hack? what good does it really do, besides pissing people off?
Reply With Quote
  #18  
Old 20 Sep 2006, 12:53
danielg danielg is offline
 
Join Date: Jan 2005
What, if I wanted this feature behind a thumbnail image, say a gif file?

Now it works only with non-images, right?


Thanks, very good work.


Daniel
Reply With Quote
  #19  
Old 20 Sep 2006, 14:00
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by hornstar1337
edit: installed it, I also have vbseo installed, so I disabled attachment re writing, dont know how to stop rewriting of those 2 other files tho, but ive put in a thread over at vbseo for that part, if it is.

When i click on an attachment it reloads the page instead of popping up the attachment.

do you think that is a problem with vbseo or a something else?
Someone else has this issue with vbseo also, I don't have it installed or I would try to work it out.

what is the point of this hack? what good does it really do, besides pissing people off?
It is designed only for unregistered users (or any other group you may want to add) and ideally will help promote registrations. It also provides a link with a statement saying "Registered users do not have to wait".

Now it works only with non-images, right?
Correct, as the default system is currently only designed that way. If there is a mod out there (haven't looked) that allows for thumbnails to be displayed but not opened, this could probably be applied to it though.
Reply With Quote
  #20  
Old 20 Sep 2006, 14:03
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by hornstar1337
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?
I'll look into different timer settings for different groups but the popup will have to stay
Reply With Quote
  #21  
Old 21 Sep 2006, 13:26
Arda MENDES Arda MENDES is offline
 
Join Date: Aug 2006
It's great.Thanx
Reply With Quote
  #22  
Old 21 Sep 2006, 23:11
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Update
It is now working after getting the fix from vbseo. 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

So that takes care of the problems for anyone with vbseo thanks to Oleg Ignatiuk from vbseo for helping me.

---------------------------------------------------------------------------

Request/suggestions

Pictures tell a 1000 words so ill upload the pics i took which should explain what I mean best.

The old view pic is what the attachment window used to look like, I kinda want this to remain the same, so as you can see in the new view, how things have changed because of this hack, I feel it would be best for everyone if we kept this looking the same as before.

In request 1 and 2, they are actually happening in both pics.

The description should be on top instead of below, and I would like to see if the link to download the attachment could be added to the description like how it used to be.

They are probably really small edits, such as adding a <br> or < br/>
(forget which one is the standard now) to make them on seperate lines but i dont want to screw things up so I thought it would be best to leave it to someone more advanced like yourself

Thanks for the great hack, hopefully you will get some time to fulfil these requests.

Thanks.
Attached Images
File Type: jpg request1.JPG (30.9 KB, 37 views)
File Type: jpg request2.JPG (46.1 KB, 38 views)
File Type: jpg new view.JPG (29.6 KB, 28 views)
File Type: jpg old view.JPG (13.8 KB, 25 views)
Reply With Quote
  #23  
Old 22 Sep 2006, 15:06
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Request complete, see the first post for updated instructions and thanks for the vbseo fix!
Reply With Quote
  #24  
Old 23 Sep 2006, 07:54
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Okay thanks but there was 2 things you left out,

1. Attachments are still on 1 line. instead of on seperate lines.
2. In the popup window, the name should go before what, eg.

It should be like this:

[Skin.rar 541.5 KB], (483 views) <--- This
Then ---> You have 25 seconds left before this link is active.
Get File

As for one attachment you can understand it, but when you got more then 1 attachment it is confusing.

3. If you can make the name of the attachment linked to the download after 25 seconds as well.

4. There is seems to be another bug, this may be partially part of statement (2.) that i mentioned.

Here is what my window looks like

You have 25 seconds left before this link is active.
Get File (This link here is the only one that will download even tho it says 25 seconds above)

File Type: rar [CELiTE.rar 681.1 KB], (696 views)
You have 25 seconds left before this link is active.
Get File

File Type: rar [Rakion By Pass.rar 454.0 KB], (662 views)
You have 0 seconds left before this link is active.
Get File (This file is not able to be downloaded even tho it says 0 seconds)

File Type: rar [Skin.rar 541.5 KB], (483 views)



also once the 25 seconds is up, can the next attachment start timing down, instead of them having to close the window and then clicking on the next attachement, or even better, when they click get file, it starts timming down, but only 1 file can time down at a time.


If the above could be fixed up it would be really awesome, and then after those are done, I got another suggestion/request but ill wait until you can get these done.

Thanks
Reply With Quote
  #25  
Old 23 Sep 2006, 12:05
soletrader soletrader is offline
 
Join Date: Jul 2006
hornstar, how do i change no rel novbseo to 1? Where do I go and what do I fix? thank you
Reply With Quote
  #26  
Old 23 Sep 2006, 12:27
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
Originally Posted by hornstar1337
As for one attachment you can understand it, but when you got more then 1 attachment it is confusing.
it u have more than one file in the post the download just only works on the below file even if you choose the file in above ....
Reply With Quote
  #27  
Old 23 Sep 2006, 23:30
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Originally Posted by soletrader
hornstar, how do i change no rel novbseo to 1? Where do I go and what do I fix? thank you
in your includes file you will find your vbseo config file, open that, then search for novbseo and you will need to make sure that is on 1. For better instructions head over to vbseo.com and you will find the thread that I made and the answer in there.

@ Barakat:
I'm not sure if your confirmming the bug I stated or not, but it is a problem either way. Just check the screeen shots in my post above, and my post below it will explain it as well.

Thanks.
Reply With Quote
  #28  
Old 24 Sep 2006, 00:45
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Barakat
it u have more than one file in the post the download just only works on the below file even if you choose the file in above ....
I will get some time tomorrow to work on this and see if I can get that part working.
Reply With Quote
  #29  
Old 24 Sep 2006, 09:58
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Hey ericgtr just trying to work out if you will be able to do some of the requests in my post/s http://www.vbulletin.org/forum/showp...3&postcount=22 and http://www.vbulletin.org/forum/showp...5&postcount=24

Thanks.
Reply With Quote
  #30  
Old 25 Sep 2006, 22:14
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Updated, please see first post for new instructions and layout. It will now show all the attachments as they should be.
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 06:59.

Layout Options | Width: Wide Color: