jfnewell1965 Posted March 24, 2019 Posted March 24, 2019 Does anyone know what the purpose of the "Image" is when you create a blog post with Bees Blog? And, if/where this gets displayed?
0 toplakd Posted March 25, 2019 Posted March 25, 2019 Have you at least tried to create a test post and tried to add the image? It's purpose is to add the main image to the post, if you have selected it and clicked on the "Add file" button. 1
0 datakick Posted March 25, 2019 Posted March 25, 2019 For me, the image is displayed correctly on both blog post detail and blog category pages 1
0 jfnewell1965 Posted March 25, 2019 Author Posted March 25, 2019 (edited) I have created two posts. In each post I have added an image. I can find all of these images in "img/beesblog/posts"....they are not in "themes/{theme}/img/......" which is where I really expected them. Anyway.....I can find all of these images in "img/beesblog/posts", but both my "recent posts" and the posts in the blog itself look as shown below, with no image... Home Page Recent Posts Display: Blog Page Display: Edited March 25, 2019 by jfnewell1965
0 jfnewell1965 Posted March 26, 2019 Author Posted March 26, 2019 As a test, just to try and investigate any other possibilities, I reverted back to the default community theme. It made no difference....the images still don't show. My assumption is that if a properly named image is not found at the specified image path, then no image is displayed...and therefore I am guessing that my image path info is messed up. But I don't know how to fix it. Any ideas out there?
0 tommat Posted March 26, 2019 Posted March 26, 2019 (edited) Check where image url is pointing with your browser developer tools, It should point to yourdomain/img/beesblog/posts/yourimage.jpg Edited March 26, 2019 by tommat
0 jfnewell1965 Posted March 26, 2019 Author Posted March 26, 2019 (edited) @tommat Hi...I tried that, but since it does not find an image wherever is looking, it does not get included in the page and therefore can't be seen on an inspection. Maybe the developer tools have additional features I don't know how to use, but with simple inspection, all I can see is the rendered page (See below). Now, I did dig into the code a little, and in /modules/beesblogrecentposts/views/templates/hooks/home.tpl, I can see it "assembling" the image path so to speak with the following code: <a class="beesblogrecentposts-title" href="{$post->link|escape:'htmlall':'UTF-8'}" title="{$post->title|escape:'htmlall':'UTF-8'}"> {assign var=imagePath value=Media::getMediaPath(BeesBlog::getPostImagePath($post->id))} {if ($imagePath)} <img class="img-responsive" src="{$imagePath|escape:'htmlall':'UTF-8'}" title="{$post->title|escape:'htmlall':'UTF-8'}" /> {/if} {$post->title|escape:'htmlall':'UTF-8'} </a> But again, I don't know enough to understand where "Media::getMediaPath" or "BeesBlog::getPostImagePath" actually gets the value from. I am assuming the value is stored somewhere, but I can't find it. In the old days (when dinosaurs roamed the earth) and I wrote some simple programs in Visual Basic, if I questioned a variable, I would just put a message box popup into the code to see what the variable was at different points in the code.......but I could not figure out a way to do that in this case. I also found other code in /modules/beesblog/classes/BeesBlogPost.php, such as: public static function getImagePath($id, $type = 'post_default') { $baseLocation = _PS_IMG_DIR_.'beesblog/posts/'; But at my knowledge level, all that does is introduce another variable I don't understand how to chase down. What I can see with inspect: <article> <div class="col-xs-12 col-sm-4 col-md-3"> <div class="beesblogrecentposts-content"> <h3 class="post-name"> <a class="beesblogrecentposts-title" href="https://www.cigarboxguitarfactory.com/blog/install-markers" title="Installing Fret Side Markers"> Installing Fret Side Markers </a> </h3> <p> Drill hole. Install marker. </p> <p> <i class="icon icon-calendar"></i> Mar 24, 2019 <i class="icon icon-eye"></i> 10 </p> <p><a class="btn btn-primary" href="https://www.cigarboxguitarfactory.com/blog/install-markers" title="Installing Fret Side Markers">Read More</a></p> </div> </div> </article> Edited March 27, 2019 by jfnewell1965
0 jfnewell1965 Posted March 27, 2019 Author Posted March 27, 2019 (edited) I have now. I have uninstalled the module, made sure it was the latest module, and then reinstalled the module. Beyond that, I unhooked everything "Bee Blog" related, and re-hooked it. Then I made a category, and then an article under that category along with selecting an image for the article. Just so we are clear, here is again what I am getting, along with what I am expecting. The "What I am Expecting" is just a mock-up, as I have no idea what it really looks like. Edited March 27, 2019 by jfnewell1965
0 datakick Posted March 27, 2019 Posted March 27, 2019 @jfnewell1965 I have reproduced the problem, and found a solution. Go to your modules page, and delete Bees Blog Recent Posts module. Not the Bees Blog itself. After you delete it, you will notice that it will immediately reinsert itself into the module list. That's because Bees Blog modules contains different version of this module as a submodule, and immediately copies its own version thirtybees module directory. So by removing the module, you are actually performing module update 🙂 funny, isn't it... Now, install this module, and it should start to work.
0 jfnewell1965 Posted March 27, 2019 Author Posted March 27, 2019 @datakick You know...when I first deleted it (as a test to see what reinstalling did), I noticed that it seemed to come back like you say, so I deleted it a second time and it went away. Then I deleted the rest and reinstalled. So now, trying to follow your fix, I went to delete and then reinstall as you say, but.... Now it won't delete. It won't delete, it won't uninstall, it won't anything...like it has decided to stay for life! I hate to do anything further until I hear your ideas, because I don't know how much a deeper a hole I might dig for myself. It seems like you found a fix, but now I can't implement that fix.....any ideas?
0 jfnewell1965 Posted March 28, 2019 Author Posted March 28, 2019 OK..so I made a backup of my site...on the verge of reinstalling TB to see if anything can be done to get the Bees Blog Module working. Any last minute ideas before I go through another install?
0 jfnewell1965 Posted March 29, 2019 Author Posted March 29, 2019 This turned out to be an extension related issue. If the file extension you upload is upper case, then it will not show up. My files were named "xxxx.JPG" and not "xxx.jpg". Changing the extension from upper to lower case solved the problem. All thanks to @datakick for helping me find this resolution. 1
Question
jfnewell1965
Does anyone know what the purpose of the "Image" is when you create a blog post with Bees Blog? And, if/where this gets displayed?
12 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now