Hello,
As evoked in a previous exchange, I prepare a modification of the file, "... \ story \ default.php" to put a background in the messages of the stream.
Even following your advice, I can not transmit the value to the table at the time of the click on the publish button.
The "selection" part of the background works well, (Like this)
<input type = "hidden" name = "Style" id = "js-image-link-value" value = "" />
<img src = "images / styles / 24px / blue.jpg" class = "js-image-link" data-value = "blue" />
<img src = "images / styles / 24px / red.jpg" class = "js-image-link" data-value = "red" />
This code returns the name of a CSS class
Then a script:
<Script>
var imageLinkValue = document.getElementById ('js-image-link-value');
var imageLinks = document.querySelectorAll ('. js-image-link');
var mentions = document.querySelector ('. mentions');
// Create the class .mentions
function onImageLinkClick () {
var value = this.getAttribute ('data-value');
imageLinkValue.value = value;
document.querySelector classList.add (value) ( 'entries..');
// alert (value);
}
Array.prototype.forEach.call (imageLinks, function (imageLink) {
imageLink.addEventListener ('click', onImageLinkClick.bind (imageLink));
});
</Script>
But I can not pass the "value" in the table "social_stream" (I added a column "style" in this table)
I understand that this can not be done as part of the support, so can you tell me how much it would cost me to help me achieve that?
Best regards.
Eric