Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
IndexDiscussionImage also for drafts?
keesha
✭
Hi @vrijvlinder , any chance that you upgrade your plugin any time soon that it shows also the images for the drafts page?
0
Comments
Not sure if it is possible. Why would you want that ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@keesha
You could try adding this function after the DiscussionsController function. Report if it works
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Hi, thanks a ton i'll try this ASAP when i'm back home.
No errors but also sadly no images.
I've also tried to change
$ImageSrc = C('Plugin.IndexDiscussionImage.Image',Url('plugins/IndexDiscussionImage/design/images/default.png'));
to
$ImageSrc = C('Plugin.IndexDiscussionImage.Image','/plugins/IndexDiscussionImage/design/images/default.png');
but also no luck.
Any more clues?
Do the drafts contain images? This only works on discussions that have an image saved inserted .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
It can't work for drafts because a draft is not a saved discussion. The way this plugin works is it finds an image saved with the discussion. A draft is not a discussion yet. The list of drafts that appears is just a link to the editor to be able to post it. When you decide to post it, the images you left in the draft will be saved and then they will appear but only on posted discussions.
You can make it work in the profile when people click MyDiscussions
Remember to save the default image in case there is no image. That is done in the dashboard.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Alright, thanks a ton vrijvlinder i appreciate your help a lot