![]() |
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 |
Quote:
I only discovered a bug, like you discovered the attach counter update problem on Tommy Boy's code...;) I think Tommy Boy deserves our thanks for the hack...good job. I guess this is what this forum is here for...to help each other. Ciao... |
Has anyone updated this hack for 2.2.9 and up.
In the instructions after the $DB_site->query part in editpost.php (I am refraining from posting the code ) it shows to post the code after the second closing tag. Using 2.2.9 there is a few lines about "sort attachment" after the first closing tag. Should this code be added after the second closing tag after the sort attachment part or before it or somewhere in between? Mike ....ps...hope this makes sense |
I used the code that Mystics posted with vbulletin 2.2.9 and it works fine.
|
gotcha...I should have better attention reading through all the threads.
Thanks |
Some one asked me about this one. Works fine with me. :)
[high]* Red Blaze clicks install ^_^[/high] |
works fine on vbulletin 2.30 release candidate 3
|
works better for me with updated version of this hack :p
thanks again for this great hack |
Thanks :D
|
All times are GMT. The time now is 06:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|