The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Attachment countdown timer (like yousendit) Details »» | |||||||||||||||||||||||||||
Attachment countdown timer (like yousendit)
Developer Last Online: Feb 2022
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))"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> <tr> <td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif"></td> <td><a href="javascript:history.go(0)" onClick="MM_openBrWindow('showfile_redirect.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]','','scrollbars=yes,resizable=yes,width=470,height=300')"><strong>$attachment[filename]</strong></a> ($attachment[filesize]<if condition="$show['views']"><if condition="$show['views']"></if>, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)</td> </tr> <else /> <tr> <td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)</td> </tr> </if> 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 --> <!-- END AD CODE --> Code:
scrollbars=yes,resizable=yes,width=470,height=300 Code:
var waitTime=10; Code:
var blocksize=(barwidth-2)/waitTime/10; Show Your Support
|
Comments |
#12
|
||||
|
||||
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))"> |
#13
|
|||
|
|||
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. |
#14
|
|||
|
|||
Quote:
Thx, ericgtr! |
#15
|
||||
|
||||
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> |
#16
|
|||
|
|||
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?
|
#17
|
|||
|
|||
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? |
#18
|
|||
|
|||
what is the point of this hack? what good does it really do, besides pissing people off?
|
#19
|
|||
|
|||
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 |
#20
|
||||
|
||||
Quote:
Quote:
Quote:
|
#21
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|