Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-21-2016, 06:05 PM
treki treki is offline
 
Join Date: Jun 2015
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem with Sids hide hack

Hello
I have installed https://vborg.vbsupport.ru/showthrea...130887&page=51
In Chrome browser (Linux) it works.
But with Firefox (Linux) and Internet Explorer 11.494.10586.0 the hidden text is not visible after pressing the Thanks button.
What can I do?

vB 3.8.9
[AJAX] Post Thank You Hack v7.7

Edit:
Sometimes it works. Remove Thx, F5, set Thx.
But after F5 the text is not visible too.
Reply With Quote
  #2  
Old 07-21-2016, 07:47 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by treki View Post
Hello
I have installed https://vborg.vbsupport.ru/showthrea...130887&page=51
In Chrome browser (Linux) it works.
But with Firefox (Linux) and Internet Explorer 11.494.10586.0 the hidden text is not visible after pressing the Thanks button.
What can I do?

vB 3.8.9
[AJAX] Post Thank You Hack v7.7

Edit:
Sometimes it works. Remove Thx, F5, set Thx.
But after F5 the text is not visible too.
Hi there friend,

Couple things:

#1 - Always ask questions in the mod thread.

#2 - That was written for 3.6.. You have 3.8.9.
Reply With Quote
  #3  
Old 07-21-2016, 07:50 PM
treki treki is offline
 
Join Date: Jun 2015
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately i have not permissions in this thread for posting.
A friend have vB3.8.9 too and the same hack. There it works.

Edit:
I have a solution for Sid hide hack under vB 3.8.9.
Replace the content of "fetch hide tag" with:
Code:
if ($this->registry->options['sid_hide_active'] == '1' AND stristr($post['message'],'[hide]')){
            global $vbulletin, $vboptions, $bbuserinfo, $db, $threadid, $hide_call, $postid;
            $bbuserinfo = $this->registry->userinfo;
            $post = $this->post;
            $hide_read = false;
            $hide_img_set = 0;
            $hide_replied = '';
            $hide_thanked = '';
            $hide_stop = 0;
            if (!empty($this->registry->options['sid_hide_notforum'])){
                $sid_hide_forum_stop = explode(",",$this->registry->options['sid_hide_notforum']);
                if(in_array($thread['forumid'],$sid_hide_forum_stop)){
                    $post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '\\1', $post['message']);
                    $hide_stop = 1;
                }
            }
            if($post['userid'] == $bbuserinfo['userid'] AND $hide_stop == 0){
                $post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset><legend><span class="highlight">'.$vbphrase[sid_hide_post_own].'</span></legend>\\1</fieldset>', $post['message']);
                $hide_stop = 1;
            }
            if ($hide_stop != 1){
                if ($this->registry->options['sid_hide_showadmin'] AND $bbuserinfo[usergroupid]==6){
                    $hide_read = true;
                }elseif ($this->registry->options['sid_hide_showmod'] AND can_moderate($thread['forumid'])){
                    $hide_read = true;
                }elseif (!empty($this->registry->options['sid_hide_showusergroup'])){
                    $hide_groups_see = explode(",",$this->registry->options['sid_hide_showusergroup']);
                    if (in_array($bbuserinfo['usergroupid'], $hide_groups_see)){
                        $hide_read = true;
                    }
                }
                if ($vbulletin->options['sid_hide_showthanked'] AND $hide_read==false){
                    $hide_img_set = $hide_img_set + 1;
                    if($vbulletin->options['post_thanks_forum_first_all'] == 1){
                        $hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$threadinfo[firstpostid]' AND userid='$bbuserinfo[userid]'");
                        if($hide_thanked !=''){
                            $hide_read = true;
                        }
                    } elseif (!empty($vbulletin->options['post_thanks_forum_first'])){
                        $post_thanks_only_first = explode("|",$vbulletin->options['post_thanks_forum_first']);
                        if (in_array($threadinfo['forumid'], $post_thanks_only_first)){
                            $hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$threadinfo[firstpostid]' AND userid='$bbuserinfo[userid]'");
                            if($hide_thanked !=''){
                                $hide_read = true;
                            }
                        }else{
                            $hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$post[postid]' AND userid='$bbuserinfo[userid]'");
                            if($hide_thanked !=''){
                                $hide_read = true;
                            }
                        }
                    } else{
                        $hide_thanked = $db->query_first("SELECT userid FROM ". TABLE_PREFIX ."post_thanks WHERE postid='$post[postid]' AND userid='$bbuserinfo[userid]'");
                        if($hide_thanked !=''){
                            $hide_read = true;
                        }
                    }
                }
                if ($this->registry->options['sid_hide_showposted'] AND $hide_read==false){
                    $hide_img_set = $hide_img_set + 2 ;
                    $hide_replied = $db->query("SELECT COUNT(postid) AS count FROM ". TABLE_PREFIX . "post WHERE userid='$bbuserinfo[userid]' AND visible = 1 AND threadid='$post[threadid]'");
                    $myreplies = 0;
                    if($db->num_rows($hide_replied)){
                        while ($h_post = $db->fetch_array($hide_replied)){
                            $myreplies += $h_post['count'];
                        }
                        $myreplies = vb_number_format($myreplies);
                    }
                    if($myreplies > 0){
                        $hide_read['userid'] = true;
                    }
                }
                if (!$hide_call){
                    $hide_call =$post['postid'];
                } else {
                    $hide_call .=",".$post['postid'];
                }
                if($hide_img_set == 3){
                    $hide_img = $vbphrase[sid_hide_img_pot];
                } elseif ($hide_img_set == 2){
                    $hide_img = $vbphrase[sid_hide_img_post];
                } elseif ($hide_img_set == 1){
                    $hide_img = $vbphrase[sid_hide_img_thank];
                } else {
                    $hide_img = $vbphrase[sid_hide_img_sorry];
                }
                if(!$bbuserinfo[userid]){
                    $hide_read = false;
                }
                if ($hide_read == true){
                    $post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', '<fieldset><legend><span class="highlight">'.$vbphrase[sid_hide_post_show].'</span></legend>\\1</fieldset>', $post['message']);
                } else {
                    eval('$hide_fetch = "' . fetch_template('sid_hide_noaccess') . '";');
                    $post['message'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $hide_fetch, $post['message']);
                }
            }
        }
Reply With Quote
  #4  
Old 07-21-2016, 10:39 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try https://vborg.vbsupport.ru/showthrea...45#post1149445
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05076 seconds
  • Memory Usage 2,196KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete