[bd] Social Share [Deleted]

With this addon I can program to post automatically at twitter every new thread of a specific forum ? Posted with my forum twitter account ? With Thread title + URL ?
 
Hi there.

How can I change the default xenforo logo from appearing on my Facebook posts?

I don't want that posted with every thread that does not have a picture.
 
I got 4 errors of this:

bdSocialShare_Exception_NotConnected: [bd] Social Share Exception - library/bdSocialShare/Model/Publisher.php:74
Generated By: Unknown Account, 16 minutes ago

Stack Trace
#0 /library/bdSocialShare/Model/Publisher.php(24): bdSocialShare_Model_Publisher->facebookPublish('1', Object(bdSocialShare_Shareable_Trophy), Array)
#1 /library/bdSocialShare/Model/ShareQueue.php(77): bdSocialShare_Model_Publisher->publish('facebook', '1', Object(bdSocialShare_Shareable_Trophy), Array)
#2 /library/bdSocialShare/Model/ShareQueue.php(194): bdSocialShare_Model_ShareQueue->publish(Object(bdSocialShare_Shareable_Trophy), Array, false, Array)
#3 /library/bdSocialShare/Deferred/ShareQueue.php(10): bdSocialShare_Model_ShareQueue->runQueue(7.9999988079071)
#4 /library/XenForo/Model/Deferred.php(256): bdSocialShare_Deferred_ShareQueue->execute(Array, Array, 7.9999988079071, '')
#5 /library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999988079071, '', false)
#6 /library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#7 /deferred.php(23): XenForo_Model_Deferred->run(false)
#8 {main}

Request State
array(3) {
["url"] => string(37) "/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(32) "/forums/230/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
I got 4 errors of this:

bdSocialShare_Exception_NotConnected: [bd] Social Share Exception - library/bdSocialShare/Model/Publisher.php:74
Generated By: Unknown Account, 16 minutes ago

Stack Trace
#0 /library/bdSocialShare/Model/Publisher.php(24): bdSocialShare_Model_Publisher->facebookPublish('1', Object(bdSocialShare_Shareable_Trophy), Array)
#1 /library/bdSocialShare/Model/ShareQueue.php(77): bdSocialShare_Model_Publisher->publish('facebook', '1', Object(bdSocialShare_Shareable_Trophy), Array)
#2 /library/bdSocialShare/Model/ShareQueue.php(194): bdSocialShare_Model_ShareQueue->publish(Object(bdSocialShare_Shareable_Trophy), Array, false, Array)
#3 /library/bdSocialShare/Deferred/ShareQueue.php(10): bdSocialShare_Model_ShareQueue->runQueue(7.9999988079071)
#4 /library/XenForo/Model/Deferred.php(256): bdSocialShare_Deferred_ShareQueue->execute(Array, Array, 7.9999988079071, '')
#5 /library/XenForo/Model/Deferred.php(390): XenForo_Model_Deferred->runDeferred(Array, 7.9999988079071, '', false)
#6 /library/XenForo/Model/Deferred.php(335): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#7 /deferred.php(23): XenForo_Model_Deferred->run(false)
#8 {main}

Request State
array(3) {
["url"] => string(37) "/deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(32) "/forums/230/"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
This error is safe to ignore. Users are setting up sharing without connecting first. They will be prompted to connect by the add-on as a notice.
 
@xfrocks, could you tell me where I need to edit to manipulate the string that is going to be published on the automatic share feature?

I need to do some conditions based on my prefixes criteria ( specifically, if its a specific prefix, ignore it on the string). Ofc I'm not suggesting any kind of update around it since I know its a really specific need, so I would like to ask you where I can manipulate it.

Thaks :)
 
@xfrocks, could you tell me where I need to edit to manipulate the string that is going to be published on the automatic share feature?

I need to do some conditions based on my prefixes criteria ( specifically, if its a specific prefix, ignore it on the string). Ofc I'm not suggesting any kind of update around it since I know its a really specific need, so I would like to ask you where I can manipulate it.

Thaks :)
If you want to change the title when a thread is auto share, you can edit the phrase bdsocialshare_title_thread_auto OR bdsocialshare_title_reply_auto, similar for description bdsocialshare_description_post_auto, however, because they are phrases, I don't think you can perform conditional checks there... Actually, there are plan to use template for that. Maybe that will suit your need better?
 
If you want to change the title when a thread is auto share, you can edit the phrase bdsocialshare_title_thread_auto OR bdsocialshare_title_reply_auto, similar for description bdsocialshare_description_post_auto, however, because they are phrases, I don't think you can perform conditional checks there... Actually, there are plan to use template for that. Maybe that will suit your need better?

Yeah.. just an example of my need, considering that I configured to auto share on forum's twitter profile when a thread is created:

Suppous that I have prefixes A,B and C.

By default, the plugin would share: A Title, B Title, C Title.. So its a simple Prefix + Title concatenation.

Firstly I would like to separate it like: [A] Title

Second, I woul like to make a conditiona statemente that if "C" prefix is selected, I would share only the title.

With templates I think that it would perfectly be possible..
 
Yeah, it would be perfect for your use case. It will take sometime to switch from phrase to template though. I can't give you estimate :(
 
Social share has got a small problem with Xenmedia Gallery, the TMS "xengallery_media_file_editor_attachment" isn't working anymore.

<div class="controls deleteButtonContainer"> is not existing in the template xengallery_media_file_editor_attachment.
 
Social share has got a small problem with Xenmedia Gallery, the TMS "xengallery_media_file_editor_attachment" isn't working anymore.

<div class="controls deleteButtonContainer"> is not existing in the template xengallery_media_file_editor_attachment.
Which version of the add-on are you using? Since v1.4.2b, it supports Xen Media Gallery v2.0.0 new template. You should update to that.
 
I'm using [bd] Social Share 1.4.2b and Xen Media Gallery 2.0.6.

This is the the template "xengallery_media_file_editor_attachment" of Xen Media Gallery 2.0.6:
Code:
<div class="gridCol gridSpan AttachedFile{xen:if '{$attachment} AND {$attachment.thumbnailUrl}', ' AttachedImage'}{xen:if '{$item.mediaSite}', ' {$uniqueId} videoEmbed'}" id="{xen:if $isTemplate, 'AttachedFileTemplate', 'attachment{$attachment.attachment_id}'}">
    <div class="mediaContainer">
        <div class="thumbnailContainer Thumbnail">
            <xen:if is="{$attachment.mediaType} == 'image_upload' OR {$attachment.mediaType} == 'video_upload'">
                <a href="{xen:link attachments, $attachment}" target="_blank" data-attachmentId="{$attachment.attachment_id}" class="_not_LbTrigger" data-href="{xen:link misc/lightbox}">
                    <img src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="_not_LbImage thumbImage" data-src="{xen:link attachments, $attachment, 'embedded=1'}" />
                </a>
            <xen:elseif is="{$attachment.mediaType} == 'video_embed'" />
                <xen:if is="{$item.noThumb}">
                    <span class="noThumb">{xen:helper dummy, 'visible', '', 'thumbImage'}</span>
                <xen:else />
                    <img src="{$item.thumbnailUrl}" class="thumbImage" />
                </xen:if>
            </xen:if>
        </div>
        <div class="titleSection AttachmentText">
            <xen:if is="{$isTemplate}">
                <input type="button" value="{xen:phrase cancel}" class="button smallButton AttachmentCanceller" />

                <span class="ProgressMeter"><span class="ProgressGraphic">&nbsp;</span><span class="ProgressCounter">0%</span></span>
            <xen:else />
                <noscript>
                    <a href="{xen:link 'attachments/delete', $attachment}" target="_blank" class="button Smallbutton">{xen:phrase delete}</a>
                </noscript>

                <div class="titleContainer">
                    <div class="textInput">
                        <div class="inputPrepend">
                            <a class="inputIcon InsertFilename fa fa-pencil{xen:if $item.mediaSite, ' noPointer', ' Tooltip'}"{xen:if '!{$item.mediaSite}', ' title="{xen:phrase xengallery_click_to_auto_generate_title}"'} data-filename="{$attachment.filename}" data-target="#attachment_title_{$attachment.attachment_id}"></a>
                            <span class="inputContainer">
                                <xen:set var="$mediaTitle"><xen:if is="{$attachment.media_title}">{$attachment.media_title}<xen:else /></xen:if></xen:set>
                                <input type="text" id="attachment_title_{$attachment.attachment_id}" name="media_title[{$attachment.mediaType}][{$attachment.attachment_id}]" class="textCtrl mediaInput {xen:if $item.mediaSite, SetVideoTitle, SetImageTitle}" placeholder="{xen:phrase xengallery_enter_title}..." value="{xen:raw $mediaTitle}" />
                            </span>
                        </div>
                      
                        <xen:if is="{$canEditUrl}">
                            <div class="inputPrepend">
                                <i class="inputIcon fa fa-link"></i>
                                <span class="inputContainer">
                                    <input type="text" id="media_embed_url_{$attachment.attachment_id}" name="media_embed_url[video_embed][{$attachment.attachment_id}]" class="textCtrl" placeholder="{xen:phrase xengallery_enter_url}..." value="{$item.media_embed_url}" />
                                </span>
                            </div>  
                        </xen:if>                      

                        <textarea id="ctrl_media_description" name="media_description[{$attachment.mediaType}][{$attachment.attachment_id}]" class="textCtrl Elastic mediaInput {xen:if $item.mediaSite, SetVideoDescription, SetImageDescription}" placeholder="{xen:phrase xengallery_enter_description}...">{xen:raw $attachment.media_description}</textarea>
                    </div>

                    <input type="hidden" name="media_tag[{$attachment.mediaType}][]" id="ctrl_media_tag" value="{$mediaTag}" />
                    <input type="hidden" name="media_embed_url_original[{$attachment.mediaType}][]" id="ctrl_media_embed_url" value="{$item.media_embed_url}" />
                    <xen:if is="!{$item.media_id}">
                        <input type="hidden" name="media_embed_url[{$attachment.mediaType}][]" id="ctrl_media_embed_url" value="{$embedUrl}" />
                    </xen:if>
                </div>

                <div class="mediaControls">
                    <div class="mediaLabels">
                        <xen:if is="{$attachment.media_id}">
                            <a href="{xen:link xengallery/delete, $attachment}" class="mediaLabel labelStandard fa fa-trash-o OverlayTrigger"></a>
                        <xen:else />
                            <a class="mediaLabel labelStandard{xen:if '{$item.mediaSite}', ' DeleteVideo', ' AttachmentDeleter'} fa fa-trash-o" data-target=".{$uniqueId}" data-href="{xen:link 'attachments/delete', $attachment}"></a>
                        </xen:if>
                    </div>
                </div>
                <input type="hidden" name="media_{$attachment.mediaType}" value="true" />
            </xen:if>
        </div>
    </div>
</div>
 
I'm using [bd] Social Share 1.4.2b and Xen Media Gallery 2.0.6.

This is the the template "xengallery_media_file_editor_attachment" of Xen Media Gallery 2.0.6:
Code:
<div class="gridCol gridSpan AttachedFile{xen:if '{$attachment} AND {$attachment.thumbnailUrl}', ' AttachedImage'}{xen:if '{$item.mediaSite}', ' {$uniqueId} videoEmbed'}" id="{xen:if $isTemplate, 'AttachedFileTemplate', 'attachment{$attachment.attachment_id}'}">
    <div class="mediaContainer">
        <div class="thumbnailContainer Thumbnail">
            <xen:if is="{$attachment.mediaType} == 'image_upload' OR {$attachment.mediaType} == 'video_upload'">
                <a href="{xen:link attachments, $attachment}" target="_blank" data-attachmentId="{$attachment.attachment_id}" class="_not_LbTrigger" data-href="{xen:link misc/lightbox}">
                    <img src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="_not_LbImage thumbImage" data-src="{xen:link attachments, $attachment, 'embedded=1'}" />
                </a>
            <xen:elseif is="{$attachment.mediaType} == 'video_embed'" />
                <xen:if is="{$item.noThumb}">
                    <span class="noThumb">{xen:helper dummy, 'visible', '', 'thumbImage'}</span>
                <xen:else />
                    <img src="{$item.thumbnailUrl}" class="thumbImage" />
                </xen:if>
            </xen:if>
        </div>
        <div class="titleSection AttachmentText">
            <xen:if is="{$isTemplate}">
                <input type="button" value="{xen:phrase cancel}" class="button smallButton AttachmentCanceller" />

                <span class="ProgressMeter"><span class="ProgressGraphic">&nbsp;</span><span class="ProgressCounter">0%</span></span>
            <xen:else />
                <noscript>
                    <a href="{xen:link 'attachments/delete', $attachment}" target="_blank" class="button Smallbutton">{xen:phrase delete}</a>
                </noscript>

                <div class="titleContainer">
                    <div class="textInput">
                        <div class="inputPrepend">
                            <a class="inputIcon InsertFilename fa fa-pencil{xen:if $item.mediaSite, ' noPointer', ' Tooltip'}"{xen:if '!{$item.mediaSite}', ' title="{xen:phrase xengallery_click_to_auto_generate_title}"'} data-filename="{$attachment.filename}" data-target="#attachment_title_{$attachment.attachment_id}"></a>
                            <span class="inputContainer">
                                <xen:set var="$mediaTitle"><xen:if is="{$attachment.media_title}">{$attachment.media_title}<xen:else /></xen:if></xen:set>
                                <input type="text" id="attachment_title_{$attachment.attachment_id}" name="media_title[{$attachment.mediaType}][{$attachment.attachment_id}]" class="textCtrl mediaInput {xen:if $item.mediaSite, SetVideoTitle, SetImageTitle}" placeholder="{xen:phrase xengallery_enter_title}..." value="{xen:raw $mediaTitle}" />
                            </span>
                        </div>
                     
                        <xen:if is="{$canEditUrl}">
                            <div class="inputPrepend">
                                <i class="inputIcon fa fa-link"></i>
                                <span class="inputContainer">
                                    <input type="text" id="media_embed_url_{$attachment.attachment_id}" name="media_embed_url[video_embed][{$attachment.attachment_id}]" class="textCtrl" placeholder="{xen:phrase xengallery_enter_url}..." value="{$item.media_embed_url}" />
                                </span>
                            </div> 
                        </xen:if>                     

                        <textarea id="ctrl_media_description" name="media_description[{$attachment.mediaType}][{$attachment.attachment_id}]" class="textCtrl Elastic mediaInput {xen:if $item.mediaSite, SetVideoDescription, SetImageDescription}" placeholder="{xen:phrase xengallery_enter_description}...">{xen:raw $attachment.media_description}</textarea>
                    </div>

                    <input type="hidden" name="media_tag[{$attachment.mediaType}][]" id="ctrl_media_tag" value="{$mediaTag}" />
                    <input type="hidden" name="media_embed_url_original[{$attachment.mediaType}][]" id="ctrl_media_embed_url" value="{$item.media_embed_url}" />
                    <xen:if is="!{$item.media_id}">
                        <input type="hidden" name="media_embed_url[{$attachment.mediaType}][]" id="ctrl_media_embed_url" value="{$embedUrl}" />
                    </xen:if>
                </div>

                <div class="mediaControls">
                    <div class="mediaLabels">
                        <xen:if is="{$attachment.media_id}">
                            <a href="{xen:link xengallery/delete, $attachment}" class="mediaLabel labelStandard fa fa-trash-o OverlayTrigger"></a>
                        <xen:else />
                            <a class="mediaLabel labelStandard{xen:if '{$item.mediaSite}', ' DeleteVideo', ' AttachmentDeleter'} fa fa-trash-o" data-target=".{$uniqueId}" data-href="{xen:link 'attachments/delete', $attachment}"></a>
                        </xen:if>
                    </div>
                </div>
                <input type="hidden" name="media_{$attachment.mediaType}" value="true" />
            </xen:if>
        </div>
    </div>
</div>
v1.4.2b should have a second template modification (modification key bdsocialshare_xengallery_media_file_editor_attach2) which search for

Code:
<input type="hidden" name="media_{$attachment.mediaType}" value="true" />
 
Yes, there are two changes for the template "xengallery_media_file_editor_attachment " and I thought both are necessary.
 
would it be possible for someone with the appropriate permissions to select which posts THEY want to promote to an official page?

Meaning I would like a admin to be able to promote ANY post.
 
would it be possible for someone with the appropriate permissions to select which posts THEY want to promote to an official page?

Meaning I would like a admin to be able to promote ANY post.
Technically yes but that's not possible for now.
 
Back
Top Bottom