vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Archiv for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=39104)

Xenon 06-07-2002 01:12 PM

@Tarian: k, werd mir das mit den htmlspecials mal ansehn
Hmm, da soweit ich weis die attachments beim threadl?schen auch gel?scht werden, nehm ich an dass man sie auch nicht mehr nachtr?glich einbaun kann....

@Ord: thanks a lot

@inetd: *gg* it's no problem at your board.
i'll try to include the forumjump in the next version.

it's already in the templates, because i'm a bit lazy in template writing and just copied a code from showthread and changed it to show what it should, but i'll optimate it :)

for icq, there must be a query about the icq codes and the other buttons, perhaps i'll change it :)

Xenon 06-07-2002 01:47 PM

hmm, if you need it really, try to copy this code from functions.php
PHP Code:

    
        
if ($post[icq]!="") {
            eval(
"\$post[icqicon] = \"".gettemplate("icq")."\";");
        } else {
            
$post[icq]="";
        } 

after this lines in showarchiv.php:
PHP Code:

$userinfo=$post


Tarion 06-07-2002 03:31 PM

danke für die Antwort, da muß ich dir recht geben, beim Lösachen werden Attachments auch gelöscht, was ja auch sinnvoll ist zwegs Datenbank kapazität, nochmals Danke.

Link14716 06-28-2002 05:31 PM

I installed it, and when I try to convert a forum to an archive, I get this error:

Code:

Fatal error: Call to undefined function: gzdeflate() in /home/sites/site68/web/forums/admin/archiv.php on line 122
Any ideas on how to fix this?

Xenon 06-28-2002 11:02 PM

The gzip functions must be installed on your server (i think the module for apache calls zlib..).
if this isn't installed, you can't use the hack

Foxtroter 07-17-2002 06:56 AM

Just thought some of you might want them in english.

@Xenon if you have a prob with me posting them just let me know and I'll remove.

enjoy

also for your admin panel (/admin/index.php)

replace:
PHP Code:

makenavoption("Make Archiv(es)","archiv.php?action=chooser","<br>");
makenavoption("Revert Archiv","archiv.php?action=revert"); 

with:
PHP Code:

makenavoption("Make Archive(s)","archiv.php?action=chooser","<br>");
makenavoption("Revert Archive","archiv.php?action=revert"); 

and for online.php

replace:
PHP Code:

case 'showarchiv':
      
$userinfo[where] = "Viewing <a href='showarchiv.php?s=$session[sessionhash]'>Archiv</a>";
      break; 

with
PHP Code:

case 'showarchiv':
      
$userinfo[where] = "Viewing <a href='showarchiv.php?s=$session[sessionhash]'>Archive</a>";
      break; 


Xenon 07-17-2002 08:38 AM

thanx mate :)

Foxtroter 07-17-2002 08:41 AM

Sure man np

proxyMX 08-01-2002 04:53 AM

Xenon, i have always wondered why this wasnt a pred made function with vbulletin, maybe now youve made it, they will ad it to Vb3. It is standard in many forums, and just wat ive been looking for, *huggles* thanks

proxyMX 08-01-2002 04:59 AM

i was wanting to create a specific archive forum and then move all older posts {like 6 months old+} to this forum automatically, like a prune feature that moves old threads into the archives forum, how would i go about this? I dont want to have to do ti manually

if you are thinking about this feature add it to your wishlist

Plus>> Id also like to see.

Archive Highlighting
Perhaps a small area on the mainpage that highlights a "golden oldie" post by random from the archives :)

Xenon 08-01-2002 12:23 PM

thanks ;)

hmm, moving threads older than 6 month is possible i think isn't it ;)

i don't have much free time these days, so coding and upgrading hacks isn't something what i can doo these days, but i'll put it on the to do list :)

proxyMX 08-01-2002 02:35 PM

Yeah, ive thought it through, and ill enslave some mods to do the dirty work :P

Xenon 08-01-2002 07:50 PM

that's why they are mods ;)

Harley-1 09-07-2002 08:43 PM

Hallo,

sag mal gibts eine Möglichkeit alle Beiträge die man mal ins Archiv geschoben (Konvertiert) hat wieder in ein Forum zu verschieben?
Bisher gibts ja nur ne Möglichkeit einzelne Beiträge zurück zu konvertieren.

cobradude 09-10-2002 06:09 PM

Has anyone used this on medium sized sites in the 150,000-250,000 post range? How much did it decrease the size of your database?

fastforward 09-10-2002 09:51 PM

Quote:

Originally posted by cobradude
Has anyone used this on medium sized sites in the 150,000-250,000 post range? How much did it decrease the size of your database?
I've archived 574,902 posts in 126,980 threads at http://dbforums.com/archives/ My archiv table is 212MB.

cobradude 09-10-2002 11:06 PM

Thanks fastforward. What do you figure it was prior to compression?

fastforward 09-11-2002 12:09 AM

Quote:

Originally posted by cobradude
Thanks fastforward. What do you figure it was prior to compression?
Well, my post table is 1.2GB (not including indexes) and that has 820,000 posts. So I'd say the archiv hack reduces the size by roughly 2/3rds.

Xenon 09-12-2002 08:41 AM

Harley: du hast die möglichkeit einfach ne whileschleife aussen rum zu bauen und damit alle archive zu reintegrieren.

ich werde sowas vielleicht auch mal selber einbaun, aber derzeit hab ich wenig zeit, muss meine zwei wochen nacharbeiten die ich nicht da war

cobradude 09-18-2002 08:15 PM

Quote:

Got this database error when trying to arhive....

Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: SELECT title, postusername, description, forumid FROM thread WHERE threadid=1
mysql error: Unknown column 'description' in 'field list'

mysql error number: 1054

Date: Wednesday 18th of September 2002 02:15:23 PM
Script: http://www.clubcobra.com/forums/forums/admin/archiv.php
Referer: http://clubcobra.com/forums/admin/ar...action=chooser

Nevermind....I thought I had the description hack installed....Got it squared away.

Xenon 09-20-2002 03:26 PM

I've released a new Version today: 2.00

It reduces the query ammount, is more customizable because it has more templates now, corrects a small bug and: Has a small build in searchengine.

For upgrades: run admin/install_archiv.php and klick on upgrade ;)

a Note: The Searchengine just works with Archives converted by v2.00.
I'm thinking of a reindex Search Index function, but it's not finished(not started ;)) yet.

I think i'll work on this hack more again as i've done in the past ;)

Harley-1 09-21-2002 10:47 AM

Hallo,

hab mal da update gemacht, nun werden keine Beiträge im Archiv mehr angezeigt. Ich bin so verfahren wie es im ersten Posting steht. Fehler gibts keine nur werden eben die Threads nicht angezeigt.

Nebenbei hatte ich ja gefragt ob es möglich sei alle Archive wieder mal komplett zurück zu konvertieren, da meintest Du ich sollte eine schleife einbauen. Nun bin ich ned gerade so der wissende in sachen phpcoding, kannst mir da mal einen Tip geben?

Xenon 09-21-2002 10:57 AM

grr, hab vergessen was dazuzusagen ^^

For all: If you have upgrade to the newest version you have to revert your templates, because another code is used in the original ones.

Harley-1: das sollte dann wohl auch dein problem sein, einfach alle templates reverten und es sollte wieder gehn

zur schleife:
admin/archiv.php
finde
PHP Code:

if ($action=="dorevert") {

  
archivtothread($useid$useforumid$archivkill);
  echo 
"<p>Archiv reverted!</p>";

  
  
cpredirect("archiv.php?s=$session[sessionhash]&action=revert",1);




ersetze es mit:
PHP Code:

if ($action=="dorevert") {

  
$archives=$DB_site->query("SELECT archivid FROM archiv");
  while(
$archiv=$DB_site->fetch_array($archives)) {
  
archivtothread($archiv[archivid], $useforumid$archivkill);
  echo 
"<p>Archiv $archiv[archivid] reverted!</p>";
 }

  
  
cpredirect("archiv.php?s=$session[sessionhash]&action=revert",1);




das sollte alle archive zur?ckumwandeln

wie schon gesagt ich schreibe so ein script noch ausf?hrlicher, aber die suchmaschine ging beim letzten upgrade vor..

Harley-1 10-11-2002 12:51 PM

Hi,

habe das nun mal eingebaut wie du es oben beschrieben hast, aber er verlangt immer ein ID die ich eingeben soll.
Wenn ich dann irgendeine ID eingebe, dann macht der tausende threads mit dem gleichen Topic und selbigem Inhalt. Also egal wie ich es versuche, ich bekomme das Archiv nicht wieder zurück konvertiert. hast du noch eine andere Idee?

Xenon 10-11-2002 03:53 PM

sorry, hatte nen kleinen fehler drine
probiers jetzt nochmal, du musst zwar wieder ne id eingeben, aber es ist wurscht welche, er sollte nun alle machen

Harley-1 10-11-2002 04:28 PM

Jo etz macht ers, aber nun bekomme ich wieder neue probs beim reverten.
Invalid SQL: INSERT INTO post (postid,threadid,username,userid,dateline,pagetext ,allowsmilie,visible) VALUES (NULL,'8658','Jaguar','1','989245500
4','Hi

HIER DER GANZE TEXT

[ 07. Mai 2001: Beitrag editiert von: Jaguar ]','1','1')
mysql error: You have an error in your SQL syntax near 'Mülleimer' oder 'Nörgelecke', 'geschlossene Anstalt' oder wie man das sinnigerwe' at line 1

mysql error number: 1064

All zu viel hat sich eigentlich nimmer am board verändert, kann es sein, daß er sonderzeichen oder sowas ned richtig umsetzt?

Xenon 10-11-2002 07:14 PM

hmm, versuch mal in der archiv.php

das $archiv[firstpost] durch addslashes($archiv[firstpost]) zu ersetzten in der queryline

Harley-1 10-11-2002 07:46 PM

Immer noch das selbe:
Er konvertiert ein paar Threads und dann kommt immer dieser fehler. Wenn ich die threads lösche geht er weiter, aber ich kann ja schlecht von 5000 threads immer einige löschen da dies ja ned wenige sein werden.

Invalid SQL: INSERT INTO post (postid,threadid,username,userid,dateline,pagetext ,allowsmilie,visible) VALUES (NULL,'8670','Jaguar','1','989245500
4','Hi,

TEXT VOM POST

[ 07. Mai 2001: Beitrag editiert von: Jaguar ]','1','1')
mysql error: You have an error in your SQL syntax near 'Mülleimer' oder 'Nörgelecke', 'geschlossene Anstalt' oder wie man das sinnigerwe' at line 1

mysql error number: 1064

Xenon 10-12-2002 09:09 AM

hmm, versteh ich nicht, vorallem weil mülleimer oder so garnicht vorkommt im query.....

Harley-1 10-12-2002 09:47 AM

Tja das weis ich natürlich auch ned warum der das ned machen will. Es ist auch bei einigen anderen Threads so, daß er mit dieser Meldung stopt. Andere macht der ohne probleme.

Xenon 10-12-2002 10:01 AM

hmm, also bei mir gabs mit sonderzeichen tests keine probleme, aber z.Zt. hab ich auch nicht genug zeit f?r umfassende arbeiten an Hacks, die Semesterferien sind vorbei :(:(

Mal sehn, wenn ich mal etwas mehr Zeit hab werde ich mal die Fkt auf Herz und nieren testen, vielleicht kann ich den Fehler irgendwie reproduzieren und dann beheben

spaceb 10-12-2002 04:04 PM

hmm i wanted to know if i archiv messages from private forums all the users can see the messages, or only the people that have access to thoose private forums?

Xenon 10-12-2002 06:41 PM

spaceb: all messages from privat forums will be viewable for all users.

I'm already thinking of a permission system for the next greater upgrade of the hack, but i don't have an idea how to do it exactly now...

Xenon 10-13-2002 03:23 PM

Ok, i've uploade version 3.00 RC

normally everything should work, but who knows ;)

now included is an permission system

enjoy

you have to enable all permissions before anyone can see the archives.

also run the upgradescript or you'll get problems

Harley-1 10-14-2002 04:39 PM

So noch ein kleiner wunsch *g*

Wenn man Themen im archiv hat und im Forum dann mal die Counter updated dann sind alle Postings die im archiv sind bei den userposts weg. Also fehlem dem user dann Beiträge in der Anzeige der Postings. Kann man das noch einbauen, daß er die Beiträge der user im archiv mitzählt?

Xenon 10-14-2002 04:45 PM

Sorry, das geht nicht, dazu müsste die Struktur des archivs stark geändert werden....

DrkFusion 10-14-2002 04:45 PM

Hey Xenon is this the modified one, and does it work like the SearchEngs script?

-nOX

Harley-1 10-14-2002 04:47 PM

Nagut wenn das ned geht dann kann mans ned ändern. Ich werde dann mal versuchen die Postings wieder zu reverten, vielleicht schaffe ich es ja irgendwie das dieser dumme sql fehler nimmer auftaucht.

Xenon 10-14-2002 05:11 PM

Arunan: It's the newest version with the integrtion of a personal searchengine.
i've copied some parts out of the searchenginescript they use for posts and modified em...
i think it works good, it also shows the pages of an archive where the text has been found

Harley-1 10-14-2002 06:19 PM

Sag mal würde es Dir eventuell helfen wenn ich dir mal die archiv.sql zukommen lasse, damit du das so siehst wie ich?. Ich habe jetzt hin und her verscuht, aber es sind zwischendurch einfach zuviele threads die nimmer zurück revertet werden können.


All times are GMT. The time now is 12:43 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
  • Page Generation 0.02834 seconds
  • Memory Usage 1,838KB
  • 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
  • (8)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete