PDA

View Full Version : Administrative and Maintenance Tools - Zoints Private Thread Comments for Staff


Zoints
09-25-2006, 10:00 PM
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.

http://img3.zoints.com/forums/thread-comments2.png


The admincp options:

http://img3.zoints.com/forums/thread-comments.png


Official support for this modification will take place at http://network.zoints.com in this specific forum (http://network.zoints.com/forumdisplay.php?f=57).

Enjoy and be sure to check out our other modifications :)

CHANGELOG:

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

Zoints
09-25-2006, 11:13 PM
Reserved for FAQ and troubleshooting.

LittleAndroidMa
09-25-2006, 11:37 PM
Wow, you never fail to provide the community with access to awesome, usable mods!

Kuimera
09-26-2006, 02:50 AM
Good work Mr. DC.

Neal-UK
09-26-2006, 05:13 AM
Excellent, may be a good idea to have the date and time shown so people know when it was posted.

EDIT: It has that option, brilliant

Ntfu2
09-26-2006, 06:32 AM
Does it work with 3.6 as well? this looks alot better then the current method we use

Zoints
09-26-2006, 06:50 AM
Does it work with 3.6 as well? this looks alot better then the current method we use

No, I posted it in the 3.6.x area just to be tricky.



I tease, I tease. Yes, it works fine :)

Kuimera
09-26-2006, 07:05 AM
No, I posted it in the 3.6.x area just to be tricky.



I tease, I tease. Yes, it works fine :)

lol !

b4ne
09-26-2006, 08:06 AM
wow great mod thanks

MusicMan
09-26-2006, 08:28 AM
Have used this for a while, it's a great hack that helps keep you and your staff on the same page. Very very helpful for a lot of reasons. :) I'm glad to see Zoints sharing so many great hacks with the org.

*Clicked Install*

kall
09-26-2006, 08:39 AM
Oh ho!

So *thats* where it came from!

Nice one David. :)

A suggestion: I have found that it is nigh-impossible to reference what is said in the Thread proper...as it is with Hidden Posts. Perhaps a method of 'quoting' a specific post inside the Zoints Box would be doable?

Zoints
09-26-2006, 08:57 AM
A suggestion: I have found that it is nigh-impossible to reference what is said in the Thread proper...as it is with Hidden Posts. Perhaps a method of 'quoting' a specific post inside the Zoints Box would be doable?

BB code does work within the box. I assume that's not what you want though? Can you elaborate a little please :)

Benj
09-26-2006, 09:23 AM
has anyone tried this with GARS? technically it should work with it right ?

ronoxQ
09-26-2006, 11:51 PM
Benj- it should work with GARS fine, since that's just a template mod. At least, that's what I think- I haven't used GARS much.

David- god damn, you're making every hack that I always wanted for my forum but never had! You're brilliant- all I gotta say.


BB code does work within the box. I assume that's not what you want though? Can you elaborate a little please

Does that involve quotes? Maybe a button to auto-quote a post in the Mod Comments section would be a useful addition.

Also, perhaps letting users hide the mod comments box would be nice.

iran.gs
09-27-2006, 12:15 AM
lnstalled very handy thanks

kall
09-27-2006, 12:50 AM
BB code does work within the box. I assume that's not what you want though? Can you elaborate a little please :)
Well, with the existing method (using 'Hidden posts' modification), the post appears as normal, but is in Moderated Status.

It makes it easier to see what the person posting the Staff Post is talking about, as it has a heirarchy...like a normal discussion.

Also, quotes can now have linkbacks to the specific post.

With your Modification, the discussion can only reference to the Thread itself through careful matching up of Datestamps..or manually copying and pasting and using Quote tags.

Perhaps a 'Send to Staff Box' button in posts/text link in dropdown?

Zoints
09-27-2006, 07:13 AM
Makes sense Kall. I'll see what we can do :)

yesfans
09-28-2006, 11:50 PM
Anyway the entry box can have a space added below it. It sits right on top my forums, looks silly.

yesfans
09-30-2006, 01:35 AM
Can this be made so that ADMINS/MODS that can see it see a notice that the thread has notes, meaning as STAFF cruises the site and if there is a thread that has notes it can be flagged in some that to get the STAFFERS attn to read it.

Jcee
10-02-2006, 07:35 AM
I'm not getting Moderators to see the Comments?

Only getting Admin to see comments?

Zoints
10-03-2006, 01:36 PM
I'm not getting Moderators to see the Comments?

Only getting Admin to see comments?

There should be a setting in the admincp options that allow mods to see it :)

Jcee
10-03-2006, 01:49 PM
There should be a setting in the admincp options that allow mods to see it :)

Tx.. I got the Moderators to see it.

I would like to have a specific group be able to view these... it is possible?

I don't want the all staff to be moderators, just to be able to view / add to these comments.

Stoebi
10-03-2006, 02:25 PM
Excellent *installed*. Thank you very much. :)

My wish is to edit my comment (inline edit), so i don't need to delete and add my comment again.


Regards, Stoebi

yesfans
10-04-2006, 08:44 PM
How about it making leave a notice icon like a thread that has, say an attch or poll. From the list of threads in a forum have anything using this EDITOR thing have a icone that the mod/admin only can see alerting them that the thread has inline notes.

redlabour
10-06-2006, 12:16 PM
Nominated for Hack o.t. Month ! ;)

Zoints
10-07-2006, 11:47 PM
Thank you for the suggestions for improvements folks. They will all be taken into account as we improve the modification over time.

Nominated for Hack o.t. Month ! ;)

Thanks :)

Nathan2006
10-10-2006, 12:12 AM
Thank you DChapman

cool :)

Install

yesfans
10-17-2006, 07:26 PM
Thank you for the suggestions for improvements folks. They will all be taken into account as we improve the modification over time.



Thanks :)

Any quick mod that can be done NOW to help show the staff when this is being used. AS it stands now you do not know if it is being used unless you happen to go across a thread it is being used in. On a large site, that may not happen. Right now this is on my site but not real user friendly since it gets buried in daily life of my site.
No way to activate a icon or the like that alerts the staff that a forum has a thread that has this mod in use?

TurkSipa
10-17-2006, 07:52 PM
Thanksss install. This is perfect hack...

Zoints
10-19-2006, 09:46 PM
Any quick mod that can be done NOW to help show the staff when this is being used. AS it stands now you do not know if it is being used unless you happen to go across a thread it is being used in. On a large site, that may not happen. Right now this is on my site but not real user friendly since it gets buried in daily life of my site.
No way to activate a icon or the like that alerts the staff that a forum has a thread that has this mod in use?

That type of stuff can be added in later builds. :) The design of this wasn't really one where it was to be used as an alert system, just a means to communicate with other staff within a thread. I can see how what you state would be useful though :)

q8-star
10-24-2006, 02:33 PM
The mod is great, I'm installing it soon. also hoping that you add more features in the upcoming versions.

Maybe adding an indication or icon in FORUMDISPLAY to indicate there is a new comment, with indication of read and unread..

SportsZone
10-24-2006, 08:38 PM
This hack is a great idea, but I think it would be better if this mod used BB code and it was coded in a way which only admin/mods could see. This way, you can add comments to posts, which only the site staff can see, instead of saying something above the first post, which imo, is quite inconvenient. I'm not sure if it's possible to create, but it would be a great hack :D

Just my 2c :)

Illustrious
10-31-2006, 03:59 AM
Can you set it so that it only shows up in select forums? That'd be useful.

Natalie@Club
10-31-2006, 03:43 PM
I have installed this and it installed beautifully, no template hacking, nadda. Excellent plugin, thank you :D

ACIKillJoy
11-06-2006, 12:16 PM
How bout an option so that the actual input box could be user defined as far as its location within the thread. With either both at the top both at the end or the posted comments at the top with the actual editer at the end. (by the end i mean by the quick reply)
some options as to where these appear would be supurb.
Also having a per forum option would be great. I know that my site we will only really need it in 4 or so of the 49 dif forum and subforums and that it would make it easier to manage.
Also having an icon/image show in the thread header just like if there has been a deleted post would be supurb.

Installed

