vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Download Forum Thread To Your Computer (vB 3.5.x) (https://vborg.vbsupport.ru/showthread.php?t=97217)

XtremeOffroad 09-30-2005 05:35 PM

Thank you

Clicks Install

uae 10-01-2005 05:42 AM

Thanks,

Installed

Vindicare 10-01-2005 09:47 AM

Very useful hack. Thanks (*install*)

PS: I replaced the standard DL-Pic with this one, and changed the phrase to "Download TXT Version" (In analogy to my "Download PDF Version"-Menu-Item).

cclaerhout 10-02-2005 02:00 PM

Quote:

Originally Posted by Vindicare
Very useful hack. Thanks (*install*)


PS: I replaced the standard DL-Pic with this one, and changed the phrase to "Download TXT Version" (In analogy to my "Download PDF Version"-Menu-Item).

My members report me that they were characters problems (accent)
IE :

On n'arrête -> On n'arr?te
à s'afficher -> ? s'afficher
fonctionnalités -> fonctionnalit?s
(...)

How can i solve it please ?

dieselpowered 10-05-2005 04:06 AM

This may be something very trivial, however, when you pull down the menu you will notice that the Download Thread is not lined up with the others.

Can this be fixed?

Logician 10-05-2005 06:18 AM

Quote:

Originally Posted by xtremeoff-road
This may be something very trivial, however, when you pull down the menu you will notice that the Download Thread is not lined up with the others.

Can this be fixed?

It happens because the icon of the it is slightly smaller than the other icons in the menu. Try adding "hspace="4" to the IMG like :

<img class="inlineimg" src="$stylevar[imgdir_button]/sortasc.gif" alt="$vbphrase[DownloadThisThread]" hspace="4"/>

Or you can use a larger image there.

cclaerhout 10-05-2005 08:18 AM

Characters problem corrected.
-> solution : install the iconv module (or any one of iconv, GNU recode or mbstring) in php.

Thanks to Drupal ;)

mixylplik3 10-12-2005 03:16 AM

This is a great hack, however, I want to limit its use to certain usergroups. Using the following, I have been unable to do so:

<if condition="$post[usergroupid]==6">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sortasc.gif" alt="$vbphrase[DownloadThisThread]" /> <a href="dt.php?$session[sessionurl]t=$threadid">$vbphrase[DownloadThisThread]</a></td>
</tr> </if>

Anyone else doing something similar? If so, what did you do?

Logician 10-12-2005 05:52 AM

Quote:

Originally Posted by mixylplik3
This is a great hack, however, I want to limit its use to certain usergroups. Using the following, I have been unable to do so:

<if condition="$post[usergroupid]==6">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sortasc.gif" alt="$vbphrase[DownloadThisThread]" /> <a href="dt.php?$session[sessionurl]t=$threadid">$vbphrase[DownloadThisThread]</a></td>
</tr> </if>

Anyone else doing something similar? If so, what did you do?

What you do only makes its link visible or unvisible to the thread reader. For this use:
<if condition="$bbuserinfo[usergroupid]==6">

</if>

But if you like to restrict it more strongly, edit dt.php you uploaded find this line:
PHP Code:

//$unallowed_downloaders = array(1); 

after that (as a new line!),add this

PHP Code:

if ($vbulletin->userinfo['usergroupid']!=6
{
    
print_no_permission();



mixylplik3 10-12-2005 01:25 PM

Thank you. :cool:


All times are GMT. The time now is 12:29 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.01098 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_printable
  • (3)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