vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Members Can't Download Attachments Before Reply (https://vborg.vbsupport.ru/showthread.php?t=203634)

Nadeemjp 02-09-2009 12:28 AM

great hack
and yes i am with the popular opinion for the thanks button and reply button:)

installed:)

MARCO1 02-09-2009 08:15 AM

Yes i develop the coding to work with post thanks

Tianuc 02-09-2009 03:44 PM

1 - Hit thanks button Very, very good!
Thank you!

MARCO1 02-09-2009 11:45 PM

Quote:

Originally Posted by Tianuc (Post 1738801)
1 - Hit thanks button Very, very good!
Thank you!

Yes i think this will be Very Good :)

DPtheGod 02-12-2009 06:16 AM

Awesome hack, man! I give you props! I am going to install it tonight when I get home. :)

MARCO1 02-12-2009 04:48 PM

Quote:

Originally Posted by DPtheGod (Post 1741550)
Awesome hack, man! I give you props! I am going to install it tonight when I get home. :)

Good , i waiting your feedback :)

Tianuc 02-21-2009 09:21 AM

Looking forward to the new version.

nrms? 03-06-2009 08:20 PM

@MARCO1 one more suggestion "integrate download links with changes options in CP Adm"...

Are you prognostics for one update this mod...?

Nice work...:up:

cooltechie 03-08-2009 01:10 AM

Good idea. I can't wait to try it but will wait for updated version that includes thanks button. I clicked on install.

Powlo 03-15-2009 10:22 AM

Quote:

Originally Posted by MARCO1 (Post 1729532)
NEW UPDATE


YES lasto !

in your attachment.php

search for

PHP Code:

   if ( !$vbulletin->db->query_first "SELECT postid FROM " TABLE_PREFIX "post WHERE userid='".$vbulletin->userinfo[userid]."'  AND threadid=$threadinfo[threadid]) ) : 

and in ( post WHERE userid='" )
write your usergroup this will be have permission to see attachments without reply the thread

example :
PHP Code:

post WHERE userid='2,3,4,5,6" 




This didnt work for me, i got an error..

Code:

Database error in vBulletin 3.8.0:

Invalid SQL:
SELECT postid FROM post WHERE userid=61'  AND threadid=6836;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''  AND threadid=6836' at line 1
Error Number  : 1064
Request Date  : Sunday, March 15th 2009 @ 11:18:54 AM
Error Date    : Sunday, March 15th 2009 @ 11:18:55 AM
Script        : http://www.******.com/forum/attachment.php?attachmentid=5100&d=1237062483
Referrer      : http://www.*******.com/forum/showthread.php?t=6836
IP Address    : **.**.**.**
Username      : ******
Classname    : vB_Database
MySQL Version : 5.0.45

This is what i changed..

PHP Code:

   if ( !$vbulletin->db->query_first "SELECT postid FROM " TABLE_PREFIX "post WHERE userid=6".$vbulletin->userinfo[userid]."'  AND threadid=$threadinfo[threadid]) ) :   
                        eval(
'print_output("' fetch_template('MARCO1 Cant See Attach') . '");');   
                endif ; 


any ideas?


All times are GMT. The time now is 08:28 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.01199 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (3)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