Domenico
11-09-2006, 11:47 AM
How bout an option so that the actual input box could be user defined as far as its location within the thread. With either both at the top both at the end or the posted comments at the top with the actual editer at the end. (by the end i mean by the quick reply)
some options as to where these appear would be supurb.
Also having a per forum option would be great. I know that my site we will only really need it in 4 or so of the 49 dif forum and subforums and that it would make it easier to manage.
Also having an icon/image show in the thread header just like if there has been a deleted post would be supurb.

Installed

I agree!

I don't want it on top but I want it under the thread. I can't find the code to do it myself but that is my fault.

Can you please add this option or can someone lead me the way to do this?

Thanks!

Twilkey
11-21-2006, 04:56 AM
I just installed this. Well is there a way to get the input boxes to the bottom of the page and also I have two input boxes for some reason and when I add a comment it adds it twice. Can you help please.

AzH
11-21-2006, 05:47 PM
also I have two input boxes for some reason and when I add a comment it adds it twice. Can you help please.

the plugin automatically attempts to add the thread comments option. you might have done what i did which is add the $threadcomments to the relevant template when it wasn't necessary. Removing it fixed it.

Zoints
11-23-2006, 06:35 AM
If someone would like to make a small icon for forumdisplay.php that signifies that there is a staff comment in the thread, we'll look into making that request happen this weekend. Our graphic guy is on vacation.

We're also going to look into adding the option to make the box appear at the bottom of the thread.

GSX-Racing
11-30-2006, 02:20 AM
Is there any way we could have a little text above the box saying 'Moderator Notes:" or something?

Revpolar
11-30-2006, 04:46 AM
I was thinking that if you can make something like this then making a whisper hack would be possible.
Meaning members could send a private note to another member within a thread. Like someone could whisper to DChapman after this post that my idea is silly and he should ignore it. And only DChapman could see it.

Shelley_c
11-30-2006, 05:11 AM
If someone would like to make a small icon for forumdisplay.php that signifies that there is a staff comment in the thread, we'll look into making that request happen this weekend. Our graphic guy is on vacation.

We're also going to look into adding the option to make the box appear at the bottom of the thread.

What kind of image were you thinking of? If your still needing an icon let me know what you need and the dimensions and I can knock something up.

Zoints
11-30-2006, 05:40 AM
What kind of image were you thinking of? If your still needing an icon let me know what you need and the dimensions and I can knock something up.

Actually, we've decided we'll just use a default vBulletin image to avoid the trouble of the upload. But thank you for the offer!

OmniBuzz
12-10-2006, 06:09 PM
How do I change the "Add" label in something else ?

<textarea name="threadcomment" cols="80" rows="3" class="bginput"></textarea><button type="submit" class="button">$vbphrase[add]</button>

Thanks.

djbaxter
01-28-2007, 02:42 PM
Anyway the entry box can have a space added below it. It sits right on top my forums, looks silly.

This one is easy. Edit product-zointsthreadcomments-1.2.0.xml as follows:

1. Find

<templates>
<template name="THREADCOMMENT" templatetype="template" date="1142603058" username="Who" version="1.2.0"><![CDATA[<table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
<tr>
<td>
<if condition="$threadinfo[threadcomments] > 0">
<if condition="$show['morethreadcomments']">
<div align="center"><a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]&amp;showall=1">[$vbphrase[threadcomments_more]]</a></div>
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
$commentbits
</table>
</if>
<if condition="THIS_SCRIPT != 'postings'">
<div align="center" style="margin-top: 10px;">
<form name="threadcomment" action="showthread.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadinfo[threadid]" />
<input type="hidden" name="addcomment" value="1" />
<input type="hidden" name="page" value="$page" />
<textarea name="threadcomment" cols="80" rows="3" class="bginput"></textarea><button type="submit" class="button">$vbphrase[add]</button>
</form>
</div> <else />
<br />
</if>
</td>
</tr>
</table>]]></template>

Note the part highlighted in red.

Add

<br />
between "</form>" and "</div>".

Save. Reimport the product using "Overwrite".

This hack is a great idea, but I think it would be better if this mod used BB code and it was coded in a way which only admin/mods could see. This way, you can add comments to posts, which only the site staff can see, instead of saying something above the first post, which imo, is quite inconvenient. I'm not sure if it's possible to create, but it would be a great hack.

