vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Download Thread (https://vborg.vbsupport.ru/showthread.php?t=40981)

marocnl 10-13-2002 10:40 AM

Quote:

Originally posted by Logician

The answer is no for you.. If you are asking for a bank database or smt., I keep my right to change the answer.. ;)

I thought so......thnx 4 the confirmation. :knockedout:

ukbill69 10-23-2002 08:08 PM

I would like to say that to add this txt to the showthread becuase i have found that there was no space and divider. So here it is:
PHP Code:

    |
<!-- 
Download Thread Hack Start -->
<
img src="{imagesfolder}/sortasc.gif" alt="" border="0" align="absmiddle"> <a href="showthread.php?s=$session[sessionhash]&threadid=$threadid&action=download">Download Thread</a></table>
<!-- 
Download Thread Hack Finnish --> 


kreatiV 10-27-2002 07:08 AM

This seems like a great hack to me I am close to installing it. Is there a chance that Usergroup Permissions can be applied to this in a new version?

I would like only certain Usergroups to be able to download threads and not everybody that is registered on my board.

Logician 10-27-2002 08:08 AM

Quote:

I would like only certain Usergroups to be able to download threads and not
yep possible..

Find:

Quote:

if (!$threadid OR $threadid<1) {show_nopermission();}
After that add:

Quote:

if ($bbuserinfo[usergroupid]!=X AND $bbuserinfo[usergroupid]!=y AND $bbuserinfo[usergroupid]!=z) {show_nopermission();}
This will allow only usergroup X, Y, Z to download the thread..

kreatiV 10-27-2002 08:52 AM

Cool! I gotta grab that hack now and install it later on.

FleaBag 10-28-2002 10:53 PM

Works with 2.2.8. Cheers. :D

N9ne 10-29-2002 12:03 AM

Excellent hack, working flawlessly on 2.2.8. Just one thing though, you should add a space after the img code in the showthread template, so the Download this thread link isn't right next to the image :).

filburt1 11-04-2002 11:09 PM

Logician, I hope you don't mind: http://www.vbulletintemplates.com/mo...&threadid=1845 :)

SRozhon 11-06-2002 10:05 PM

This looks awesome, but I have a quick question. In step 1 it says
Quote:

Edit Template SHOW THREAD TEMPLATES/showthread
I feel like an idiot but what file is this that I should edit? Thank you!

Logician 11-06-2002 10:13 PM

Quote:

Originally posted by SRozhon
This looks awesome, but I have a quick question. In step 1 it says

I feel like an idiot but what file is this that I should edit? Thank you!

it's not a file, it's a template editing.. You have to login to your Admin CP, choose Modify Template, then find the template mentioned and edit it.. ;)


All times are GMT. The time now is 10:19 PM.

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.01116 seconds
  • Memory Usage 1,739KB
  • 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)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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