Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Archiv for vBulletin Details »»
Archiv for vBulletin
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-26-2002 Last Update: Never Installs: 38
 
No support by the author.

Ok, i have completed my Archivhack now

Hackversion: 3.00
Known Bugs: The permissionsystem doesn't work with php4.1.x
What it does:
It compresses a thread in the database, so it would take less space, but it cannot be posted in it anymore.
Zlib-functions must be installed on your server. Without this hack won't work

You can revert Archives to threads when you want it.
A small searchengine is also included.


Install it at your own risk!!!
It should work without problems, it has been tested very long, but you know Murphys Law..

A hint how to use it with PPN's thread description Hack is in the install file.

Thanx to Foxtroter for the help on english Templates.
The conversion can take a longer timespan, read this for optimization.

look at the screenies below

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-28-2002, 04:01 AM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

impressive!
[high]* snyx runs off to install[/high]
Reply With Quote
  #13  
Old 05-28-2002, 10:16 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Velocd
How about using PPN's recent thread description hack to be able to add descriptions to the archives? Or will this already work if you have PPN's thread description hack installed?
No, it doesn't work with the installed PPN Hack.
I'll make an option in the next version, so you can use the description hack, shouldn't be a great problem

[high]* Xenon has to take a look at PPNs Hack again[/high]
Reply With Quote
  #14  
Old 05-28-2002, 11:31 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, will integrate this next version, but i'll also change it a bit, so you can use a description w/o PPNs Hack

for all of you, which want to use PPNs Hack with the Archive, make following changes:

[sql]
ALTER TABLE `archiv` ADD `description` VARCHAR(100) NOT NULL;
[/sql]

edit admin/archiv.php:

find:
PHP Code:
$thread=$DB_site->query_first("SELECT title, postusername, forumid FROM thread WHERE threadid=$threadid"); 
replace with:
PHP Code:
$thread=$DB_site->query_first("SELECT title, postusername, forumid, description FROM thread WHERE threadid=$threadid"); 
find:
PHP Code:
$DB_site->query("INSERT INTO archiv (archivid,ersteller,title,forum,firstpost,lastpost,posts,topposter,archivtext) VALUES (NULL,'".addslashes(htmlspecialchars($thread[postusername]))."','".addslashes(htmlspecialchars($thread[title]))."','".addslashes(htmlspecialchars($forum[title]))."','$first[dateline]','$last[dateline]','$totalposts','".addslashes(htmlspecialchars($topposter[postuser]))." (".$topposter[posts].")','".addslashes($fulltext)."')"); 
replace with:
PHP Code:
$DB_site->query("INSERT INTO archiv (archivid,description,ersteller,title,forum,firstpost,lastpost,posts,topposter,archivtext) VALUES (NULL,'".addslashes(htmlspecialchars($thread[description]))."','".addslashes(htmlspecialchars($thread[postusername]))."','".addslashes(htmlspecialchars($thread[title]))."','".addslashes(htmlspecialchars($forum[title]))."','$first[dateline]','$last[dateline]','$totalposts','".addslashes(htmlspecialchars($topposter[postuser]))." (".$topposter[posts].")','".addslashes($fulltext)."')"); 
edit
archiv_showarchiv template and add $archiv[description] wherever you want it

should work but isn't tested
Reply With Quote
  #15  
Old 05-28-2002, 04:38 PM
Ordovicium's Avatar
Ordovicium Ordovicium is offline
 
Join Date: Oct 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon

but post your wishes, so i can include them all in next version
Integration into the search Engine.
Reply With Quote
  #16  
Old 05-28-2002, 04:42 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

genau, lass mich nur leiden ^^

will see what i can do
Reply With Quote
  #17  
Old 05-28-2002, 11:10 PM
Nam's Avatar
Nam Nam is offline
 
Join Date: Oct 2001
Location: NY
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this the hack that has already been used at www.sitepointforums.com ? The reason I ask is because when I search stuff at that site, all old thread are closed that I couldn't reply even if I want to.

If it's, it's a great hack.
Reply With Quote
  #18  
Old 05-29-2002, 12:00 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, it isn't.
Reply With Quote
  #19  
Old 05-29-2002, 08:04 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, new version out now.

just a small update, but i'm sure you'll enjoy it.

You can now convert threads which have special options (like last post x days ago and so on)
Also you can make an Optional description to an Archiv. And you have to change 1 line when you use PPN's hack, every other thing is included

@Ordovicium: have had a look at search.php, this would be a real hard work to integrate it into the search engine, so i can't include it in near time.
Wie heissts, ich legs erstmal zu den Akten, vielleicht kommt mir irgendwann mal die geniale idee WIE
Reply With Quote
  #20  
Old 05-29-2002, 09:51 PM
Ordovicium's Avatar
Ordovicium Ordovicium is offline
 
Join Date: Oct 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. No Problem.
Reply With Quote
  #21  
Old 05-30-2002, 12:14 AM
Frank-kun Frank-kun is offline
 
Join Date: Nov 2001
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Xenon, great hack, works like a charm. But there's a tiny bug. If the forum you make an archived thread from has an apostrophe in it..like "AnimeInfo's Best Of", you get a database error when you try to view the archive since the code gets confused about the apostrophe and thinks it's a single quote. I'm not sure if you'd be able to fix the bug, but I thought I'd let you know.

I just changed the name of my forum to one that didn't have an apostrophe and it works good.

I also took the liberty of rewriting the text that shows up in the templates in English (hope you don't mind). If you folks want maybe I can repost Xenon's templates...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09009 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete