PDA

View Full Version : Add-On Releases - Comments Tags


mad@Max
03-23-2009, 10:00 PM
The idea of hack belongs to Selrion.

This hack able to you add comment to users messages (like in IPB).

Features:

choosing groups to use admins tag and moders tag
prevent editing (edit button will be removed, if message contain a tag comment)
hierarchical protection (cut [mod] and [admin] for users, and [admin] for moderators)


Install:

Upload all files from folder "upload" in root directory of your forum.

Before installing the product, edit the following file:

Open file newreply.php, and search:

if ($vbulletin->GPC['ajax'])
{
// posting via ajax so we need to handle those entries
$newpost['message'] = convert_urlencoded_unicode($newpost['message']);
}

Add bottom:

($hook = vBulletinHook::fetch_hook('commtag_illegaluse')) ? eval($hook) : false;

Next import product.

To insert a comment button in the quick edit or quick post (if the button has not yet appeared there), insert the variable $ commbtn in the desired location on the bbcode panel.

Jasem
03-25-2009, 12:49 AM
Good hack, thank you!

Installed.

ahmed-samara
03-27-2009, 02:22 PM
i have problem :)

i have uploaded the images also the edit in newreply.php

mad@Max
03-27-2009, 03:38 PM
If you about your site /softs/images/editor/comm.gif, you didn't upload.

Danisty
03-27-2009, 10:02 PM
Is it impossible for members to use this? I have a special bbcode right now for moderator messages but technically anyone could use it if they type in the bbcode.

Also what does this mean?

prevent editing (edit button will be removed, if message contain a tag comment)
If a moderator leaves a mod comment, can a moderator or admin edit the post to change it if needed?

mad@Max
03-27-2009, 10:21 PM
Is it impossible for members to use this? I have a special bbcode right now for moderator messages but technically anyone could use it if they type in the bbcode.
Yes, members can use this bbcodes, just in setting type their gropid.
If a moderator leaves a mod comment, can a moderator or admin edit the post to change it if needed?
Surely:)

Danisty
03-27-2009, 10:54 PM
Cool then I think this will work for what I need. I'm not installing anything until we change hosts, but I have this tagged. Thanks.

Alex_Volovenko
03-31-2009, 08:08 PM
...ты бы им скрины на буржуйском выложил.. а то у них мозг закипит...

mad@Max
03-31-2009, 11:34 PM
Заново "скринить" не охота:)

RobbieZ
04-13-2009, 09:56 AM
Thanx Max

Just a quick note. Your download zip does not contain the XML its in txt format.

mad@Max
04-13-2009, 10:29 AM
You right - reuploaded.

Gersfan
04-13-2009, 10:32 AM
I can't find PHP Code in any of my templates.

mad@Max
04-13-2009, 11:09 AM
newreply.php placed on your ftp, in root folder of forum.

Gersfan
04-13-2009, 11:20 AM
Oh Thanks.

Another thing "Add bottom:" Do you mean add the line before or add the line after the code?

Greenwoodi
04-13-2009, 11:23 AM
mad@max

А Рашан эдишон где можно взять? :) на саппорте нет :(

RobbieZ
04-13-2009, 11:38 AM
Hey max,

I have changed the misc image files around and the background and font colors in the xml so that admin is in red and mod is in blue.

Hope you dont mind.

I have attached the new zip to my post.

*please move to your main post if necessary*

RobbieZ
04-13-2009, 11:39 AM
Oh Thanks.

Another thing "Add bottom:" Do you mean add the line before or add the line after the code?

after the code - line 309 if thats any help.

Gersfan
04-13-2009, 11:43 AM
Thanks RobbieZ, Working great and I've also used your edit change.

mad@Max
04-13-2009, 12:15 PM
I don't mind, but i think is better to give the user the choice of what color he used. For that you need to edit the template comm_css.

Gersfan
04-14-2009, 11:29 AM
I can see my image and use it no bother but my super mods can't see the image?

mad@Max
04-14-2009, 01:20 PM
What image are you talking about?

Gersfan
04-14-2009, 03:58 PM
I'm talking about the Editor Image (comm.gif) - It appears if Admin but doesn't appear for Super Mod to press.

Also I' have a bug, When I click the editor image the bbcode is displayed Blah
but when I post it turns into Blah and it doens't work, If I click edit and save it turns back into Blah and works fine.

mad@Max
04-14-2009, 04:10 PM
Maybe you and supmod use different style.
I dont understand, what you mean under ''? Make a screenshot or something.

Gersfan
04-14-2009, 04:18 PM
Maybe you and supmod use different style.
I dont understand, what you mean under ''? Make a screenshot or something.

I only have one style and thats the orgainal vbulletin style.


Also I' have a bug, When I click the editor image the bbcode is displayed Blah
but when I post it turns into Blah and it doens't work, If I click edit and save it turns back into Blah and works fine.

Post Edited!

Gersfan
04-16-2009, 06:30 PM
I've fixed my issues, Thanks.

TAIFUN_T
04-25-2009, 11:48 PM
Лежит этот хак на саппорте.. в разделе Sellrion .. в гурушнике

HolyKiller
05-17-2009, 08:39 PM
A little Question before installing this. Normal users see or don't see the mod/admin comments?

If NO, this is exactly what i need - team comments what normal (not allowed) usergroups can't see.

If YES, can you tell me, how to modify this hack so only ADMINs (or allowed groups) can see ADMIN comments and only MODs (and admins too ofcourse) can see MOD comments?

Thanks for reply.

Sofia
05-17-2009, 09:07 PM
Good. Thank you for this hack.

mad@Max
05-18-2009, 12:09 AM
HolyKiller, Yes, you need rewrite plugin Comments Tags: prevent edit.

HolyKiller
05-18-2009, 11:34 AM
Thanks ... but one more thing ...

I have problem with importing product XML file, because the file contains some non-standard chars.

I'm talking about this:

276 --- <phrasetype name="?Ń????ŰĹ" fieldname="global">
280 --- <phrasetype name="?ń????űĺ ?ŕńňđ??ęč" fieldname="vbsettings">

Maybe there is another rows with this. Anyway, can you tell with what words(strings) can i rewrite this?

Thanks for reply

mad@Max
05-18-2009, 06:22 PM
This text is doesn't matter.

HolyKiller
05-20-2009, 03:19 PM
Thanks, installed and works fine, but another thing. In situation like a:

MOD edit post and use comment // comment is fine
ADMIN edit same post and use comment // both comments are fine
MOD edit same post and use comment // ADMIN comment is ruined and the admin text is show like a normal text

For example i have this:
normal text from user
mod comment
admin comment

then mod use MOD comment and the result is:

normal text from user
[mod comment]
admin comment //this is NOT in the blue border, it's normall text
[another mod comment]


Any way to fix this?

Thanks

mad@Max
05-20-2009, 04:07 PM
You can disable this cutting via hack options.

HolyKiller
05-24-2009, 09:00 AM
2 mad@max: Ah, my fault, sorry for that :)

EDIT: Hmmm, nonauthorized users CAN use comments via QUOTE and can rewrite the text.


Original is:
blabla
bleble

and user can use:

modifed admin comment
modifed mod comment



Blocking that will be good.

Anyway, this hack is nice -> Installed :)

HolyKiller
01-12-2010, 05:04 PM
No response after 8 months? Hmm, so i think, i can't expect updated version for vB 4, right?

Anyone know another mod like this?

THX

RobbieZ
08-21-2010, 12:35 PM
Has anyone actually seen if this works on vb4 ?