vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Comments Tags (https://vborg.vbsupport.ru/showthread.php?t=209341)

mad@Max 03-23-2009 10:00 PM

Comments Tags
 
1 Attachment(s)
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:

PHP Code:

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

Add bottom:

PHP Code:

    ($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

1 Attachment(s)
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?

Quote:

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

Quote:

Originally Posted by Danisty (Post 1778596)
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.
Quote:

Originally Posted by Danisty (Post 1778596)
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

1 Attachment(s)
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

Quote:

Originally Posted by Gersfan (Post 1790131)
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 [ADMIN]Blah[/ADMIN]
but when I post it turns into [ADMIN]Blah[/admin] and it doens't work, If I click edit and save it turns back into [ADMIN]Blah[/ADMIN] 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

Quote:

Originally Posted by mad@Max (Post 1791114)
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.

Quote:

Originally Posted by Gersfan (Post 1791104)
Also I' have a bug, When I click the editor image the bbcode is displayed [ADMIN]Blah[/ADMIN]
but when I post it turns into [ADMIN]Blah[/admin] and it doens't work, If I click edit and save it turns back into [ADMIN]Blah[/ADMIN] 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:

Code:

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:
Code:

normal text from user
[MOD]mod comment[/MOD]
[ADMIN]admin comment[/ADMIN]

then mod use MOD comment and the result is:

Code:

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.

HTML Code:

Original is:
[admin]blabla[/admin]
[mod]bleble[/mod]

and user can use:
[quote]
[admin]modifed admin comment[/admin]
[mod]modifed mod comment[/mod]
[/quote]

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 ?


All times are GMT. The time now is 05:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02358 seconds
  • Memory Usage 1,790KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (36)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete