vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I randomize the filename/directory of a file the way this article suggests? (https://vborg.vbsupport.ru/showthread.php?t=244242)

w00ttastic 06-09-2010 12:18 AM

How do I randomize the filename/directory of a file the way this article suggests?
 
We've had a problem of users continually posting Youtube videos with that horrible, evil autoplay function, so I'm channeling my inner Hammurabi in making a creative punishment. I'm making a forum style that autoplay users will be restricted to, and I want to have an annoying mp3 playing in the background at all times. Unfortunately, if I just embed the mp3, the user can just adblock it and move on. But this article:

http://robrohan.com/2007/09/14/howto...resistant-ads/

has a great idea, to randomize the filename and directory. The author even gives code that will do this. However, having no experience coding, I have no idea how it would be applied to vBulletin. I'm running 3.8.3.

Thanks!

BirdOPrey5 06-09-2010 11:24 PM

interesting stuff.., I do some php coding but that web server stuff is beyond me.

w00ttastic 06-09-2010 11:56 PM

Would this fit better in Programming Discussions then?

BirdOPrey5 06-10-2010 12:12 AM

Probably but multiple posts on the same topic are frowned upon... I'd just wait and hope a mod moves it.

w00ttastic 06-11-2010 05:11 PM

Does this not intrigue anyone? This would make for a neat code rewrite or plugin.

w00ttastic 06-18-2010 04:19 AM

Desperate bump for attention. :/

ChopSuey 06-21-2010 10:33 AM

If a user has adblock enabled, there is a mod to tell them to turn it off before browsing the forum.


All times are GMT. The time now is 03:17 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.01816 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete