![]() |
Archivhack for vB
Ok, i have written a small Archivhack, more an Addon but i think i can post it here.
What it does: It compresses a thread in the database, so it would take less space, but it cannot be posted in it anymore. It isn't finished now, but you can already use it now. I won't give full support for this Hack, but if you have suggestion, you can post them here. While this Hack is in its Beta, most Expressions are in german, but i think this wouldn't be a problem :) |
screenshot
|
another screenshot
|
Thats pretty tight, thanks for your time on it@
|
yeah I will keep tabs on this one, great idea mate!
|
This is cool! Very nice.
|
any way to make it soo it only archives closed threads?
|
nice hack thanx also i think Tap's idea is good, can u make it for closed threads plz
|
You mean, if you convert a whole forum only the closed threads should be converted?
Or do you mean a funktion which converts all closed threads in your board? And i have to say, convertet threads stay in DB as normal threads until you delete them manually, its just a security ;) |
ok uploaded a new version
changed file makearchiv.php a screenshot what has been updatet |
thanx
|
it was a good idea, i could use it for myself too ^^
ok, another update today. the showarchiv-page now shows all Forums where threads originally were, so that there's a bit more order in it :) screenshot follows here: |
Cool...
Sounds very interesting... Satan |
I think the hack is great, but when I would like make a archive, I get this message:
Code:
Fatal error: Call to undefined function: gzdeflate() in c:\program files\nusphere\apache\htdocs\phpwebsite-0.8.1\admin\makearchiv.php on line 124 |
hmm, i think then you don't have PHP v4 right?
|
PHP Version 4.0.6
|
hmm, look at php.net:
gzdeflate (PHP 4 >= 4.0.4) gzdeflate -- Deflate a string its a standart function in php, so you have to look into your php options if you turned of this function. I cannot help you, because i haven't installed php on my server myself. |
thanks! But not needed! It would be better if all CLOSED THREADS became archived! I'd install it then
|
this shouldn't be a problem to code, i will make it into the next version
|
After a long time, i have worked again on this hack, and made some big changes.
now you can archivate all closed thread on your board (just a small change) i have written a completly new makearchivroutine. i think its better than the old one, bcause the colors are no longer hardcoded, so you can use different styles. the new routine allows me to write a function, which will redo an archiv to a thread when you want to do so (in the next release or one later) the old routine ist inside the showarchiv, so you can view your made archives. in the next version i will release a converter (if this is possible ;)) i have bit problem with the templates when you view an archive. Nothing serious, but when someone see what i made wrong (colums of author an real poster colum doesnt match), tell me. please read the installation file carefully when you update your version, because ther are changes to the DB this time! and DON'T DELETE YOUR ARCHIVPAGES TABLE WHEN YOU HAVE ALREADY MADE ARCHIVS WHERE THE ORIGINAL THREAD HAS BEEN DELETED!!!!!!! Hope you'll enjoy the new version. The release is not too far away now :) So if you find bugs, tell me please :) PS. @Oro: If you want to use the hack on your local PC, you have to install zlib right. i have had the same problem lasttime, cause i have installed php 4.2.0 but not the zlib ;) if you want to check it without the zlib, just uncomment the function decleration gzdeflate in makearchiv.php and gzinflate in showarchiv.php threads wont be compressed then, but you'll see how it works :) i have testet it so myself :) |
i have written a small convertingscript, to convert old archives into the new format. just copy the file in your admin folder and start it.
be carefull, if you have changed some codelines in my old makearchiv.php there shouldnt be problems if you have just changed the colors of your archiv, but if you have changed the dateformat, you must change the line mktim(....) into the right format too i have testet the script an it works very good on my local server, but i won't be responsible if it dont work on yours. now, it doesent kill the old tables, so you can make more tries. if every archiv is converted and it looks right, there is no need any longer for the archivpages table, so kill them in the database. And a small bugfix to showarchiv.php: line 132 $archivpost[username]=substr($fullpost,$idstop+1,$namestop-$idstop-1); must be $archivpost[postusername]=substr($fullpost,$idstop+1,$namestop-$idstop-1); hope this can help you guys. i think next version will be the release version. i'll make some cosmetics to the templates, and a reconverter to threads, and a small install routine... perhaps i'll post one more betaversion with the reconverter, we'll see |
nice hack Xenon
thanks :) |
|
All times are GMT. The time now is 07:09 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:
|