PDA

View Full Version : lockdown for 2.3 ?


firas
07-10-2004, 05:43 AM
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
@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
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


################
# 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]);
##### 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("","
[LOCKDOWN]:
",$reviewmessage);
$reviewmessage = str_replace("","",$reviewmessage);
$hide_shown = 1;
}
}
if ($hide_shown == 0) {
for ($i = substr_count($reviewmessage,""); $i > 0; $i--) {
$reviewmessage = substr_replace($reviewmessage,"Lockdown
You must reply to see the hidden text",strpos($reviewmessage,"[hide]"),(strpos($reviewmessage,"")-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: #
######################

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

##### 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("","
[LOCKDOWN]:
",$post[message]);
$post[message] = str_replace("","",$post[message]);
$hide_shown = 1;
}
}
if ($hide_shown == 0) {
for ($i = substr_count($post[message],""); $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],"")-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
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.

firas
07-17-2004, 04:21 AM
Well, such a hack wasn't released here right now.

IIRC you can just get it by paying currently.

sorry but didn't get what u meant...where can i get it and how can i pay and how much does it cost

Blindchild02
07-18-2004, 03:36 AM
can someone explain wut the "lockdown" hack is? and does?

Xenon
07-18-2004, 05:26 PM
@firas: sorry no idea, i just know you can buy it somewhere, but not where or how much.

@Blindchild: the lockdownhack is actually a hack, that requires a user to post into a thread, before he can see special informations in that thread, or download attachments or so.

Most of the time it's the way to make sure, the board stores the IP of those who download anything, but there can be other purposes as well.

Merjawy
07-18-2004, 10:07 PM
both are mainly used to force a user to reply nothing more.. They don't want users to register and just read/download without posting ..

I rather let a guest download than having a huge user list with inactive members or force members to say hi/1/me ... etc etc

I had both hacks, just cuz I collect junk not gonna use either

only good use for this is if you have to say something as admin and you want to make sure everyone read it specialy staff members is to make them reply.. thats how I see it

firas
07-20-2004, 04:39 AM
I had both hacks, just cuz I collect junk not gonna use either


would u please share it with us

Merjawy
07-20-2004, 08:58 PM
I did say I had both hacks :)

TECK
07-21-2004, 01:45 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


################
# 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]);
##### 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("","
[LOCKDOWN]:
",$reviewmessage);
$reviewmessage = str_replace("","",$reviewmessage);
$hide_shown = 1;
}
}
if ($hide_shown == 0) {
for ($i = substr_count($reviewmessage,""); $i > 0; $i--) {
$reviewmessage = substr_replace($reviewmessage,"Lockdown
You must reply to see the hidden text",strpos($reviewmessage,"[hide]"),(strpos($reviewmessage,"")-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: #
######################

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

##### 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("","
[LOCKDOWN]:
",$post[message]);
$post[message] = str_replace("","",$post[message]);
$hide_shown = 1;
}
}
if ($hide_shown == 0) {
for ($i = substr_count($post[message],""); $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],"")-strpos($post[message],"[hide]"))+7);
}
}

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

I was looking only at the showthread part... it will add 4 queries for each post...
Ending with 30-40 queries per page, easy. Please don't use it.

firas
07-21-2004, 04:06 AM
I did say I had both hacks :)

and i did say please share it with us...:)

TECK: thanx i won't use it. i wanna that one for attachments

Xenon
07-21-2004, 02:21 PM
firas, He had them, that's past tense, so i'd assume he doesn't have them anymore.
;)

Merjawy
07-21-2004, 07:55 PM
Thnx Xenon, thats exactly it.

firas
07-24-2004, 04:14 AM
ok...i just assumed that he still does...

thanx...hope that somebody still has them...

firas
08-07-2004, 04:16 AM
any news?

firas
09-19-2004, 01:29 PM
still waiting...:(