vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Attachment countdown timer (like yousendit) (https://vborg.vbsupport.ru/showthread.php?t=127041)

ericgtr 09-20-2006 01:23 AM

Quote:

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:
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3))">
I'll update the instructions with this :)

Hornstar 09-20-2006 01:39 AM

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.

VietPirates 09-20-2006 01:45 AM

Quote:

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!

ericgtr 09-20-2006 01:59 AM

Quote:

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:
Code:

<a href="javascript:history.go(0)" onClick="MM_openBrWindow('showfile.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]','','scrollbars=yes,resizable=yes,width=470,height=300')"><strong>Get File!</strong></a>
And replace it with this: (you can see where the wording is if you want to change it)
Code:

<a href="javascript:history.go(0)" onClick="MM_openBrWindow('showfile.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]','','scrollbars=yes,resizable=yes,width=470,height=300')"><strong>Get File!</strong>(requires popups enabled)</a>

Hornstar 09-20-2006 03:55 AM

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?

Hornstar 09-20-2006 04:33 AM

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?

bang 09-20-2006 10:11 AM

what is the point of this hack? what good does it really do, besides pissing people off?

danielg 09-20-2006 11:53 AM

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

ericgtr 09-20-2006 01:00 PM

Quote:

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.

Quote:

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".

Quote:

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.

ericgtr 09-20-2006 01:03 PM

Quote:

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 :)


All times are GMT. The time now is 05:41 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
  • Page Generation 0.01199 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete