Matrix59
24/10/2006, 13h39
bonjour alors voila un ami m'avai aidez a essayer de monté un hide hack pour Vbulletin 3.6.0 donc tout va bien leur de l'installation et le premier jour il cache bien le text grace au balise bbcode ...
mais le lendemain il veut plus fonctionne il ne cache plus le text :(
alors j'espere quelqun pourra m'aidez pour cela je vous affiche la source xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="hide_hack" active="1">
<title>Hide Hack </title>
<description />
<version>1.00</version>
<codes>
</codes>
<templates>
<template name="bbcode_hide" templatetype="template" date="1136223052" username="ja3" version="3.5.2"><![CDATA[<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">Hide:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
$message
</td>
</tr>
</table>
</div>]]></template>
<template name="bbcode_hide_noaccess" templatetype="template" date="1136223115" username="ja3" version="3.6.0"><![CDATA[<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">Hide:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
Merci de répondre a ce poste pour voir le messgae qui et cacher
</td>
</tr>
</table>
</div>]]></template>
</templates>
<plugins>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>forumdisplay_query</hookname>
<phpcode><![CDATA[$hook_query_fields = ',post.pagetext';]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack, no [hide] in reply]]></title>
<hookname>newpost_process</hookname>
<phpcode><![CDATA[if ($type != 'thread')
{
$post['message'] = preg_replace("/\[hide\](.*[\n\r]*)*\[\/hide\]/i","",$post['message']);
$dataman->setr('pagetext', $post['message']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>showpost_post</hookname>
<phpcode><*)\[\/hide\]/i",$post['pagetext'],$hide_regs))
{
$hide_access = $db->query_first("SELECT COUNT(*) AS `num` FROM " . TABLE_PREFIX . "post WHERE `userid` = " . $vbulletin->userinfo['userid'] . " AND `threadid` = " . $threadid);
if($hide_access['num'] > 0) {
$message = $hide_regs[1];
$hide_template = 'bbcode_hide';
}
else {
$hide_template = 'bbcode_hide_noaccess';
}
eval('$hide_fetch = "' . fetch_template($hide_template) . '";');
$post['pagetext_html'] = preg_replace("/\[hide\]((.*[\n\r]*)*)\[\/hide\]/i",$hide_fetch,$post['pagetext_html']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>showthread_postbit_create</hookname>
<phpcode><*)\[\/hide\]/i",$post['pagetext'],$hide_regs))
{
$hide_access = $db->query_first("SELECT COUNT(*) AS `num` FROM " . TABLE_PREFIX . "post WHERE `userid` = " . $vbulletin->userinfo['userid'] . " AND `threadid` = " . $threadid);
if($hide_access['num'] > 0) {
$message = $hide_regs[1];
$hide_template = 'bbcode_hide';
}
else {
$hide_template = 'bbcode_hide_noaccess';
}
eval('$hide_fetch = "' . fetch_template($hide_template) . '";');
$post['pagetext'] = $postbit_factory->bbcode_parser->do_parse($post['pagetext'],false,true,true,true,true,false);
$post['pagetext_html'] = preg_replace("/\[hide\]((.*[\n\r]*)*)\[\/hide\]/i",$hide_fetch,$post['pagetext']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>threadbit_display</hookname>
<phpcode><*\[\/hide\]/i",$thread['pagetext'])) {
$thread['preview'] = preg_replace("/\[hide\]((.*[\n\r]*)*)\[\/hide\]/i","",$thread['pagetext']);
$thread['preview'] = strip_quotes($thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode($thread['preview'], false, true), $vbulletin->options['threadpreview']));
}]]></phpcode>
</plugin>
</plugins>
<phrases>
</phrases>
<options>
</options>
</product>
merci a tous ce qui pourron m'aidez a réglé ce probleme
mais le lendemain il veut plus fonctionne il ne cache plus le text :(
alors j'espere quelqun pourra m'aidez pour cela je vous affiche la source xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="hide_hack" active="1">
<title>Hide Hack </title>
<description />
<version>1.00</version>
<codes>
</codes>
<templates>
<template name="bbcode_hide" templatetype="template" date="1136223052" username="ja3" version="3.5.2"><![CDATA[<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">Hide:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
$message
</td>
</tr>
</table>
</div>]]></template>
<template name="bbcode_hide_noaccess" templatetype="template" date="1136223115" username="ja3" version="3.6.0"><![CDATA[<div style="margin:20px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<div class="smallfont" style="margin-bottom:2px">Hide:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2" style="border:1px inset">
Merci de répondre a ce poste pour voir le messgae qui et cacher
</td>
</tr>
</table>
</div>]]></template>
</templates>
<plugins>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>forumdisplay_query</hookname>
<phpcode><![CDATA[$hook_query_fields = ',post.pagetext';]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack, no [hide] in reply]]></title>
<hookname>newpost_process</hookname>
<phpcode><![CDATA[if ($type != 'thread')
{
$post['message'] = preg_replace("/\[hide\](.*[\n\r]*)*\[\/hide\]/i","",$post['message']);
$dataman->setr('pagetext', $post['message']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>showpost_post</hookname>
<phpcode><*)\[\/hide\]/i",$post['pagetext'],$hide_regs))
{
$hide_access = $db->query_first("SELECT COUNT(*) AS `num` FROM " . TABLE_PREFIX . "post WHERE `userid` = " . $vbulletin->userinfo['userid'] . " AND `threadid` = " . $threadid);
if($hide_access['num'] > 0) {
$message = $hide_regs[1];
$hide_template = 'bbcode_hide';
}
else {
$hide_template = 'bbcode_hide_noaccess';
}
eval('$hide_fetch = "' . fetch_template($hide_template) . '";');
$post['pagetext_html'] = preg_replace("/\[hide\]((.*[\n\r]*)*)\[\/hide\]/i",$hide_fetch,$post['pagetext_html']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>showthread_postbit_create</hookname>
<phpcode><*)\[\/hide\]/i",$post['pagetext'],$hide_regs))
{
$hide_access = $db->query_first("SELECT COUNT(*) AS `num` FROM " . TABLE_PREFIX . "post WHERE `userid` = " . $vbulletin->userinfo['userid'] . " AND `threadid` = " . $threadid);
if($hide_access['num'] > 0) {
$message = $hide_regs[1];
$hide_template = 'bbcode_hide';
}
else {
$hide_template = 'bbcode_hide_noaccess';
}
eval('$hide_fetch = "' . fetch_template($hide_template) . '";');
$post['pagetext'] = $postbit_factory->bbcode_parser->do_parse($post['pagetext'],false,true,true,true,true,false);
$post['pagetext_html'] = preg_replace("/\[hide\]((.*[\n\r]*)*)\[\/hide\]/i",$hide_fetch,$post['pagetext']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[[hide] hack]]></title>
<hookname>threadbit_display</hookname>
<phpcode><*\[\/hide\]/i",$thread['pagetext'])) {
$thread['preview'] = preg_replace("/\[hide\]((.*[\n\r]*)*)\[\/hide\]/i","",$thread['pagetext']);
$thread['preview'] = strip_quotes($thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode($thread['preview'], false, true), $vbulletin->options['threadpreview']));
}]]></phpcode>
</plugin>
</plugins>
<phrases>
</phrases>
<options>
</options>
</product>
merci a tous ce qui pourron m'aidez a réglé ce probleme