vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatic thread move when a user deletes a thread *Recycle Bin* (https://vborg.vbsupport.ru/showthread.php?t=36107)

E 03-23-2002 04:53 AM

Damn... i cant find anything :( ... Neo when u get back could u help?

Neo 03-23-2002 05:57 AM

Odd it works for me find...

E 03-23-2002 06:10 AM

ill show u my code... but it works.. but when i close it thread it moves there not when i delete one.. first i wanna make sure that this isnt right?

ptbyjason 03-23-2002 11:35 AM

I am trying this out, but I ran across a problem. When I searched for

PHP Code:

      $firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
      if (
$bbuserinfo[userid]!=$firstpostinfo[userid]) {
        
show_nopermission();
      }
    }
  }


But my last "}" is not in the original code. I inserted it after the third "}" but I don't think mine is working, any ideas?

E 03-23-2002 11:37 AM

i didnt insert a } and mine worked... altho i dont know if it did what it was suppose too

ptbyjason 03-23-2002 12:41 PM

I didn't insert an extra one either. I just inserted it after the third one.

Neo 03-23-2002 04:10 PM

I just searched for

PHP Code:

      $firstpostinfo=$DB_site->query_first("SELECT userid FROM post WHERE threadid='$threadid' ORDER BY dateline LIMIT 1");
      if (
$bbuserinfo[userid]!=$firstpostinfo[userid]) {
        
show_nopermission();
      }
    }
  }


and I found it perfectly. What version of vbb are you using

Neo 03-23-2002 04:13 PM

Ohhh... ahahah damn there are more than one of these in the postings.php...

ok find that piece of code in this section

// ############################### start do delete thread ###############################
if ($HTTP_POST_VARS['action']=="dodeletethread") {

ptbyjason 03-23-2002 08:59 PM

neo, that's the right section. i am running v 2.24 and mine original is missing one of the }

E 03-23-2002 09:38 PM

now it works.... except only when admins/mods delete thread using the admin function... which makes this almost pointless lol...unless ur admin mods are cheatingu...
anways is there a way so this works when u delete a thread by deleting first post ??


All times are GMT. The time now is 01:44 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.01025 seconds
  • Memory Usage 1,735KB
  • 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_php_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