Re-read the thread. It already does both of those things.

I have two input boxes for some reason and when I add a comment it adds it twice. Can you help please.

You imported the product and then also did the manual edits. Go back to the readme.txt file and delete those two manual edits.

jerudc
02-10-2007, 12:38 AM
Is the suggestion of Revpolar's "Whisper" possible? I'd love to have something like that on my board.

Is there a way to make a mod so a user can type something in a post so only the other user mentioned (and the moderator and Admins) can read it? Like the following example.

Jenny walks into the room and saunters up to Billy "Hey, do you want to go play cards?"

Billy would see: Jenny walks into the room and saunters up to Billy "Hey do you want to go play cards?"

Everyone else would see: Jenny walks into the room and saunters up to Billy WHISPER TO BILLY

Just wondering if this was even possible.

djbaxter
02-10-2007, 12:57 AM
Just wondering if this was even possible.

I'm just wondering if this is even desirable.... on a forum. Isn't that what IRC and IMs are for?

Spank
02-10-2007, 07:13 AM
Nice hack, will come in useful for e-dramas =D

Just a suggestion: I think it would make it tidier if there was a button for Staff Comments which you could click, it would then take you to another page where you could add and view comments for that particular thread (just like how the user notes works)



Is there any way we could have a little text above the box saying 'Moderator Notes:" or something?

Here's how I did it, very simple even for a n00b like me:

Open product-zointsthreadcomments-1.2.0.xml

Find:

