![]() |
Attachment countdown timer (like yousendit)
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 Code:
<a href="javascript:history.go(0)" Code:
<a rel="novbseo" href="javascript:history.go(0)" 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) Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 3))"> Code:
<div align="center"><a href="http://www.YOURSITE.COM/FORUM/register.php" target="_blank">Registered Users</a> do not have to wait.</div> In template SHOWTHREAD_FILE and showfile_redirect find this and place your ads there (there are two instances) Code:
<!-- START AD CODE --> Code:
scrollbars=yes,resizable=yes,width=470,height=300 Code:
var waitTime=10; Code:
var blocksize=(barwidth-2)/waitTime/10; |
very nice. Thanks!
|
Yes it's cool, thanks for the contribution.
|
I run 3.6.0 but can not get the attachment popop window to show up. Any suggestions? Thank you
|
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? |
yea i run vbseo. Anyway to get this fixed? I think this hack is great.
|
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.
|
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?
|
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.
|
Nice hack, ericgtr!
Suggestion: registered users see attachments with ads ;) |
Quote:
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: Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3))"> |
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. |
Quote:
Thx, ericgtr! |
Quote:
Code:
<a href="javascript:history.go(0)" onClick="MM_openBrWindow('showfile.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]','','scrollbars=yes,resizable=yes,width=470,height=300')"><strong>Get File!</strong></a> Code:
<a href="javascript:history.go(0)" onClick="MM_openBrWindow('showfile.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]','','scrollbars=yes,resizable=yes,width=470,height=300')"><strong>Get File!</strong>(requires popups enabled)</a> |
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?
|
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? |
what is the point of this hack? what good does it really do, besides pissing people off?
|
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 |
Quote:
Quote:
Quote:
|
Quote:
|
It's great.Thanx
|
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 Code:
<a href="javascript:history.go(0)" Code:
<a rel="novbseo" href="javascript:history.go(0)" 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. |
Request complete, see the first post for updated instructions and thanks for the vbseo fix! :)
|
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 :) |
hornstar, how do i change no rel novbseo to 1? Where do I go and what do I fix? thank you
|
Quote:
|
Quote:
@ 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. |
Quote:
|
Hey ericgtr just trying to work out if you will be able to do some of the requests in my post/s https://vborg.vbsupport.ru/showpost....3&postcount=22 and https://vborg.vbsupport.ru/showpost....5&postcount=24
Thanks. |
Updated, please see first post for new instructions and layout. It will now show all the attachments as they should be.
|
thanks for the update.
Okay the forum view looks good now. however it is not working for me. (probably something simple to fix.) When I click on the download link, the pop-up window loads the site instead of the download. I'll go over everything again, but here is a test link http://www.gamerzneeds.net/forums/gu...html?styleid=1 Only installed on the default skin. need to be reg to download on the site as well. Thanks. |
edit:
worked out that the new files are not in the attachement as stated here Upload showfile.php and showfile_redirect to your /forumroot and upload class_showfile.php and class_showfile_redirect.php to forumroot/includes/ I also dont have template showfile_redirect so I guess the product is the old one as well. Can you upload the attachment again. Thanks. |
Quote:
|
Yes , thanks for fixing it i will check it 2nite ยค
|
i try it but i found that if u have more than one attachment file in ur post
and u want to download the 2nd or the 3rd one it will give u that file but in a name of the 1st file , and look how many messeges do u have all together in the attach window. You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 20 seconds left before this link is active.You have 0 seconds left before this link is active. |
Quote:
you beat me to it. the same is happening to me. I must say that it is looking alot better then last time, but this little bug is still occuring. and im also getting some other weird things, that you will notice in the screen shot. Thanks. |
bump, just making sure this fantastic add on is not dying.
|
*Installed.
|
:/ hope your still alive and well :) am I the only one who is having problems still?
|
EricGTR, I am sorry to go off topic but I have to know where to find this awesome mod that you have on your site.
I don't know what to call it so I took screen shots of it. I really need something this on my site and would really appreciate it knowing where I can get it. Thanks in advance |
All times are GMT. The time now is 10:15 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:
|