![]() |
oki i have fixed the hack for 2.2.6.
|
Hi,
the Hack doesn't update the attachment count of the thread, so if there was no attachment before in this thread, the paperclip icon does not show up in the thread list of a forum. To fix this, you have to do this change, after installing the Hack: Search in editpost.php: Code:
// Add attachment on edit post hack (start) Code:
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid='$threadinfo[threadid]'"); |
I'm a little confused in the directions.
Still in editpost.php, look for: [vBulletin 2.2.6 and up ONLY!] -------------------------------------------------------------------------------- if (phpversion() < '4.0.3') { $enctype = 'enctype="multipart/form-data"'; } else if (ini_get('file_uploads')) { $enctype = 'enctype="multipart/form-data"'; } else { -------------------------------------------------------------------------------- Move this block a few lines up, just after this line: -------------------------------------------------------------------------------- $enctype = ''; Am I supposed to remove the text above " $enctype = ''; " and then put it back in below it? |
me too... can you give us a newbie hint?:D
|
@PhotoGenie
@Harley-1 Just ignore this step! It's no longer necessary since vB 2.2.6. :) I have attached the final version for 2.2.6 with my Bugfix (see Posting above). Mystics |
That was easy enough.. Thank you!!.. This is a very good practical hack.
|
After comparing the code that Mystics posted vs. the other code for 2.2.6, I went with Mystics. I dug around in other files and couldn't find where it would add to the attachment count, so that's why I used his. If this is incorrect someone post another update. ;) :bunny:
Quote:
|
<a href="https://vborg.vbsupport.ru/attachment.php?s=&postid=270639" target="_blank">https://vborg.vbsupport.ru/attac...&postid=270639</a>
Works perfect here: 2.2.6. |
[high]* Schorsch says Thank you very much Tommy Boy and Mystics :)[/high]
|
I have updated my attachment.
The canpostattachment-permission was not checked while editing a posting. Thanks @Axel Foley for pointing this out. Mystics |
All times are GMT. The time now is 06:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|