vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Archivhack for vB (https://vborg.vbsupport.ru/showthread.php?t=37838)

Xenon 04-23-2002 10:00 PM

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 :)

Xenon 04-24-2002 08:32 PM

screenshot

Xenon 04-24-2002 08:32 PM

another screenshot

TheComputerGuy 04-24-2002 10:15 PM

Thats pretty tight, thanks for your time on it@

snyx 04-24-2002 10:18 PM

yeah I will keep tabs on this one, great idea mate!

Floris 04-24-2002 10:45 PM

This is cool! Very nice.

TaP 04-24-2002 11:41 PM

any way to make it soo it only archives closed threads?

BigJohnson 04-25-2002 09:41 AM

nice hack thanx also i think Tap's idea is good, can u make it for closed threads plz

Xenon 04-25-2002 12:45 PM

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 ;)

Xenon 04-25-2002 02:16 PM

ok uploaded a new version

changed file makearchiv.php

a screenshot what has been updatet

BigJohnson 04-25-2002 06:29 PM

thanx

Xenon 04-26-2002 06:54 PM

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:

Chris M 04-28-2002 05:17 PM

Cool...

Sounds very interesting...

Satan

Ordovicium 04-30-2002 11:48 PM

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

Xenon 05-01-2002 02:43 PM

hmm, i think then you don't have PHP v4 right?

Ordovicium 05-01-2002 04:12 PM

PHP Version 4.0.6

Xenon 05-01-2002 04:32 PM

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.

ZiRu$ 05-06-2002 08:42 PM

thanks! But not needed! It would be better if all CLOSED THREADS became archived! I'd install it then

Xenon 05-07-2002 06:51 AM

this shouldn't be a problem to code, i will make it into the next version

Xenon 05-16-2002 09:36 PM

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 :)

Xenon 05-17-2002 03:05 PM

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

nuno 05-25-2002 04:59 PM

nice hack Xenon
thanks :)

Xenon 05-27-2002 06:37 PM

RELEASE:
https://vborg.vbsupport.ru/showthrea...threadid=39104


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
  • Page Generation 0.01926 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete