vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Remove Style Selection (https://vborg.vbsupport.ru/showthread.php?t=143431)

steadicamop 03-28-2007 05:40 PM

Remove Style Selection
 
Is there any way of removing the drop down style selection on one page only? I've made a product that prevents hotlinking to attachments (but provides a link straight to the post) - I need to remove the drop down as selecting that overrides the security and allows the download. I've got a custom template for this page, so if there's anything I can put in there, what can I use?

Cheers

Jason

nexialys 03-28-2007 06:53 PM

when you edit a forum, you can choose: "Override Users' Style Choice"... even if they choose a different style, the selected style for that forum will occur!

steadicamop 03-29-2007 05:41 AM

Hmmm thanks - didn't know that was an option, however, my problem is, the page is sent from a template - so somewhere in that template I need to remove the drop down box (and just leave whatever style has been selected by the user - generally this is visitors and would see the standard one only).

Cheers

Marco van Herwaarden 03-29-2007 06:03 AM

vBulletin already comes with some sort of standard "Hot Linking" protection.

Consider the following:
- you can already deny downloading of attachments to guests. Hotlinking to attachment.php will have no real use, as it would still require a member login to download.
- If you are storing attachments in the database, then the above would be enough.
- If you are storing in the filesystem, your attachment directory should be located above the webroot. This would make direct linking to the attachment impossible.
- Even if stored in filesystem and under webroot, then using a .htaccess rule to prevent acces to attachments from outside links would be the best way to do it.

steadicamop 03-29-2007 07:11 AM

Thanks Marco - I was aware I could do all of these, but I've set up my forum so that guest can view attachments, as I feel it's pointless having members sign up just to view attachments, I just wanted a way so that they couldn't be hotlinked (as one of my members has, without asking me - and is leeching MY bandwidth away) - so I came up with an anti-leech system that stops these, but gives you a direct link to the post where the attachment is - at least this way the guest will visit the forum first.

I know there are easier ways, but this has a feature that .htaccess can't perform - link to the post.

Cheers


All times are GMT. The time now is 05:49 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.01532 seconds
  • Memory Usage 1,711KB
  • 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
  • (5)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