<template name="THREADCOMMENT" templatetype="template" date="1142603058" username="Who" version="1.2.0"><![CDATA[<table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
<tr>

find in line:
<![CDATA[

inline after add:
<b>Staff Comments:<b>

so you have:

<template name="THREADCOMMENT" templatetype="template" date="1142603058" username="Who" version="1.2.0"><![CDATA[<b>Staff Comments:</b><table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
<tr>

Save, reimport product remembering to allow overwrite.

djbaxter
02-10-2007, 01:41 PM
Good idea, Spank.

I made one change for my moderators:

<b>Staff Comments (hidden):<b>

jerudc
02-10-2007, 10:28 PM
I'm just wondering if this is even desirable.... on a forum. Isn't that what IRC and IMs are for?

I run a Play by Post site. It would be VERY desirable. It would lend to more efficient roleplay and keep everything in the storyline.

harlita
03-19-2007, 01:42 AM
im using 3.6.5 and it works fine without the edit to the templates.

in fact when i added the edit to templates as listed in the README, it duplicated the comment box so there was two on every page.

in case anyone else runs into that problem.

meissenation
03-21-2007, 12:11 AM
Installed and works like a charm! No template edits needed here!

ahmet252
03-28-2007, 05:19 PM
thanks it is perfect hack

harlita
04-08-2007, 05:09 AM
I'm just wondering if this is even desirable.... on a forum. Isn't that what IRC and IMs are for?

The problem with IM's and IRC is that if you have forums that are being used around the clock and/or staff that are in multiple timezones, you can't all be online at the same times.


Therefore, having specific discussion attached directly to the specific thread it is about is FAR easier than having an all too cluttered staff lounge. Allowing most if not all of the staff their chance to have their say on what is occuring. It's all about teamwork in the end. This hack plays perfectly into that concept.


We use this hack all the time.


Awesome work =)

djbaxter
04-08-2007, 12:11 PM
The problem with IM's and IRC is that if you have forums that are being used around the clock and/or staff that are in multiple timezones, you can't all be online at the same times.

Therefore, having specific discussion attached directly to the specific thread it is about is FAR easier than having an all too cluttered staff lounge. Allowing most if not all of the staff their chance to have their say on what is occuring. It's all about teamwork in the end. This hack plays perfectly into that concept.

We use this hack all the time.

Awesome work =)

My comment was not about the add-on but about the suggestion in the post at https://vborg.vbsupport.ru/showpost.php?p=1178821&postcount=46

I also have this add-on installed and in use.

Simasher
04-08-2007, 12:13 PM
thanks..

713JunctionP
06-05-2007, 04:44 AM
awesome hack!

Alibass
06-05-2007, 05:01 PM
Nice mod, thanks! *Installed*

SoftWareRevue
10-30-2007, 12:59 PM
If someone would like to make a small icon for forumdisplay.php that signifies that there is a staff comment in the thread, we'll look into making that request happen this weekend. Our graphic guy is on vacation.

We're also going to look into adding the option to make the box appear at the bottom of the thread.Any progress on that? (Yes. I checked the zoints forum thread. :) )

Another suggestion . . . . alternating background colors for notes so they're more easily read?

Thanks for this hack!

mystic10
01-08-2008, 08:33 PM
maybe someone can help me...i want it so i can only have superadminns read comments...and make separte one for all theree..superadmin, admin and moderators or anyone in staff

i hope it made sense

redlabour
01-29-2008, 05:04 PM
Love this but will it work with 3.7?

t55
03-09-2008, 08:49 PM
Works great!

TCattitude
04-24-2008, 03:31 AM
"security token" need to be covered to work with vbulletin's the lastest versions

djbaxter
04-24-2008, 01:38 PM
Yes. Yields this error with 3.6.10:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Pvtiste
04-24-2008, 02:41 PM
same errors...

Pvtiste
04-25-2008, 04:28 PM
any help please ?

djbaxter
04-25-2008, 04:33 PM
I posted this at the Zoints site. They are looking into it but they have similar issues with other Zoints plug-ins and staff comments isn't the top priority at present.

Pvtiste
04-25-2008, 05:45 PM
I posted this at the Zoints site. They are looking into it but they have similar issues with other Zoints plug-ins and staff comments isn't the top priority at present.


Ok thanks DJbaxter :)

redlabour
04-26-2008, 09:11 AM
Same Problem to me. All Hacks with Forms are involved.

Silent Knight
04-27-2008, 03:22 AM
In the template "THREAD COMMENT"

find:

<input type="hidden" name="s" value="$session[sessionhash]" />

and Add AFTER,

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

worked for me

djbaxter
04-27-2008, 10:28 AM
In the template "THREAD COMMENT"

find:

<input type="hidden" name="s" value="$session[sessionhash]" />

and Add AFTER,

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

worked for me

Excellent work! This also fixed the problem for me. :)

Pvtiste
04-28-2008, 12:09 PM
Thank you Slient Knight !

Zoints
05-01-2008, 04:27 AM
Version 1.2.1 has been uploaded which addresses the CSRF protocol bug.

Eq4bits
06-20-2008, 05:53 PM
(this is AFTER downloading the version 1.2.1 which addressed the CSFR protocol bug)
I had this installed for ages from the original version and even with vb upgrades it continued to work fine until I upgraded to 3.6.10 (I have issues with the 3.7 thread prefixes, prefer the hack over the built in one and is why I haven't upgraded to 3.7) Anyway.... hack stopped working with 3.6.10 so I finally got around to updating the thing this morning. I uploaded the xml file as directed; imported the product and had 'overwrite' set at yes. the comment area is showing like it's supposed to but now it doesn't work because of a security token:
Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator (http://www.dawnsistersweyr.net/forums/sendmessage.php) and describe the action you performed before you received this error.so definiately something in the template?

Auron
06-22-2008, 09:48 PM
In the template "THREAD COMMENT"

find:

<input type="hidden" name="s" value="$session[sessionhash]" />

and Add AFTER,

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

worked for me

yes, use this code, its also worked for me :)

trophygrl
06-25-2008, 02:31 PM
it is working so far on 3.7.2

Madbatty
08-10-2008, 01:19 PM
PLEASE HELP !!!

After the latest upgrade to the 3.7.2 Version the Hack did not work anymore.

I only recive the message the a "Security Token" is missed ???

Can someone please explain me what is wrong ?

Thanks :)

djbaxter
08-10-2008, 02:45 PM
After the latest upgrade to the 3.7.2 Version the Hack did not work anymore.

I only recive the message the a "Security Token" is missed ???

Can someone please explain me what is wrong ?

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

In the template "THREAD COMMENT"

find:

<input type="hidden" name="s" value="$session[sessionhash]" />

and Add AFTER,

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

Madbatty
08-10-2008, 03:40 PM
Thanks buddy :) now it works again !

cristinag
08-22-2008, 01:54 AM
Thanks for the fix!

vithorius
10-13-2008, 07:42 AM
Hi! I've got some ideas to improve this GREAT hack! https://vborg.vbsupport.ru/external/2011/07/3.gif


https://vborg.vbsupport.ru/external/2010/11/2.gif Would it be possible to add some way of notification when there is a new reply on the Private Comments? Sometimes we just don't read each other messages because the replys are on top of the thread, and the new thread's messages button will not show what's on top of the thread... (I don't know if you can understand my idea...)

So, it ouwld be perfect to include some kind of notification, so that the Admins and Moderators can see that the other guys from the team has writen something...


https://vborg.vbsupport.ru/external/2010/11/2.gif Also, would it be possible to correctly manage the private messages that were already written on a given thread whenever you merge two threads? (what happens know is that every staff's private message that was already posted will be deleted when you merge two - or more - threads...)


Thank you so VERY MUCH for all your work on this EXCELLENT Hack! :up: :up:

momo2
11-24-2008, 04:20 PM
thanks for update....... works on 3.7.4 now

Audentio
12-02-2008, 11:33 PM
Works on 3.8.x.

However, I didnt like the height. Despite editing it in the acp, I added a dropdown fuction so staff who don't care to make comments or at least not at that time (in other words, they can call on it), I made this modification:

THREADCOMMENT:<table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
<tbody>
<tr>
<td class="thead" colspan="5">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('threadcomment')"><img id="collapseimg_threadcomment" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_threadcomment].gif" alt="" border="0" /></a>
Staff Comments
</td>
</tr>
</tbody>
<tbody id="collapseobj_threadcomment" style="$vbcollapse[collapseobj_threadcomment]">
<tr>
<td>
<if condition="$threadinfo[threadcomments] > 0">
<if condition="$show['morethreadcomments']">
<div align="center"><a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]&amp;showall=1">[$vbphrase[threadcomments_more]]</a></div>
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
$commentbits
</table>
</if>
<if condition="THIS_SCRIPT != 'postings'">
<div align="center" style="margin-top: 10px;">
<form name="threadcomment" action="showthread.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadinfo[threadid]" />
<input type="hidden" name="addcomment" value="1" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="page" value="$page" />
<input name="threadcomment" size="80" class="bginput"></textarea><button type="submit" class="button">$vbphrase[add]</button>
</form>
</div>
<else />
<br />
</if>
</td>
</tr>
</tbody>
</table>threadcommentbit:<tr>
<if condition="$vbulletin->options['threadcomments_time']">
<td class="alt1">$comment[username]</td>
<td class="alt2" width="15%">$comment[date]</td>
<else />
<td class="alt2">$comment[username]</td>
</if>
<td class="alt1" width="100%" <if condition="!$show['threadcommentdelete']">colspan="2"</if>>$comment[comment]</td>
<if condition="$show['threadcommentdelete']">
<td class="alt2"><a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]&deletecomment=1&commentid=$comment[threadcommentid]">X</td>
</if>
</tr>

threadcomment bit just took away the valign="top" as thats not necessary, it looks better centered, but if you use this I dont expect you to need to update that if you don't want to.

Toggling the menu hides the whole hack until you want to use it.

metalguy639
04-07-2009, 06:12 AM
https://vborg.vbsupport.ru/showthread.php?t=127574

Thanks what I needed :D

bigcurt
04-14-2009, 02:01 PM
Works on 3.8.x.

However, I didnt like the height. Despite editing it in the acp, I added a dropdown fuction so staff who don't care to make comments or at least not at that time (in other words, they can call on it), I made this modification:

THREADCOMMENT:<table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
<tbody>
<tr>
<td class="thead" colspan="5">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('threadcomment')"><img id="collapseimg_threadcomment" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_threadcomment].gif" alt="" border="0" /></a>
Staff Comments
</td>
</tr>
</tbody>
<tbody id="collapseobj_threadcomment" style="$vbcollapse[collapseobj_threadcomment]">
<tr>
<td>
<if condition="$threadinfo[threadcomments] > 0">
<if condition="$show['morethreadcomments']">
<div align="center"><a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]&amp;showall=1">[$vbphrase[threadcomments_more]]</a></div>
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
$commentbits
</table>
</if>
<if condition="THIS_SCRIPT != 'postings'">
<div align="center" style="margin-top: 10px;">
<form name="threadcomment" action="showthread.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadinfo[threadid]" />
<input type="hidden" name="addcomment" value="1" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="page" value="$page" />
<input name="threadcomment" size="80" class="bginput"></textarea><button type="submit" class="button">$vbphrase[add]</button>
</form>
</div>
<else />
<br />
</if>
</td>
</tr>
</tbody>
</table>threadcommentbit:<tr>
<if condition="$vbulletin->options['threadcomments_time']">
<td class="alt1">$comment[username]</td>
<td class="alt2" width="15%">$comment[date]</td>
<else />
<td class="alt2">$comment[username]</td>
</if>
<td class="alt1" width="100%" <if condition="!$show['threadcommentdelete']">colspan="2"</if>>$comment[comment]</td>
<if condition="$show['threadcommentdelete']">
<td class="alt2"><a href="showthread.php?$session[sessionurl]t=$threadinfo[threadid]&deletecomment=1&commentid=$comment[threadcommentid]">X</td>
</if>
</tr>threadcomment bit just took away the valign="top" as thats not necessary, it looks better centered, but if you use this I dont expect you to need to update that if you don't want to.

Toggling the menu hides the whole hack until you want to use it.

That is kick ass! Thanks so much.

Excalibur82
07-09-2009, 07:12 AM
Hi! I've got some ideas to improve this GREAT hack! https://vborg.vbsupport.ru/external/2011/07/3.gif


https://vborg.vbsupport.ru/external/2010/11/2.gif Would it be possible to add some way of notification when there is a new reply on the Private Comments? Sometimes we just don't read each other messages because the replys are on top of the thread, and the new thread's messages button will not show what's on top of the thread... (I don't know if you can understand my idea...)

So, it ouwld be perfect to include some kind of notification, so that the Admins and Moderators can see that the other guys from the team has writen something...


https://vborg.vbsupport.ru/external/2010/11/2.gif Also, would it be possible to correctly manage the private messages that were already written on a given thread whenever you merge two threads? (what happens know is that every staff's private message that was already posted will be deleted when you merge two - or more - threads...)


Thank you so VERY MUCH for all your work on this EXCELLENT Hack! :up: :up:

On the first one I have managed to edit this to work with PM notification with option to opt out of using PM notification. The second option I have not looked into as of yet but will do that as soon as I have a chance.

New Joe
08-12-2009, 04:02 AM
After installing it adds a second nav bar and forum description at the bottom of the thread just above the quick reply box, anyone got any ideas why?

Supramania
02-08-2010, 03:04 PM
Any chance of porting this to 4.0? My staff relied heavily on this prior to the upgrade and we really miss it.

btotw
02-08-2010, 06:22 PM
Any chance of porting this to 4.0? My staff relied heavily on this prior to the upgrade and we really miss it.

Fa real. Will this be ported to 4.0?

btotw
03-06-2010, 12:05 PM
This will never get updated to 4.0 will it...?

Supramania
03-07-2010, 04:45 AM
Developer Last Online: Apr 2009

I think not... :(

tafSteve
01-11-2011, 12:29 AM
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.

OcR Envy
01-06-2012, 05:06 PM
Anyone inteterested:

$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', $vbulletin, ERRTYPE_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($vbulletin, fetch_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', $vbulletin, ERRTYPE_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

johon
02-07-2012, 11:22 AM
My staff is missing this in VB 4.1.x too :-( - would be great to get a version for VB 4.x

Wakey
02-07-2012, 12:35 PM
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

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

SoftWareRevue
04-26-2015, 09:02 AM
...Any chance you could share your template changes
Please! Someone port this to vB4. :(

Elixar
04-11-2016, 07:18 PM
Please! Someone port this to vB4. :(

This.

Elixar
06-22-2016, 03:12 AM
Please! Someone port this to vB4. :(

^^^