PDA

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


Zoints
26 Sep 2006, 01:12
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
26 Sep 2006, 01:13
Reserved for FAQ and troubleshooting.

LittleAndroidMa
26 Sep 2006, 01:37
Wow, you never fail to provide the community with access to awesome, usable mods!

Kuimera
26 Sep 2006, 04:50
Good work Mr. DC.

Neal-UK
26 Sep 2006, 07:13
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
26 Sep 2006, 08:32
Does it work with 3.6 as well? this looks alot better then the current method we use

Zoints
26 Sep 2006, 08:50
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
26 Sep 2006, 09:05
No, I posted it in the 3.6.x area just to be tricky.



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

lol !

b4ne
26 Sep 2006, 10:06
wow great mod thanks

MusicMan
26 Sep 2006, 10:28
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
26 Sep 2006, 10:39
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
26 Sep 2006, 10:57
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
26 Sep 2006, 11:23
has anyone tried this with GARS? technically it should work with it right ?

ronoxQ
27 Sep 2006, 01:51
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
27 Sep 2006, 02:15
lnstalled very handy thanks

kall
27 Sep 2006, 02:50
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
27 Sep 2006, 09:13
Makes sense Kall. I'll see what we can do :)

yesfans
29 Sep 2006, 01:50
Anyway the entry box can have a space added below it. It sits right on top my forums, looks silly.

yesfans
30 Sep 2006, 03:35
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
02 Oct 2006, 09:35
I'm not getting Moderators to see the Comments?

Only getting Admin to see comments?

Zoints
03 Oct 2006, 15:36
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
03 Oct 2006, 15:49
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
03 Oct 2006, 16:25
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
04 Oct 2006, 22:44
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
06 Oct 2006, 14:16
Nominated for Hack o.t. Month ! ;)

Zoints
08 Oct 2006, 01:47
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 Oct 2006, 02:12
Thank you DChapman

cool :)

Install

yesfans
17 Oct 2006, 21:26
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
17 Oct 2006, 21:52
Thanksss install. This is perfect hack...

Zoints
19 Oct 2006, 23:46
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
24 Oct 2006, 16:33
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
24 Oct 2006, 22:38
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
31 Oct 2006, 05:59
Can you set it so that it only shows up in select forums? That'd be useful.

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

ACIKillJoy
06 Nov 2006, 14:16
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
09 Nov 2006, 13:47
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
21 Nov 2006, 06:56
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
21 Nov 2006, 19:47
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
23 Nov 2006, 08:35
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
30 Nov 2006, 04:20
Is there any way we could have a little text above the box saying 'Moderator Notes:" or something?

Revpolar
30 Nov 2006, 06:46
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
30 Nov 2006, 07:11
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
30 Nov 2006, 07:40
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
10 Dec 2006, 20:09
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
28 Jan 2007, 16:42
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
10 Feb 2007, 02:38
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
10 Feb 2007, 02:57
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
10 Feb 2007, 09:13
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
10 Feb 2007, 15:41
Good idea, Spank.

I made one change for my moderators:

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

jerudc
11 Feb 2007, 00:28
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
19 Mar 2007, 03:42
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
21 Mar 2007, 02:11
Installed and works like a charm! No template edits needed here!

ahmet252
28 Mar 2007, 19:19
thanks it is perfect hack

harlita
08 Apr 2007, 07:09
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
08 Apr 2007, 14:11
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 http://www.vbulletin.org/forum/showpost.php?p=1178821&postcount=46

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

Simasher
08 Apr 2007, 14:13
thanks..

713JunctionP
05 Jun 2007, 06:44
awesome hack!

Alibass
05 Jun 2007, 19:01
Nice mod, thanks! *Installed*

SoftWareRevue
30 Oct 2007, 14:59
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
08 Jan 2008, 22:33
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
29 Jan 2008, 19:04
Love this but will it work with 3.7?

t55
09 Mar 2008, 22:49
Works great!

TCattitude
24 Apr 2008, 05:31
"security token" need to be covered to work with vbulletin's the lastest versions

djbaxter
24 Apr 2008, 15:38
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
24 Apr 2008, 16:41
same errors...

Pvtiste
25 Apr 2008, 18:28
any help please ?

djbaxter
25 Apr 2008, 18:33
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
25 Apr 2008, 19:45
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
26 Apr 2008, 11:11
Same Problem to me. All Hacks with Forms are involved.

Silent Knight
27 Apr 2008, 05:22
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
27 Apr 2008, 12:28
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
28 Apr 2008, 14:09
Thank you Slient Knight !

Zoints
01 May 2008, 06:27
Version 1.2.1 has been uploaded which addresses the CSRF protocol bug.

Eq4bits
20 Jun 2008, 19:53
(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
22 Jun 2008, 23:48
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
25 Jun 2008, 16:31
it is working so far on 3.7.2

Madbatty
10 Aug 2008, 15:19
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
10 Aug 2008, 16:45
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 ?

http://www.vbulletin.org/forum/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
10 Aug 2008, 17:40
Thanks buddy :) now it works again !

cristinag
22 Aug 2008, 03:54
Thanks for the fix!

vithorius
13 Oct 2008, 09:42
Hi! I've got some ideas to improve this GREAT hack! https://www.vbulletin.org/forum/external/2011/07/3.gif


https://www.vbulletin.org/forum/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://www.vbulletin.org/forum/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
24 Nov 2008, 18:20
thanks for update....... works on 3.7.4 now

Audentio
03 Dec 2008, 01:33
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
07 Apr 2009, 08:12
http://www.vbulletin.org/forum/showthread.php?t=127574

Thanks what I needed :D

bigcurt
14 Apr 2009, 16:01
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
09 Jul 2009, 09:12
Hi! I've got some ideas to improve this GREAT hack! https://www.vbulletin.org/forum/external/2011/07/3.gif


https://www.vbulletin.org/forum/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://www.vbulletin.org/forum/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
12 Aug 2009, 06:02
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
08 Feb 2010, 17:04
Any chance of porting this to 4.0? My staff relied heavily on this prior to the upgrade and we really miss it.

btotw
08 Feb 2010, 20:22
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
06 Mar 2010, 14:05
This will never get updated to 4.0 will it...?

Supramania
07 Mar 2010, 06:45
Developer Last Online: Apr 2009

I think not... :(

tafSteve
11 Jan 2011, 02:29
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
06 Jan 2012, 18:06
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
07 Feb 2012, 12:22
My staff is missing this in VB 4.1.x too :-( - would be great to get a version for VB 4.x

Wakey
07 Feb 2012, 13:35
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
26 Apr 2015, 12:02
...Any chance you could share your template changes
Please! Someone port this to vB4. :(

Elixar
11 Apr 2016, 22:18
Please! Someone port this to vB4. :(

This.

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

^^^