vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Archive Thread (https://vborg.vbsupport.ru/showthread.php?t=71818)

Mephisteus 11-25-2004 04:54 PM

Only mods can archive posts, not sure whats up with the setting problem, since it seems to be working here. I'll check the distribution file when I get back.

glenvw 11-27-2004 10:56 AM

Following up.

My Mod loves this since it saves lots of time keeping our board clean.

Question, how hard to add a second radio button and second archive forum option to this hack? I have use for sending differerent types of posts to different archives.

Mephisteus 11-27-2004 02:13 PM

Not that hard, here is how (things in bold are new) BE SURE TO GO THROUGH THE ENTIRE CODE YOURSELF, there is a similar variable to be altered:
Code:

// ############################### start archiving thread ###############################
if ($_POST['do'] == 'archivethread2')
{
        globalize($_POST, array(
                'threadid' => INT,
                'method' => STR,
                'title' => STR
        ));
        $destforuminfo['forumid'] == $vboptions['archiveforumid2']; // If you are to lazy to add a setting replace $vboptions['archiveforumid2'] with the archive forum id

<!-- Going on with the code -->

And when adding the setting
Code:

Varname: archiveforumid2
And the dropdown edit
Code:

                <div><label for="ao_arc2"><input type="radio" name="do" id="ao_arc2" value="archivethread2" />$vbphrase[archive_thread]</label></div>
The italics means you might want to add either extra description behind it, or make new phrases for it.

I'm sure there is a less code adding way of doing it, but this will work just as good :)

glenvw 11-27-2004 02:43 PM

So do I assume this goes in the postings.php

Where do I paste it in relation to the other code you had me replace?

===

I just notice the email I was sent (subscribed to this thread) has much more code in it than your post above (?)

Mephisteus 11-27-2004 06:28 PM

You put the code after the already existing code, I removed the extra code so you don't spent ages looking for something that doesn't matter :) These are the things that you have to change, no need to put a large amount of code in there that has no relevance and will only confuse people :)

glenvw 11-30-2004 12:18 PM

Ok

Got all installed

Added these phrases:

/------------------\
| archive_thread |
\------------------/
Phrase Type: Show Thread
Varname: archive_thread2
Text: Archive Thread 2

/------------------\
| archive_thread |
\------------------/
Phrase Type: Thread Management
Varname: archive_thread2
Text: Archive Thread 2

/-------------------\
| thread_archived |
\-------------------/
Phrase Type: Thread Management
Varname: thread_archived2
Text: Thread Archived 2

Added your code to bottom of old hack.
I had to add a "}" to the end of your code for it not to give me an error.

I got the Showthread working etc.

However, when I try to use new archive button #2 it goes to postings.php and blank page.

Can you help?

glenvw 11-30-2004 06:30 PM

I sent you a response by PM. Hope fully you got it. My Mods are begging to get this fixed.

Thanks

Mephisteus 11-30-2004 08:25 PM

Resolved issue via PM, was an error on both our sides.

Note to other users: Be sure to add 2 to all archivethread items. I accidently missed one inside the script itself that actually decides where it goes (sorry).

agiacosa 12-31-2004 08:30 PM

Did you update the zip file for this?

Mephisteus 01-07-2005 12:01 PM

No I haven't. What you basically have to do is rename the variables and add the piece of code for a second time, below the first piece.


All times are GMT. The time now is 07:56 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.01173 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_code_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
  • (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