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)
-   -   3 Admin Tools: Remove Redirect, Edit Posts, & Moderate User (https://vborg.vbsupport.ru/showthread.php?t=14075)

dkilburn 05-05-2002 05:21 PM

:knockedout: I was looking at my local copy and not the server copy. Apparently I didn't have all the files locally. Anyway, I DO have the mod folder, and here is what is shown around line 128:

PHP Code:

          // send notification
          
if (!$notified["$thread[threadid]"]) {
            
$message $postpagetext[$key];
            
sendnotification($thread['threadid'], $thread['userid'], $key);
            
$notified["$thread[threadid]"] = 1;
          } 


FWC 05-05-2002 06:06 PM

That's weird. sendnotification is defined in admin/functions.php. I've never gotten that error.

Dark Shogun 08-19-2002 03:12 PM

I have 2.2.6. and am trying to remove the redirects. This is the file I am working with now: install-massprune-redirects

In that file there is some code that I can't find.
PHP Code:

3. Open mod/index.php.

Find: 

    <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prune"> Mass Prune </a>

Is mod/index.php even the right file to find that code?

Dark Shogun

NTLDR 08-19-2002 03:46 PM

Quote:

Originally posted by Dark Shogun
Is mod/index.php even the right file to find that code?
Yes! The CPs have changed alot since then, the code you need to find is:

PHP Code:

makenavoption("Mass Prune","thread.php?action=prune"); 

And you need to add the code in the same format, so:

PHP Code:

makenavoption("Mass Prune Redirects","thread.php?action=prunered"); 


Dark Shogun 08-19-2002 03:57 PM

Last question is about:

This code is what I am supposed to find in admin/index.php but as above things have change but I don't know how to convert it.

PHP Code:

<a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=move"> Move </a>

Dark Shogun

NTLDR 08-19-2002 04:52 PM

Find, and add the same as above for /mod/index.php

Dark Shogun 08-19-2002 05:07 PM

I put it where it was supposed to go but I don't see the link in the admin center.

Dark Shogun

neocorteqz 09-16-2002 07:31 AM

I Installed the delete redirects one.. I will give the other ones a go later.. Nice work.

Thanks.

mtha 11-03-2002 05:30 PM

I just install the Mass Redirects Deletion Hack in vB2.7.7 (same in 2.7.8)

some changes need to be made in this hack:

Quote:

3. Open mod/index.php.
Find:
<a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prune"> Mass Prune </a>
Below it add:
<br> <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prunered"> Mass Prune Redirects</a>

change to
Quote:

3. Open mod/index.php.

Find:

makenavoption("Mass Prune","thread.php?action=prune");

Below it add:

makenavoption("Mass Prune Redirects","thread.php?action=prunered");
Change

Code:

5. Open admin/index.php.
Find:
    <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=move"> Move </a>
Below it add:
    <br> <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prunered"> Mass Prune Redirects</a>

to

Code:

5. Open admin/index.php.

Find:

makenavoption("Mass Move","thread.php?action=move","<br />");


Below it add:

makenavoption("Mass Prune Redirects","thread.php?action=prunered","<br />");


in thread-php-addition.txt, change

PHP Code:

// ###################### Start Prune Redirects #######################
if ($action=="prunered") {

  
$perms=getpermissions();
  if (!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmassprunered=1")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  }

  
doformheader("thread","prunereddate");
  
maketableheader("Prune redirects by date");
  
makeinputcode("Delete redirects older than x days:","daysdelete","");
  
makemodchoosercode(-1,-1,'','All forums','In forum',0);

  
doformfooter();



to

PHP Code:

// ###################### Start Prune Redirects #######################
if ($action=="prunered") {

  
$perms=getpermissions();
  if (!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmassprunered=1")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  }

  
doformheader("thread","prunereddate");
  
maketableheader("Prune redirects by date");
  
makeinputcode("Delete redirects older than x days:","daysdelete","");
  
makeforumchooser("forumid",-1,-1,"","----- all -----","Forum:");
  
makeyesnocode("Include sub forums","subforums");

  
doformfooter();




julius 04-14-2003 06:55 AM

It works with 2.3.0?
Thansk


All times are GMT. The time now is 10:48 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.01788 seconds
  • Memory Usage 1,766KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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