Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Zoints Private Thread Comments for Staff Details »»
Zoints Private Thread Comments for Staff
Version: 1.00, by Zoints Zoints is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.1 Rating:
Released: 09-25-2006 Last Update: 04-30-2008 Installs: 126
 
No support by the author.

This modification is a fantastic means for staff members to efficiently communicate within a thread without normal members being able to see what is said. It has been tested extensively by quite a few different forums.

This box appears in showthread.php for staff members. Only staff can see it.




The admincp options:




Official support for this modification will take place at http://network.zoints.com in this specific forum.

Enjoy and be sure to check out our other modifications

CHANGELOG:

2008/05/01 - 1.2.1
- Compatible with vB's CSRF protocol

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 03-07-2010, 04:45 AM
Supramania's Avatar
Supramania Supramania is offline
 
Join Date: Mar 2006
Location: Woodstock, GA
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Developer Last Online: Apr 2009

I think not...
Reply With Quote
  #93  
Old 01-11-2011, 12:29 AM
tafSteve tafSteve is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a wonderful hack! Since the big VB4 upgrade, it seems this is one of the more gravely missed addons from my staff. It doesn't look like the original developer will be back anytime soon, so I have tried to edit the code and templates to work with VB4... to no avail. I am willing to pay someone to convert this hack to VB4!

If anyone knows how to convert this please PM me with a quote.

Thanks.
Reply With Quote
  #94  
Old 01-06-2012, 05:06 PM
OcR Envy's Avatar
OcR Envy OcR Envy is offline
 
Join Date: May 2008
Location: Boston
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone inteterested:

PHP Code:
$show['threadcomments'] = false;
if (
$vbulletin->options['threadcomments'])
{
    if (
$vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
    {
        
$show['threadcomments'] = true;
    }
    
    if (
$vbulletin->options['threadcomment_moderator'] AND can_moderate($threadinfo['forumid']))
    {
        
$show['threadcomments'] = true;
    }
    
    
$vbulletin->input->clean_array_gpc('r', array(
        
'page'            => TYPE_UINT,
        
'showall'        => TYPE_BOOL,
        
'deletecomment' => TYPE_BOOL,
        
'commentid'     => TYPE_UINT
    
));
    
    if (
$vbulletin->GPC['deletecomment'])
    {
        
$threadcomment $db->query_first("SELECT * FROM " TABLE_PREFIX "threadcomment WHERE threadcommentid = " $vbulletin->GPC['commentid']);
        
        if (
$threadcomment AND (
            
$threadcomment['userid'] == $vbulletin->userinfo['userid'] OR 
            
$permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']
        ))
        {
            
$db->query_write("DELETE FROM " TABLE_PREFIX "threadcomment WHERE threadcommentid = $threadcomment[threadcommentid]");
            
$threadman =& datamanager_init('Thread'$vbulletinERRTYPE_ARRAY'threadpost');
            
$threadman->set_existing($threadinfo);
            
$threadman->set('threadcomments'$threadinfo['threadcomments'] - 1);
            
$threadman->save();
            eval(
exec_header_redirect("showthread.php?$session[sessionurl]t=$threadinfo[threadid]iif($vbulletin->GPC['page'],"page=" $vbulletin->GPC['page'])));
        }
        else
        {
            eval(
print_no_permission());
        }
    }
    
    
    if (
$show['threadcomments'])
    {
        if (
$threadinfo['threadcomments'])
        {
            
$limit '';
            
            if (!
$vbulletin->GPC['showall'] AND $threadinfo['threadcomments'] > $vbulletin->options['threadcomments_maxcomments'])
            {
                
$limit 'LIMIT ' . ($threadinfo['threadcomments'] - $vbulletin->options['threadcomments_maxcomments']) . ',' $vbulletin->options['threadcomments_maxcomments'];
                
$show['morethreadcomments'] = true;
            }
            
            
$commentbits '';
            
$allcomments $db->query_read("
                SELECT * FROM " 
TABLE_PREFIX "threadcomment
                WHERE threadid = 
$threadinfo[threadid]
                ORDER BY dateline ASC
                
$limit
            "
);
            
            while (
$comment $db->fetch_array($allcomments))
            {
                
$show['threadcommentdelete'] = $permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'] ? true false;
                if (
$comment['userid'] == $vbulletin->userinfo['userid'])
                {
                    
$show['threadcommentdelete'] = true;
                }
                
$comment['date'] = vbdate($vbulletin->options['dateformat'], $comment['dateline'], true) . ' ' vbdate($vbulletin->options['timeformat'], $comment['dateline']);
                
$templater vB_Template::create('threadcommentbit');
                
$templater->register('comment'$comment);
                
$templater->register('threadinfo'$threadinfo);
                
$commentbits $templater->render();    
            }
        }
        
        
$page $vbulletin->GPC['page'];
        
$templater vB_Template::create('THREADCOMMENT');
        
$templater->register('commentbits'$commentbits);
        
$templater->register('page'$page);
        
$templater->register('threadinfo'$threadinfo);
        
$threadcomments $templater->render();        
        
$template_hook[showthread_above_posts] .= $threadcomments
    }
    
    
$vbulletin->input->clean_array_gpc('p', array(
        
'addcomment' => TYPE_BOOL,
        
'threadcomment' => TYPE_STR_NOHTML
    
));
    
    if (
$vbulletin->GPC['addcomment'])
    {
        require_once(
DIR '/includes/class_bbcode.php');
        
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
        
$vbulletin->GPC['threadcomment'] = $bbcode_parser->parse($vbulletin->GPC['threadcomment'], $threadinfo['forumid']);
        
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "threadcomment
                (threadid, userid, username, dateline, comment)
            VALUES (
                
$threadinfo[threadid],
                " 
$vbulletin->userinfo['userid'] . ",
                '" 
$db->escape_string(htmlspecialchars_uni($vbulletin->userinfo['username'])) . "',
                " 
TIMENOW ",
                '" 
$db->escape_string($vbulletin->GPC['threadcomment']) . "'
        )"
);
        
        
$threadman =& datamanager_init('Thread'$vbulletinERRTYPE_ARRAY'threadpost');
        
$threadman->set_existing($threadinfo);
        
$threadman->set('threadcomments'$threadinfo['threadcomments'] + 1);
        
$threadman->save();
        
        eval(
exec_header_redirect("showthread.php?$session[sessionurl]t=$threadinfo[threadid]iif(intval($_REQUEST['page']),"page=" intval($_REQUEST['page']))));
    }

Updating the templates shouldn't be too hard. Shame Zoints didn't mark this as reusable else I'd release it again for 4.x
Reply With Quote
  #95  
Old 02-07-2012, 11:22 AM
johon johon is offline
 
Join Date: Oct 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My staff is missing this in VB 4.1.x too :-( - would be great to get a version for VB 4.x
Reply With Quote
  #96  
Old 02-07-2012, 12:35 PM
Wakey Wakey is offline
 
Join Date: Dec 2008
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OcR Envy View Post
Anyone inteterested:


Updating the templates shouldn't be too hard. Shame Zoints didn't mark this as reusable else I'd release it again for 4.x
Thanks for the code but I'm having real issues with the templates. It gives a security token error, tried sorting like is mentioned in this thread but that was for vb3 so didnt work. So I tried the way of doing it via vb4 and the template change just gives the following errors

Quote:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3557

vBulletin Message
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Any chance you could share your template changes
Reply With Quote
  #97  
Old 04-26-2015, 09:02 AM
SoftWareRevue's Avatar
SoftWareRevue SoftWareRevue is offline
 
Join Date: Nov 2001
Location: Kalamazoo
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wakey View Post
...Any chance you could share your template changes
Please! Someone port this to vB4.
Reply With Quote
  #98  
Old 04-11-2016, 07:18 PM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SoftWareRevue View Post
Please! Someone port this to vB4.
This.
Reply With Quote
  #99  
Old 06-22-2016, 03:12 AM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SoftWareRevue View Post
Please! Someone port this to vB4.
^^^
Reply With Quote
Reply

Thread Tools

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 09:03 AM.


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.04292 seconds
  • Memory Usage 2,353KB
  • Queries Executed 25 (?)
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)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete