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)

NuclioN 01-05-2003 11:18 AM

That's to bad. It looks if moderators can archieve postings and they show up in the showarchiv.php, but the admin can't see this submission nor can alter it. I don't know if there are members who can see and archieve but it would be great if this could be controled somewhere.

mistyl 01-05-2003 08:25 PM

It is working now! I coverted my first thread! But when I click on the link that say Show All Archives it doesn't show the threads contain in there.

http://www.divamoms.com/forums/showarchiv.php

mistyl 01-05-2003 08:36 PM

Also is there anyway to get the Archive on the forum home?

Xenon 01-06-2003 07:21 AM

@mistyl: whenever you provide an url to your board to show something be sure it's opened to guest, or give a test account or we can't help :)

question2: just add a link tho showarchiv.php on the forumhome template.

@Nuclion: hmm, you must have made an mistake, normally just admiins can create archives, that's why archiv.php is in admin-cp...

AWS 01-06-2003 08:12 PM

Excellent hack. Just what I was looking for.

Clicks install.

One question where is this located in the Archive templates?

Extreme .NET Forums > Archiv > All Archives

I want to change Archiv to Archive.

AWS 01-07-2003 03:24 AM

Uninstalled it for now. I archive a forum and all is ok. The per-page links are ok. As soon as I archive a second forum and head into that archive the first page shows the correct per-page links for that archive, but, if you click on the link to page 2 it takes you to page 2 of the whole archive. It doesn't seem to build multi-page links per forum archive but instead makes them for the whole archive and sets them in each. To see what I mean go to:

http://visualbasicforum.com/showarchiv.php

click on ADO.net archive. Then click at bottom of page click one of the per-page links. It will show posts from ASP.net the other forum I archived. If you want to view the rest of the ADO.net archived threads you have to click through all the links until you get back to them.

This is still a great hack and does just what I want, but, I can't use it as it is now. Once I archive all my forums it would be insane for a user to be able to navigate each archived forum since the perpage links seem to link randomly by date rather than by forum.

I fixed this.

This line:
PHP Code:

$pagenav=getpagenav($totalarchives,"showarchiv.php?s=$session[sessionhash]&action=showarchives&forum=".htmlspecialchars($forum)); 

should be:
PHP Code:

$pagenav=getpagenav($totalarchives,"showarchiv.php?s=$session[sessionhash]&action=showarchives&forumid=".htmlspecialchars($forumid)); 

Now to start archiving all my old threads and removing forums that I have closed after I archive them.

One more question. Could you add the feature to archive a forum by using the forum ID?
I want to archive all threads in a few of my forums and doing by date doesn't get all the posts. I would like to be able to just put a forum id in and have it do it that way then I know I get everything. This will also archive orphaned threads left behind that are tied to an ID of a removed forum.

Xenon 01-07-2003 04:08 PM

@AWS: Thanks, that bug comes with version3, i've forgotten to change the pagenavlink here thanks :)

also it should be that:
PHP Code:

  $pagenav getpagenav($totalarchives,"showarchiv.php?s=$session[sessionhash]&action=showarchives&forumid=".intval($forumid)); 

[high]* Xenon updates file :)
[/high]


Quote:

One question where is this located in the Archive templates?

Extreme .NET Forums > Archiv > All Archives
you have to edit showarchiv.php the function makearchivnav($archivid=0, $forumid=-1, $title="") :)

Quote:

One more question. Could you add the feature to archive a forum by using the forum ID?
it's already there, there is a forumchooser code when converting threads, no need for an id here :)

AWS 01-07-2003 04:30 PM

Quote:

it's already there, there is a forumchooser code when converting threads, no need for an id here
I see that. The ability to put in a forum id would be good also.
If you remove a large forum like I did, 50,000+ posts, more than likely vbulletins script will time out and all posts won't be removed. They are still in the db tied to an id, but, since the forum is no longer there it won't show in the dropdown box.
If we are able to input an id to the missing forum we could archive those old posts and remove then from the db.
This would be very helpful to not only archive these posts, but also remove them altogether.

Xenon 01-07-2003 04:38 PM

hmm, i can give you the code :)

open archiv.php and replace this:
PHP Code:

  makeforumchoosercode("and forum is<br><smallfont>Subforums are not included!</smallfont>","useforumid",-1,"Any"); 

with this:
PHP Code:

  makeinputcode("and forumid is<br><smallfont>Subforums are not included!</smallfont>","useforumid","-1"); 

this should work..

AWS 01-07-2003 06:22 PM

Quote:

Originally posted by Xenon
hmm, i can give you the code :)

open archiv.php and replace this:
PHP Code:

  makeforumchoosercode("and forum is<br><smallfont>Subforums are not included!</smallfont>","useforumid",-1,"Any"); 

with this:
PHP Code:

  makeinputcode("and forumid is<br><smallfont>Subforums are not included!</smallfont>","useforumid","-1"); 

this should work..

Works great. I'm archiving the orphaned threads that vbulletin didn't remove when I removed the forums. Great work.


All times are GMT. The time now is 05:23 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.02574 seconds
  • Memory Usage 1,758KB
  • 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
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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