Conversation Essentials

Conversation Essentials [Paid] 2.7.7

No permission to buy ($45.00)
I think that is the template modification being in the wrong spot, so the canInvite check is wrapping the canKick check, unexpectedly.
 
Has anyone been able to hide the prefix menu?
View attachment 229386
Since you mentioned this, I just noticed it and sought out how to remove it.

I achieved it by editing template: svConvEss_label_macros

On mine it was at line 89, remove:
Code:
    <xf:if is="$labels === null">
        <xf:set var="$labels" value="{{ $xf.visitor.ConversationLabels }}" />
    </xf:if>

EDIT:

The above method was causing a template error, so I reverted to default, and came up with this:

On line 133

Find:
Code:
<div class="inputGroup-text">

Replace with:
Code:
<div class="inputGroup-text" style="display: none;">
 
Last edited:
Since you mentioned this, I just noticed it and sought out how to remove it.

I achieved it by editing template: svConvEss_label_macros

On mine it was at line 89, remove:
Code:
    <xf:if is="$labels === null">
        <xf:set var="$labels" value="{{ $xf.visitor.ConversationLabels }}" />
    </xf:if>

EDIT:

The above method was causing a template error, so I reverted to default, and came up with this:

On line 133

Find:
Code:
<div class="inputGroup-text">

Replace with:
Code:
<div class="inputGroup-text" style="display: none;">
Thank you, that was driving me crazy 🤪 👍
 
I cant export conv to thread


Check permissions:

[ConvEss] Copy conversation messages to thread
Yes (Details)
Registered
No
Administrative
Yes


Code:
<xf:if is="$conversation.canCopyToThread()">
<xf:button href="{{ link('conversations/copy-to-thread', $conversation) }}" class="button--link" overlay="true">
    {{ phrase('svConvEss_copy_to_thread') }}
</xf:button>
</xf:if>


Code:
        if (!$visitor->hasPermission('conversation', 'convessCopyToThread'))
        {
            return false;
        }
        
        ...
        
        if ($visitor->hasConversationManagePermissions())
        {
            return true;
        }

So it seems i need a second permission:
=> hasConversationManagePermissions

But where can i found these hasConversationManagePermissions, please?
 
Last edited:
Code:
    public function hasConversationManagePermissions()
    {
        if ($this->hasPermission('conversation', 'sv_manageConversation'))
        {
            return true;
        }

        $addOns = \XF::app()->container('addon.cache');
        if (empty($addOns['SV/ConversationImprovements']))
        {
            if ($this->is_moderator || $this->is_admin)
            {
                return true;
            }
        }

        return false;
    }


Code:
<input type="radio" name="permissions[conversation][sv_manageConversation]" value="allow" checked="checked">

This is also set to yes for admin!



Manage any conversation
Yes (Details)

Registered
No

Administrative
Yes
 
If i watch canExportConversation; this is much shorter

Code:
    public function canExportConversation(&$error = null)
    {
        if (!$this->user_id)
        {
            return false;
        }

        return $this->hasPermission('conversation', 'convessExport');
    }
 
"Copy to thread" feature requires a set of forums that are permitted export targets.

"Export Conversation feature allows you to download your conversations (in various formats, probably will fail horrible for super-long conversations).
 
I apologize if this has already been answered elsewhere, but we are getting this error:

ErrorException: Template error: Template public:alert_post_convess_exported is unknown
src/XF/Template/Templater.php:618

Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', '/var/www/html/b...', 618, Array)
#1 src/XF/Template/Templater.php(618): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(566): XF\Template\Templater->getTemplateData('public', 'alert_post_conv...')
#3 src/XF/Template/Templater.php(1314): XF\Template\Templater->getTemplateCode('public', 'alert_post_conv...')
#4 src/XF/Alert/AbstractHandler.php(80): XF\Template\Templater->renderTemplate('alert_post_conv...', Array)
#5 src/XF/Entity/UserAlert.php(69): XF\Alert\AbstractHandler->render(Object(XF\Entity\UserAlert))
#6 [internal function]: XF\Entity\UserAlert->render()
#7 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l1/s161/public/alert_macros.php(42): XF\Template\Templater->method(Object(XF\Entity\UserAlert), 'render', Array)
#9 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Array)
#10 internal_data/code_cache/templates/l1/s161/public/account_alerts.php(31): XF\Template\Templater->callMacro('alert_macros', 'row', Array, Array)
#11 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array)
#12 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_alerts', Array)
#13 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Account\\Aler...', 'public:account_...', Array)
#15 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#18 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#19 src/XF.php(391): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}
 
Last edited:
What version? Can you provide this record via SQL?

SQL:
select *
from xf_user_alert
where (content_type = 'post' and action = ' convess_exported') or ( content_type = 'post_ convess' and action = ' exported ')
 
Conversation Essentials 2.3.18
SQL:
mysql> select * from xf_user_alert where (content_type = 'post' and action = ' convess_exported') or ( content_type = 'post_ convess' and action = ' exported ');

Output:

Empty set (0.01 sec)
 
Can you try this;

SQL:
select *
from xf_user_alert
where (content_type = 'post' and action = 'convess_exported') or ( content_type = 'post_convess' and action = 'exported')
(Just noticed there are random spaces in the string)
 
This is part of the result (full text exceeds post maximum):
mysql> mysql> select * from xf_user_alert where (content_type = 'post' and action = 'convess_exported') or ( content_type = 'post_convess' and action = 'exported');

+----------+-----------------+---------+--------------------+--------------+------------+------------------+------------+------------+---------------------------------------------------------------------------------------------------------------------------+---------------------+
| alert_id | alerted_user_id | user_id | username | content_type | content_id | action | event_date | view_date | extra_data | depends_on_addon_id |
+----------+-----------------+---------+--------------------+--------------+------------+------------------+------------+------------+---------------------------------------------------------------------------------------------------------------------------+---------------------+
| 1551564 | 5450 | 3610 | Smexi-hexi123 | post | 222698 | convess_exported | 1593205386 | 0 | {"conversation":{"conversation_id":77394,"title":"A Gypsy's Dance of Love Among the Garden of Roses"}} | |
| 1582449 | 6263 | 6176 | skylarhaven | post | 239174 | convess_exported | 1594240355 | 1594240418 | {"conversation":{"conversation_id":98792,"title":"Klance RP"}} | |
| 1582450 | 6176 | 6176 | skylarhaven | post | 239174 | convess_exported | 1594240355 | 1594240472 | {"conversation":{"conversation_id":98792,"title":"Klance RP"}} | |
| 1582469 | 6263 | 6176 | skylarhaven | post | 239178 | convess_exported | 1594241156 | 1594241386 | {"conversation":{"conversation_id":96650,"title":"Matt\/Mello college\/text RP"}} | |
| 1582470 | 6176 | 6176 | skylarhaven | post | 239178 | convess_exported | 1594241156 | 1594241179 | {"conversation":{"conversation_id":96650,"title":"Matt\/Mello college\/text RP"}} | |
| 1582478 | 82 | 6176 | skylarhaven | post | 239262 | convess_exported | 1594241421 | 1594253736 | {"conversation":{"conversation_id":97513,"title":"Batman Returns, Catwoman Rises"}} | |
| 1582479 | 6176 | 6176 | skylarhaven | post | 239262 | convess_exported | 1594241421 | 1594241444 | {"conversation":{"conversation_id":97513,"title":"Batman Returns, Catwoman Rises"}} | |
| 1582504 | 6176 | 6176 | skylarhaven | post | 239310 | convess_exported | 1594242248 | 1594242261 | {"conversation":{"conversation_id":97873,"title":"The Captain, The Mechanic, and The Soldier"}} | |
| 1582505 | 2725 | 6176 | skylarhaven | post | 239310 | convess_exported | 1594242248 | 1594243010 | {"conversation":{"conversation_id":97873,"title":"The Captain, The Mechanic, and The Soldier"}} | |
| 1582671 | 905 | 905 | astral | post | 239351 | convess_exported | 1594252109 | 1594252111 | {"conversation":{"conversation_id":55998,"title":"Standards of Care | Marie Adriana x astral"}} | |
| 1582672 | 1433 | 905 | astral | post | 239351 | convess_exported | 1594252109 | 1594252451 | {"conversation":{"conversation_id":55998,"title":"Standards of Care | Marie Adriana x astral"}} | |
| 1582900 | 947 | 2004 | Riddle | post | 240623 | convess_exported | 1594265115 | 1594265616 | {"conversation":{"conversation_id":63946,"title":"This Isn't Everything You Are"}} | |
| 1582901 | 2004 | 2004 | Riddle | post | 240623 | convess_exported | 1594265115 | 1594265122 | {"conversation":{"conversation_id":63946,"title":"This Isn't Everything You Are"}} | |
| 1582902 | 947 | 2004 | Riddle | post | 241274 | convess_exported | 1594265116 | 1594265616 | {"conversation":{"conversation_id":87902,"title":"What A Scene"}} | |
| 1582903 | 2004 | 2004 | Riddle | post | 241274 | convess_exported | 1594265116 | 1594265122 | {"conversation":{"conversation_id":87902,"title":"What A Scene"}} | |
| 1583240 | 3900 | 3900 | Lights | post | 242101 | convess_exported | 1594297404 | 1594297420 | {"conversation":{"conversation_id":76382,"title":"Far Away From Home"}} | |
| 1583241 | 2670 | 3900 | Lights | post | 242101 | convess_exported | 1594297404 | 1594314746 | {"conversation":{"conversation_id":76382,"title":"Far Away From Home"}} | |
| 1583244 | 3900 | 3900 | Lights | post | 242167 | convess_exported | 1594297696 | 1594297700 | {"conversation":{"conversation_id":83764,"title":"Vampire Nights [RP]"}} | |
| 1583245 | 5510 | 3900 | Lights | post | 242167 | convess_exported | 1594297696 | 1594297699 | {"conversation":{"conversation_id":83764,"title":"Vampire Nights [RP]"}} | |
| 1583337 | 4453 | 1298 | Ten | post | 242279 | convess_exported | 1594304196 | 1594423595 | {"conversation":{"conversation_id":63893,"title":"Lost Souls"}} | |
| 1583338 | 1298 | 1298 | Ten | post | 242279 | convess_exported | 1594304196 | 1594304206 | {"conversation":{"conversation_id":63893,"title":"Lost Souls"}} | |
| 1583347 | 1298 | 1298 | Ten | post | 242558 | convess_exported | 1594304860 | 1594304878 | {"conversation":{"conversation_id":12523,"title":"Pleasure Cruise"}} | |
| 1583358 | 1247 | 1298 | Ten | post | 243848 | convess_exported | 1594305268 | 0 | {"conversation":{"conversation_id":31880,"title":"Safe Haven"}} | |
| 1583359 | 1298 | 1298 | Ten | post | 243848 | convess_exported | 1594305268 | 1594305273 | {"conversation":{"conversation_id":31880,"title":"Safe Haven"}} | |
| 1583369 | 1247 | 1298 | Ten | post | 244182 | convess_exported | 1594305741 | 0 | {"conversation":{"conversation_id":37463,"title":"Give it Everything You\u2019ve Got"}} | |
| 1583370 | 1298 | 1298 | Ten | post | 244182 | convess_exported | 1594305741 | 1594305749 | {"conversation":{"conversation_id":37463,"title":"Give it Everything You\u2019ve Got"}} | |
| 1583380 | 3535 | 2277 | shadow heart | post | 244316 | convess_exported | 1594306118 | 1594316891 | {"conversation":{"conversation_id":93091,"title":"Vampires exists!? Oh and Nekos too!"}} | |
| 1583381 | 2277 | 2277 | shadow heart | post | 244316 | convess_exported | 1594306118 | 1594306132 | {"conversation":{"conversation_id":93091,"title":"Vampires exists!? Oh and Nekos too!"}} | |
| 1583944 | 38 | 1433 | Marie Adriana | post | 244483 | convess_exported | 1594333681 | 1594337995 | {"conversation":{"conversation_id":12511,"title":"Necessary Nuptials"}} | |
| 1583945 | 1433 | 1433 | Marie Adriana | post | 244483 | convess_exported | 1594333681 | 1594333854 | {"conversation":{"conversation_id":12511,"title":"Necessary Nuptials"}} | |
| 1583941 | 1433 | 1433 | Marie Adriana | post | 247017 | convess_exported | 1594333672 | 1594333854 | {"conversation":{"conversation_id":12675,"title":"Journey to the Stars"}} | |
| 1583942 | 683 | 1433 | Marie Adriana | post | 247017 | convess_exported | 1594333672 | 0 | {"conversation":{"conversation_id":12675,"title":"Journey to the Stars"}} | |
| 1583946 | 196 | 1433 | Marie Adriana | post | 247401 | convess_exported | 1594333808 | 0 | {"conversation":{"conversation_id":13165,"title":"Mischief at Mad Myrna's"}} | |
| 1583947 | 1433 | 1433 | Marie Adriana | post | 247401 | convess_exported | 1594333808 | 1594333854 | {"conversation":{"conversation_id":13165,"title":"Mischief at Mad Myrna's"}} | |
| 1583952 | 1285 | 1433 | Marie Adriana | post | 247441 | convess_exported | 1594333954 | 1594334096 | {"conversation":{"conversation_id":13226,"title":"\"I'll dance with you, pet, on the Slayer's grave.\""}} | |
| 1583953 | 1433 | 1433 | Marie Adriana | post | 247441 | convess_exported | 1594333954 | 1594334527 | {"conversation":{"conversation_id":13226,"title":"\"I'll dance with you, pet, on the Slayer's grave.\""}} | |
| 1583954 | 1433 | 1433 | Marie Adriana | post | 247516 | convess_exported | 1594334020 | 1594334527 | {"conversation":{"conversation_id":14134,"title":"Tower of Power"}} | |
 
This is part of the result (full text exceeds post maximum):
mysql> mysql> select * from xf_user_alert where (content_type = 'post' and action = 'convess_exported') or ( content_type = 'post_convess' and action = 'exported');

+----------+-----------------+---------+--------------------+--------------+------------+------------------+------------+------------+---------------------------------------------------------------------------------------------------------------------------+---------------------+
| alert_id | alerted_user_id | user_id | username | content_type | content_id | action | event_date | view_date | extra_data | depends_on_addon_id |
+----------+-----------------+---------+--------------------+--------------+------------+------------------+------------+------------+---------------------------------------------------------------------------------------------------------------------------+---------------------+
| 1551564 | 5450 | 3610 | Smexi-hexi123 | post | 222698 | convess_exported | 1593205386 | 0 | {"conversation":{"conversation_id":77394,"title":"A Gypsy's Dance of Love Among the Garden of Roses"}} | |
| 1582449 | 6263 | 6176 | skylarhaven | post | 239174 | convess_exported | 1594240355 | 1594240418 | {"conversation":{"conversation_id":98792,"title":"Klance RP"}} | |
| 1582450 | 6176 | 6176 | skylarhaven | post | 239174 | convess_exported | 1594240355 | 1594240472 | {"conversation":{"conversation_id":98792,"title":"Klance RP"}} | |
| 1582469 | 6263 | 6176 | skylarhaven | post | 239178 | convess_exported | 1594241156 | 1594241386 | {"conversation":{"conversation_id":96650,"title":"Matt\/Mello college\/text RP"}} | |
| 1582470 | 6176 | 6176 | skylarhaven | post | 239178 | convess_exported | 1594241156 | 1594241179 | {"conversation":{"conversation_id":96650,"title":"Matt\/Mello college\/text RP"}} | |
| 1582478 | 82 | 6176 | skylarhaven | post | 239262 | convess_exported | 1594241421 | 1594253736 | {"conversation":{"conversation_id":97513,"title":"Batman Returns, Catwoman Rises"}} | |
| 1582479 | 6176 | 6176 | skylarhaven | post | 239262 | convess_exported | 1594241421 | 1594241444 | {"conversation":{"conversation_id":97513,"title":"Batman Returns, Catwoman Rises"}} | |
| 1582504 | 6176 | 6176 | skylarhaven | post | 239310 | convess_exported | 1594242248 | 1594242261 | {"conversation":{"conversation_id":97873,"title":"The Captain, The Mechanic, and The Soldier"}} | |
| 1582505 | 2725 | 6176 | skylarhaven | post | 239310 | convess_exported | 1594242248 | 1594243010 | {"conversation":{"conversation_id":97873,"title":"The Captain, The Mechanic, and The Soldier"}} | |
| 1582671 | 905 | 905 | astral | post | 239351 | convess_exported | 1594252109 | 1594252111 | {"conversation":{"conversation_id":55998,"title":"Standards of Care | Marie Adriana x astral"}} | |
| 1582672 | 1433 | 905 | astral | post | 239351 | convess_exported | 1594252109 | 1594252451 | {"conversation":{"conversation_id":55998,"title":"Standards of Care | Marie Adriana x astral"}} | |
| 1582900 | 947 | 2004 | Riddle | post | 240623 | convess_exported | 1594265115 | 1594265616 | {"conversation":{"conversation_id":63946,"title":"This Isn't Everything You Are"}} | |
| 1582901 | 2004 | 2004 | Riddle | post | 240623 | convess_exported | 1594265115 | 1594265122 | {"conversation":{"conversation_id":63946,"title":"This Isn't Everything You Are"}} | |
| 1582902 | 947 | 2004 | Riddle | post | 241274 | convess_exported | 1594265116 | 1594265616 | {"conversation":{"conversation_id":87902,"title":"What A Scene"}} | |
| 1582903 | 2004 | 2004 | Riddle | post | 241274 | convess_exported | 1594265116 | 1594265122 | {"conversation":{"conversation_id":87902,"title":"What A Scene"}} | |
| 1583240 | 3900 | 3900 | Lights | post | 242101 | convess_exported | 1594297404 | 1594297420 | {"conversation":{"conversation_id":76382,"title":"Far Away From Home"}} | |
| 1583241 | 2670 | 3900 | Lights | post | 242101 | convess_exported | 1594297404 | 1594314746 | {"conversation":{"conversation_id":76382,"title":"Far Away From Home"}} | |
| 1583244 | 3900 | 3900 | Lights | post | 242167 | convess_exported | 1594297696 | 1594297700 | {"conversation":{"conversation_id":83764,"title":"Vampire Nights [RP]"}} | |
| 1583245 | 5510 | 3900 | Lights | post | 242167 | convess_exported | 1594297696 | 1594297699 | {"conversation":{"conversation_id":83764,"title":"Vampire Nights [RP]"}} | |
| 1583337 | 4453 | 1298 | Ten | post | 242279 | convess_exported | 1594304196 | 1594423595 | {"conversation":{"conversation_id":63893,"title":"Lost Souls"}} | |
| 1583338 | 1298 | 1298 | Ten | post | 242279 | convess_exported | 1594304196 | 1594304206 | {"conversation":{"conversation_id":63893,"title":"Lost Souls"}} | |
| 1583347 | 1298 | 1298 | Ten | post | 242558 | convess_exported | 1594304860 | 1594304878 | {"conversation":{"conversation_id":12523,"title":"Pleasure Cruise"}} | |
| 1583358 | 1247 | 1298 | Ten | post | 243848 | convess_exported | 1594305268 | 0 | {"conversation":{"conversation_id":31880,"title":"Safe Haven"}} | |
| 1583359 | 1298 | 1298 | Ten | post | 243848 | convess_exported | 1594305268 | 1594305273 | {"conversation":{"conversation_id":31880,"title":"Safe Haven"}} | |
| 1583369 | 1247 | 1298 | Ten | post | 244182 | convess_exported | 1594305741 | 0 | {"conversation":{"conversation_id":37463,"title":"Give it Everything You\u2019ve Got"}} | |
| 1583370 | 1298 | 1298 | Ten | post | 244182 | convess_exported | 1594305741 | 1594305749 | {"conversation":{"conversation_id":37463,"title":"Give it Everything You\u2019ve Got"}} | |
| 1583380 | 3535 | 2277 | shadow heart | post | 244316 | convess_exported | 1594306118 | 1594316891 | {"conversation":{"conversation_id":93091,"title":"Vampires exists!? Oh and Nekos too!"}} | |
| 1583381 | 2277 | 2277 | shadow heart | post | 244316 | convess_exported | 1594306118 | 1594306132 | {"conversation":{"conversation_id":93091,"title":"Vampires exists!? Oh and Nekos too!"}} | |
| 1583944 | 38 | 1433 | Marie Adriana | post | 244483 | convess_exported | 1594333681 | 1594337995 | {"conversation":{"conversation_id":12511,"title":"Necessary Nuptials"}} | |
| 1583945 | 1433 | 1433 | Marie Adriana | post | 244483 | convess_exported | 1594333681 | 1594333854 | {"conversation":{"conversation_id":12511,"title":"Necessary Nuptials"}} | |
| 1583941 | 1433 | 1433 | Marie Adriana | post | 247017 | convess_exported | 1594333672 | 1594333854 | {"conversation":{"conversation_id":12675,"title":"Journey to the Stars"}} | |
| 1583942 | 683 | 1433 | Marie Adriana | post | 247017 | convess_exported | 1594333672 | 0 | {"conversation":{"conversation_id":12675,"title":"Journey to the Stars"}} | |
| 1583946 | 196 | 1433 | Marie Adriana | post | 247401 | convess_exported | 1594333808 | 0 | {"conversation":{"conversation_id":13165,"title":"Mischief at Mad Myrna's"}} | |
| 1583947 | 1433 | 1433 | Marie Adriana | post | 247401 | convess_exported | 1594333808 | 1594333854 | {"conversation":{"conversation_id":13165,"title":"Mischief at Mad Myrna's"}} | |
| 1583952 | 1285 | 1433 | Marie Adriana | post | 247441 | convess_exported | 1594333954 | 1594334096 | {"conversation":{"conversation_id":13226,"title":"\"I'll dance with you, pet, on the Slayer's grave.\""}} | |
| 1583953 | 1433 | 1433 | Marie Adriana | post | 247441 | convess_exported | 1594333954 | 1594334527 | {"conversation":{"conversation_id":13226,"title":"\"I'll dance with you, pet, on the Slayer's grave.\""}} | |
| 1583954 | 1433 | 1433 | Marie Adriana | post | 247516 | convess_exported | 1594334020 | 1594334527 | {"conversation":{"conversation_id":14134,"title":"Tower of Power"}} | |
I'm unsure if this is related to my add-on, do you anything which extends it?

Can you open a ticket on my site; https://atelieraphelion.com/
I will likely need a login to your site to search add-on files to try to track this down.
 
I have permissions to copy a conversation to thread but cannot see any way to this. Where should I be looking?

EDIT:

Aha! "Copy to thread" feature requires a set of forums that are permitted export targets.
 
  • Like
Reactions: Xon
Is there any way to set a "rule priority" so you can set what order your conversation rules are applied.

For example if I have 5 warnings that I give to users (A,B,C,D,E)

All warning conversations start with the word "warning"

I have a rule with a wildcard "warning*" that marks all warning conversations with the label "Warnings"

Now I want to split "Warning A" into its own label.

If I create a new rule for "Warning A" to be labeled "Warning A" which rule would have precedence? Would "Warning A" get the "Warnings" label or the "Warning A" label?
 
Top Bottom