vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   lockdown for 2.3 ? (https://vborg.vbsupport.ru/showthread.php?t=67028)

firas 07-10-2004 05:43 AM

lockdown for 2.3 ?
 
hi

as it became legal here, does any one have it???

The Realist 07-10-2004 09:34 AM

Dont ask for this hack here. Its against VB's licence and conditions.

Xenon 07-10-2004 09:37 AM

@The Realist: nope it's not.
The rule was removed long time ago now.

SaN-DeeP 07-10-2004 10:28 AM

Quote:

Originally Posted by Xenon
@The Realist: nope it's not.
The rule was removed long time ago now.

if anyone interested in converting this hack for vb 3.0
i can share the 2.x codes :)

please contact me only via pm.

Regards,

The Realist 07-10-2004 10:56 AM

I did not know that - interesting.

Anyone with a link to an official post that states this is fact.

MetroSports82 07-10-2004 12:08 PM

Quote:

Originally Posted by The Realist
I did not know that - interesting.

Anyone with a link to an official post that states this is fact.

https://vborg.vbsupport.ru/showthread.php?t=65801

Liquid1ce 07-11-2004 05:23 AM

Ive had this on my system for a while now-
There are no creidts so i do not know who coded it as at the time lockdown was disallowed but heres the code & credits go to who ever coded it

Code:

################
# NEWREPLY.PHP #
################

FIND:

-----------------------------------------------

while ($post=$DB_site->fetch_array($posts)) {
    if ($postcounter++ < $maxposts) {
          if ($postcounter%2 == 0) {
            $backcolor = "{firstaltcolor}";
          } else {
            $backcolor = "{secondaltcolor}";
          }
          $username=$post[username];
          $reviewmessage=bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]);
eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
      } else {
        break;
      }
 }

-----------------------------------------------

################
# REPLACE WITH #
################

-----------------------------------------------

while ($post=$DB_site->fetch_array($posts)) {
  if ($postcounter++ < $maxposts) {
        if ($postcounter%2 == 0) {
          $backcolor = "{firstaltcolor}";
        } else {
          $backcolor = "{secondaltcolor}";
        }
        $username=$post[username];
        $reviewmessage=bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]);
        ##### [hide] [/hide] HACK #####
        $hide_shown = 0;
        $hide_posts = $DB_site->query("SELECT userid FROM post WHERE threadid='$threadid'");
        $hideisadmin = $DB_site->query("SELECT user.usergroupid FROM usergroup,user WHERE usergroup.usergroupid = user.usergroupid AND user.userid = '$session[userid]'");
        $hideisadmin  = $DB_site->fetch_array($hideisadmin);
        while ($hide_user = $DB_site->fetch_array($hide_posts)) {
          if((($hide_user[userid] == $session[userid]) OR ($hideisadmin[usergroupid] == 6)) AND $hide_shown == 0) {
          $reviewmessage = str_replace("[hide]","
[LOCKDOWN]:
",$reviewmessage);
          $reviewmessage = str_replace("[/hide]","",$reviewmessage);
          $hide_shown = 1;
          }
        }
        if ($hide_shown == 0) {
          for ($i = substr_count($reviewmessage,"[hide]"); $i > 0; $i--) {
          $reviewmessage = substr_replace($reviewmessage,"Lockdown
You must reply to see the hidden text",strpos($reviewmessage,"[hide]"),(strpos($reviewmessage,"[/hide]")-strpos($reviewmessage,"[hide]"))+7);
        }
      }
    ###############
        eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
      } else {
        break;
      }
 }

-----------------------------------------------

##################
# SHOWTHREAD.php #
##################

FIND:

-----------------------------------------------

if ($post[ip]!="") {
  if ($logip==2) {
    eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_show")."\";");
  }
  if ($logip==1) {
    eval("\$post[iplogged] .= \"".gettemplate("postbit_ip_hidden")."\";");
  }
  if ($logip==0) {
    $post[iplogged]="";
  }
 } else {
  $post[iplogged]="";
 }

 $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);

-----------------------------------------------

######################
# UNDER THAT INSERT: #
######################

-----------------------------------------------

##### [hide] [/hide] HACK #####
  $hide_shown = 0;
  $hide_posts = $DB_site->query("SELECT userid FROM post WHERE threadid='$threadid'");
    $hideisadmin = $DB_site->query("SELECT user.usergroupid FROM usergroup,user WHERE usergroup.usergroupid = user.usergroupid AND user.userid = '$session[userid]'");
    $hideisadmin  = $DB_site->fetch_array($hideisadmin);
  while ($hide_user = $DB_site->fetch_array($hide_posts)) {
    if((($hide_user[userid] == $session[userid]) OR ($hideisadmin[usergroupid] == 6)) AND $hide_shown == 0) {
      $post[message] = str_replace("[hide]","
[LOCKDOWN]:
",$post[message]);
      $post[message] = str_replace("[/hide]","",$post[message]);
      $hide_shown = 1;
    }
    }
    if ($hide_shown == 0) {
      for ($i = substr_count($post[message],"[hide]"); $i > 0; $i--) {
      $post[message] = substr_replace($post[message],"Lockdown
You must reply to see the hidden text",strpos($post[message],"[hide]"),(strpos($post[message],"[/hide]")-strpos($post[message],"[hide]"))+7);
      }
    }

-----------------------------------------------


firas 07-11-2004 06:54 AM

thanx a lot but this is not what i am looking for

i am looking for the one that works on the attachments....

anyway about that hack, is there anyway to make it available only for some sections and not to the whole forum??

firas 07-15-2004 10:12 AM

any good news??

what i want is something that does exist and i saw it in some forums and it has these features:

1- you can chose which section does it have to work on.
2- you cannot download the attachement before you reply.
3- it installs new control buttons in the control panel

Regrads

Xenon 07-15-2004 04:46 PM

Quote:

Originally Posted by firas
any good news??

what i want is something that does exist and i saw it in some forums and it has these features:

1- you can chose which section does it have to work on.
2- you cannot download the attachement before you reply.
3- it installs new control buttons in the control panel

Regrads

Well, such a hack wasn't released here right now.

IIRC you can just get it by paying currently.


All times are GMT. The time now is 09:22 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.01027 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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